status_t Preferences::SetInt16 (const char *name, int16 i) { if (HasInt16 (name) == true) return ReplaceInt16 (name, 0, i); return AddInt16 (name, i); }
status_t AttributeMessage::SetAttribute(const char* name, int16 value) { if (ReplaceInt16(name, value) == B_OK) return B_OK; return AddInt16(name, value); }
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; }
status_t TPreferences::SetInt16(const char *name, int16 i) { if (HasInt16(name)) { return ReplaceInt16(name, 0, i); } return AddInt16(name, i); }