| Data Model API (libmodel) | ||||
|---|---|---|---|---|
| Top | Description | ||||
ModelStringModelString — a ModelObject containing a string |
ModelString;
gchar * model_string_get (ModelString *object);
const gchar * model_string_peek (ModelString *object);
ModelObject * model_string_new (const gchar *value);
typedef struct _ModelString ModelString;
This is an opaque structure; it may not be accessed directly.
gchar * model_string_get (ModelString *object);
Gets the string value of object.
It is appropriate for the caller to call g_free() on the return
value.
|
a ModelString |
Returns : |
the string value of object, owned by the caller
|
const gchar * model_string_peek (ModelString *object);
Peeks the string value of object. The result is owned by object
and must not be modified or freed.
|
a ModelString |
Returns : |
the string value of object, owned by object
|
ModelObject * model_string_new (const gchar *value);
Creates a ModelString, containing value.
This function should only be called by model implementations.
|
a string, non-NULL
|
Returns : |
a new ModelObject |