| Top |
| GQuark | sw_service_error_quark () |
| const char * | sw_service_get_name () |
| void | sw_service_emit_capabilities_changed () |
| void | sw_service_emit_user_changed () |
| gboolean | sw_service_is_uid_banned () |
| gboolean | sw_service_has_cap () |
| void | (*SwServiceSetParamFunc) () |
| void | sw_service_map_params () |
| enum | SwServiceError |
| #define | SW_SERVICE_ERROR |
| SwService | |
| struct | SwServiceClass |
| #define | IS_CONFIGURED |
| #define | CAN_VERIFY_CREDENTIALS |
| #define | CREDENTIALS_VALID |
| #define | CREDENTIALS_INVALID |
| #define | CAN_UPDATE_STATUS |
| #define | CAN_REQUEST_AVATAR |
| #define | CAN_GEOTAG |
| #define | CAN_UPDATE_STATUS_WITH_GEOTAG |
| #define | HAS_AVATAR_IFACE |
| #define | HAS_BANISHABLE_IFACE |
| #define | HAS_PHOTO_UPLOAD_IFACE |
| #define | HAS_QUERY_IFACE |
| #define | HAS_UPDATE_STATUS_IFACE |
void sw_service_emit_capabilities_changed (SwService *service,const char **caps);
gboolean sw_service_is_uid_banned (SwService *service,const gchar *uid);
void (*SwServiceSetParamFunc) (gpointer object,const gchar *param_name,const gchar *param_value);
This type signature reflects a function that sets a name/value association on a given object. Functions such as g_hash_table_insert and rest_proxy_call_add_param are good examples.
void sw_service_map_params (const ParameterNameMapping *mapping,GHashTable *parameters,SwServiceSetParamFunc set_param_func,gpointer remote_call_object);
Re-map a group of parameters with alternative parameter names. Used for converting lsw parameter names to service-specific ones.
mapping |
An array of ParameterNameMapping pairs. |
|
parameters |
The GHashtable of given parameters. |
|
set_param_func |
A SwServiceSetParamFunc that sets a name/value association on the given object. |
|
remote_call_object |
The remote call or hash table object that
|
struct SwServiceClass {
GObjectClass parent_class;
/* vfuncs */
const char *(*get_name) (SwService *service);
const gchar ** (*get_static_caps) (SwService *service);
const gchar ** (*get_dynamic_caps) (SwService *service);
void (*credentials_updated) (SwService *service);
};