Exemple #1
0
status_t Preferences::SetInt64 (const char *name, int64 i)
{
	if (HasInt64 (name) == true)
		return ReplaceInt64 (name, 0, i);

	return AddInt64 (name, i);
}
status_t
AttributeMessage::SetAttribute(const char* name, int64 value)
{
	if (ReplaceInt64(name, value) == B_OK)
		return B_OK;
	return AddInt64(name, value);
}
status_t TPreferences::SetInt64(const char *name, int64 i) {
	if (HasInt64(name)) {
		return ReplaceInt64(name, 0, i);
	}
	return AddInt64(name, i);
}