Added missing BMessage::{Get|Set}String() methods.
* Forgot to add those before accidentally.
This commit is contained in:
@@ -2550,6 +2550,7 @@ DEFINE_SET_GET_FUNCTIONS(uint64, UInt64, B_UINT64_TYPE);
|
|||||||
DEFINE_SET_GET_FUNCTIONS(bool, Bool, B_BOOL_TYPE);
|
DEFINE_SET_GET_FUNCTIONS(bool, Bool, B_BOOL_TYPE);
|
||||||
DEFINE_SET_GET_FUNCTIONS(float, Float, B_FLOAT_TYPE);
|
DEFINE_SET_GET_FUNCTIONS(float, Float, B_FLOAT_TYPE);
|
||||||
DEFINE_SET_GET_FUNCTIONS(double, Double, B_DOUBLE_TYPE);
|
DEFINE_SET_GET_FUNCTIONS(double, Double, B_DOUBLE_TYPE);
|
||||||
|
DEFINE_SET_GET_FUNCTIONS(const char *, String, B_STRING_TYPE);
|
||||||
|
|
||||||
#undef DEFINE_SET_GET_FUNCTION
|
#undef DEFINE_SET_GET_FUNCTION
|
||||||
|
|
||||||
@@ -3205,6 +3206,13 @@ BMessage::SetString(const char* name, const char* value)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
status_t
|
||||||
|
BMessage::SetString(const char *name, const BString& value)
|
||||||
|
{
|
||||||
|
return SetData(name, B_STRING_TYPE, value.String(), value.Length() + 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
BMessage::SetData(const char* name, type_code type, const void* data,
|
BMessage::SetData(const char* name, type_code type, const void* data,
|
||||||
ssize_t numBytes)
|
ssize_t numBytes)
|
||||||
|
|||||||
Reference in New Issue
Block a user