![]() |
![]() |
![]() |
EggDBus Reference Manual | ![]() |
---|---|---|---|---|
TestSubject; enum TestSubjectKind; TestSubject* test_subject_new (TestSubjectKind kind, const gchar *name, const gchar *favorite_food, const gchar *favorite_color); TestSubjectKind test_subject_get_kind (TestSubject *subject); const gchar* test_subject_get_name (TestSubject *subject); const gchar* test_subject_get_favorite_food (TestSubject *subject); const gchar* test_subject_get_favorite_color (TestSubject *subject);
The TestSubject interface is a user-supplied wrapper for accessing and creating EggDBusStructure instances with signature (sa{sv}).
typedef enum { TEST_SUBJECT_KIND_UNKNOWN, TEST_SUBJECT_KIND_HUMAN, TEST_SUBJECT_KIND_CYLON, TEST_SUBJECT_KIND_DEITY, } TestSubjectKind;
TestSubject* test_subject_new (TestSubjectKind kind, const gchar *name, const gchar *favorite_food, const gchar *favorite_color);
Constructs a new TestSubject.
|
A TestSubjectKind. |
|
Name of subject. |
|
The favorite food of the subject. |
|
The favorite color of the subject. |
Returns : |
A TestSubject. |
TestSubjectKind test_subject_get_kind (TestSubject *subject);
Gets the kind of subject
.
|
A TestSubject. |
Returns : |
A TestSubjectKind. |
const gchar* test_subject_get_name (TestSubject *subject);
Gets name of subject
.
|
A TestSubject. |
Returns : |
Name of subject .
|
const gchar* test_subject_get_favorite_food (TestSubject *subject);
Gets favorite food of subject
.
|
A TestSubject. |
Returns : |
Favorite food of subject .
|
const gchar* test_subject_get_favorite_color (TestSubject *subject);
Gets favorite color of subject
.
|
A TestSubject. |
Returns : |
Favorite color of subject .
|