BLib Reference Manual |
---|
BObject — an abstract base class derived from GObject
struct BObject; void b_object_set_filename (BObject *object, const gchar *filename); void b_object_set_name (BObject *object, const gchar *name); const gchar* b_object_get_filename (BObject *object); const gchar* b_object_get_name (BObject *object);
struct BObject;
The BObject struct shouldn't be accessed directly. Its members are considered private.
void b_object_set_filename (BObject *object, const gchar *filename);
Sets the filename associated with object.
object : | a BObject. |
filename : | the new filename, a nul-terminated string in the filesystem's encoding. |
void b_object_set_name (BObject *object, const gchar *name);
Sets the name associated with object.
object : | a BObject. |
name : | the new name, a nul-terminated string in UTF-8 encoding. |
const gchar* b_object_get_filename (BObject *object);
This functions retrieves the filename associated with object. The returned value must not be freed.
object : | a BObject. |
Returns : | the fileanme or NULL if no filename was set for object. |
const gchar* b_object_get_name (BObject *object);
This functions retrieves the name associated with object. If no name has been set for object, the name is generated from the object's filename. The returned value must not be freed.
object : | a BObject. |
Returns : | the name or NULL if no name and no filename was set for object. |
<< BLib | BTypes >> |