Exemplo n.º 1
0
status_t Preferences::SetInt16 (const char *name, int16 i)
{
	if (HasInt16 (name) == true)
		return ReplaceInt16 (name, 0, i);

	return AddInt16 (name, i);
}
Exemplo n.º 2
0
status_t
AttributeMessage::SetAttribute(const char* name, int16 value)
{
	if (ReplaceInt16(name, value) == B_OK)
		return B_OK;
	return AddInt16(name, value);
}
Exemplo n.º 3
0
myinline ArpMessage& ArpMessage::SetInt16(const char *name, int16 dat)
{
	if( !this ) return *((ArpMessage*)NULL);
	if( status == B_NO_ERROR ) {
		status = AddInt16(name, dat);
	}
	return *this;
}
Exemplo n.º 4
0
status_t TPreferences::SetInt16(const char *name, int16 i) {
	if (HasInt16(name)) {
		return ReplaceInt16(name, 0, i);
	}
	return AddInt16(name, i);
}