|
libgaminggear
|
Profiles. More...
Typedefs | |
| typedef struct _GaminggearProfiles | GaminggearProfiles |
Functions | |
| GaminggearProfileData * | gaminggear_profiles_find_by_hardware_index (GaminggearProfiles *profiles, gint hardware_index) |
| Find profile. More... | |
| GaminggearProfileData * | gaminggear_profiles_find_by_name (GaminggearProfiles *profiles, gchar const *name) |
| Find profile. More... | |
| void | gaminggear_profiles_activate (GaminggearProfiles *profiles, GaminggearProfileData *target_profile, gint hardware_index) |
| Switch profile. More... | |
| gboolean | gaminggear_profiles_activate_per_name (GaminggearProfiles *profiles, gchar const *name, gint hardware_index) |
| Switch profile. More... | |
| gboolean | gaminggear_profiles_store (GaminggearProfiles *profiles, GaminggearDevice *device, GError **error) |
| Save and write profiles. More... | |
| gboolean | gaminggear_profiles_fill (GaminggearProfiles *profiles, GaminggearDevice *device, guint count, GError **error) |
| Fill profile list. More... | |
| gboolean | gaminggear_profiles_read (GaminggearProfiles *profiles, GaminggearDevice *device, GError **error) |
| Read hardware data. More... | |
| gboolean | gaminggear_profiles_load (GaminggearProfiles *profiles, GError **error) |
| Load filesystem data. More... | |
| GaminggearProfiles * | gaminggear_profiles_new (GType type, gchar const *path) |
| Create new profiles structure. More... | |
| void | gaminggear_profiles_free (GaminggearProfiles *profiles) |
| Free profiles structure. More... | |
| GSList * | gaminggear_profiles_first (GaminggearProfiles *profiles) |
| Get first profile in list. More... | |
Profiles.
| typedef struct _GaminggearProfiles GaminggearProfiles |
| void gaminggear_profiles_activate | ( | GaminggearProfiles * | profiles, |
| GaminggearProfileData * | target_profile, | ||
| gint | hardware_index | ||
| ) |
Switch profile.
gaminggear_profiles_store needs to be called to apply the new settings.
| profiles | Instance. |
| target_profile | profile to activate. |
| hardware_index | Index to write to. |
| gboolean gaminggear_profiles_activate_per_name | ( | GaminggearProfiles * | profiles, |
| gchar const * | name, | ||
| gint | hardware_index | ||
| ) |
Switch profile.
gaminggear_profiles_store needs to be called to apply the new settings.
| profiles | Instance. |
| name | Name of profile to activate. |
| hardware_index | Index to write to. |
| bool | TRUE if successful, else FALSE. |
| gboolean gaminggear_profiles_fill | ( | GaminggearProfiles * | profiles, |
| GaminggearDevice * | device, | ||
| guint | count, | ||
| GError ** | error | ||
| ) |
Fill profile list.
?
| profiles | Instance. |
| device | Device to read from. |
| count | Profile count to fill. |
| error | Location to return an error. |
| bool | TRUE if successful, else FALSE. |
| GaminggearProfileData* gaminggear_profiles_find_by_hardware_index | ( | GaminggearProfiles * | profiles, |
| gint | hardware_index | ||
| ) |
Find profile.
| profiles | Instance. |
| hardware_index | Index of profile to find. |
| profile_data | or NULL if not found. |
| GaminggearProfileData* gaminggear_profiles_find_by_name | ( | GaminggearProfiles * | profiles, |
| gchar const * | name | ||
| ) |
Find profile.
| profiles | Instance. |
| name | Name of profile to find. |
| profile_data | or NULL if not found. |
| GSList* gaminggear_profiles_first | ( | GaminggearProfiles * | profiles | ) |
Get first profile in list.
| profiles | Instance |
| iterator | First element of single linked list. |
| void gaminggear_profiles_free | ( | GaminggearProfiles * | profiles | ) |
Free profiles structure.
| profiles | Instance that should be freed. |
| gboolean gaminggear_profiles_load | ( | GaminggearProfiles * | profiles, |
| GError ** | error | ||
| ) |
Load filesystem data.
| profiles | Instance. |
| error | Location to return an error. |
| bool | TRUE if successful, else FALSE. |
| GaminggearProfiles* gaminggear_profiles_new | ( | GType | type, |
| gchar const * | path | ||
| ) |
Create new profiles structure.
| type | Type of profile_data to handle. |
| path | Path to load files from. |
| profiles | that should be freed with gaminggear_profiles_free. |
| gboolean gaminggear_profiles_read | ( | GaminggearProfiles * | profiles, |
| GaminggearDevice * | device, | ||
| GError ** | error | ||
| ) |
Read hardware data.
| profiles | Instance. |
| device | Device to read from. |
| error | Location to return an error. |
| bool | TRUE if successful, else FALSE. |
| gboolean gaminggear_profiles_store | ( | GaminggearProfiles * | profiles, |
| GaminggearDevice * | device, | ||
| GError ** | error | ||
| ) |
Save and write profiles.
| profiles | Instance. |
| device | Device to write to. |
| error | Location to return an error. |
| bool | TRUE if successful, else FALSE. |
1.8.13