SharingServiceOptionValue

SharingServiceOptionValue — A simple ID/name pair for a SharingAccount.

Synopsis

typedef             SharingServiceOptionValue;
SharingServiceOptionValue* sharing_service_option_value_new
                                                        (const gchar *id,
                                                         const gchar *name,
                                                         const gchar *description);
void                sharing_service_option_value_free   (SharingServiceOptionValue *value);
void                sharing_service_option_values_free  (GSList *values);

Description

SharingServiceOptionValue describes account-specific option values.

Details

SharingServiceOptionValue

typedef struct SharingServiceOptionValue SharingServiceOptionValue;

sharing_service_option_value_new ()

SharingServiceOptionValue* sharing_service_option_value_new
                                                        (const gchar *id,
                                                         const gchar *name,
                                                         const gchar *description);

Create a new SharingServiceOptionValue. At least an ID and name should be defined.

id : ID of option value
name : Name of option value
description : Description or NULL
Returns : a newly-allocated SharingServiceOptionValue. Free with sharing_service_option_value_free()

sharing_service_option_value_free ()

void                sharing_service_option_value_free   (SharingServiceOptionValue *value);

Free all memory used by a SharingServiceOptionValue.


sharing_service_option_values_free ()

void                sharing_service_option_values_free  (GSList *values);

Free a GSList and the SharingServiceOptionValue objects in it.

values : a GSList of pointers to SharingServiceOptionValue