![]() |
![]() |
![]() |
libaccounts-glib Reference Manual | |
---|---|---|---|---|
Top | Description |
AgService; const gchar * ag_service_get_name (AgService *service
); const gchar * ag_service_get_display_name (AgService *service
); const gchar * ag_service_get_service_type (AgService *service
); const gchar * ag_service_get_provider (AgService *service
); const gchar * ag_service_get_icon_name (AgService *service
); const gchar * ag_service_get_i18n_domain (AgService *service
); void ag_service_get_file_contents (AgService *service
,const gchar **contents
,gsize *data_offset
); AgService * ag_service_ref (AgService *service
); void ag_service_unref (AgService *service
); void ag_service_list_free (GList *list
);
The AgService structure represents a service. The structure is not directly
exposed to applications, but its fields are accessible via getter methods.
The structure is reference counted. One must use ag_service_unref()
when
done with it.
const gchar * ag_service_get_name (AgService *service
);
|
the AgService. |
Returns : |
the name of service .
|
const gchar * ag_service_get_display_name (AgService *service
);
|
the AgService. |
Returns : |
the display name of service .
|
const gchar * ag_service_get_service_type (AgService *service
);
|
the AgService. |
Returns : |
the type of service .
|
const gchar * ag_service_get_provider (AgService *service
);
|
the AgService. |
Returns : |
the name of the provider of service .
|
const gchar * ag_service_get_icon_name (AgService *service
);
|
the AgService. |
Returns : |
the name of the icon of service .
|
const gchar * ag_service_get_i18n_domain (AgService *service
);
|
the AgService. |
Returns : |
the name of the translation catalog. |
void ag_service_get_file_contents (AgService *service
,const gchar **contents
,gsize *data_offset
);
Gets the contents of the XML service file. The buffer returned in contents
should not be modified or freed, and is guaranteed to be valid as long as
service
is referenced. If data_offset
is not NULL
, it is set to the
offset where the <type_data> element can be found.
If some error occurs, contents
is set to NULL
.
|
the AgService. |
|
location to receive the pointer to the file contents. |
|
pointer to receive the offset of the type data. |
AgService * ag_service_ref (AgService *service
);
Adds a reference to service
.
|
the AgService. |
Returns : |
service .
|
void ag_service_unref (AgService *service
);
Used to unreference the AgService structure.
|
the AgService. |