Example #1
0
status_t Preferences::SetInt8 (const char *name, int8 i)
{
	if (HasInt8 (name) == true)
		return ReplaceInt8 (name, 0, i);

	return AddInt8 (name, i);
}
Example #2
0
status_t
AttributeMessage::SetAttribute(const char* name, int8 value)
{
	if (ReplaceInt8(name, value) == B_OK)
		return B_OK;
	return AddInt8(name, value);
}
Example #3
0
myinline ArpMessage& ArpMessage::SetInt8(const char *name, int8 dat)
{
	if( !this ) return *((ArpMessage*)NULL);
	if( status == B_NO_ERROR ) {
		status = AddInt8(name, dat);
	}
	return *this;
}
Example #4
0
status_t TPreferences::SetInt8(const char *name, int8 i) {
	if (HasInt8(name)) {
		return ReplaceInt8(name, 0, i);
	}
	return AddInt8(name, i);
}