#include "config.h"
#include <gphoto2/gphoto2-abilities-list.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ltdl.h>
#include <gphoto2/gphoto2-result.h>
#include <gphoto2/gphoto2-port-log.h>
#include <gphoto2/gphoto2-library.h>
Include dependency graph for gphoto2-abilities-list.c:
Defines | |
#define | textdomain(String) (String) |
#define | gettext(String) (String) |
#define | dgettext(Domain, Message) (Message) |
#define | dcgettext(Domain, Message, Type) (Message) |
#define | bindtextdomain(Domain, Directory) (Domain) |
#define | bind_textdomain_codeset(Domain, Charset) (Domain) |
#define | _(String) (String) |
#define | N_(String) (String) |
#define | GP_MODULE "gphoto2-abilities-list" |
#define | CHECK_NULL(r) {if (!(r)) return (GP_ERROR_BAD_PARAMETERS);} |
#define | CHECK_RESULT(result) {int r = (result); if (r < 0) return (r);} |
#define | CHECK_MEM(m) {if (!(m)) return (GP_ERROR_NO_MEMORY);} |
Functions | |
const char * | gp_message_codeset (const char *codeset) |
Set the current character codeset libgphoto2 is operating in. | |
int | gp_abilities_list_new (CameraAbilitiesList **list) |
Allocate the memory for a new abilities list. | |
int | gp_abilities_list_free (CameraAbilitiesList *list) |
Free the given CameraAbilitiesList object. | |
int | gp_abilities_list_load (CameraAbilitiesList *list, GPContext *context) |
Scans the system for camera drivers. | |
int | gp_abilities_list_detect (CameraAbilitiesList *list, GPPortInfoList *info_list, CameraList *l, GPContext *context) |
int | gp_abilities_list_append (CameraAbilitiesList *list, CameraAbilities abilities) |
Append the abilities to the list. | |
int | gp_abilities_list_reset (CameraAbilitiesList *list) |
Reset the list. | |
int | gp_abilities_list_count (CameraAbilitiesList *list) |
Count the entries in the supplied list. | |
int | gp_abilities_list_lookup_model (CameraAbilitiesList *list, const char *model) |
Search the list for an entry of given model name. | |
int | gp_abilities_list_get_abilities (CameraAbilitiesList *list, int index, CameraAbilities *abilities) |
Retrieve the camera abilities of entry with supplied index number. |
int gp_abilities_list_append | ( | CameraAbilitiesList * | list, | |
CameraAbilities | abilities | |||
) |
Append the abilities to the list.
list | CameraAbilitiesList | |
abilities | CameraAbilities |
int gp_abilities_list_count | ( | CameraAbilitiesList * | list | ) |
Count the entries in the supplied list.
list | a CameraAbilitiesList |
int gp_abilities_list_detect | ( | CameraAbilitiesList * | list, | |
GPPortInfoList * | info_list, | |||
CameraList * | l, | |||
GPContext * | context | |||
) |
list | a CameraAbilitiesList | |
info_list | the GPPortInfoList of ports to use for detection | |
l | a CameraList that contains the autodetected cameras after the call | |
context | a GPContext |
int gp_abilities_list_free | ( | CameraAbilitiesList * | list | ) |
Free the given CameraAbilitiesList object.
list | a CameraAbilitiesList |
int gp_abilities_list_get_abilities | ( | CameraAbilitiesList * | list, | |
int | index, | |||
CameraAbilities * | abilities | |||
) |
Retrieve the camera abilities of entry with supplied index number.
list | a CameraAbilitiesList | |
index | index | |
abilities | pointer to CameraAbilities for returned data. |
int gp_abilities_list_load | ( | CameraAbilitiesList * | list, | |
GPContext * | context | |||
) |
Scans the system for camera drivers.
list | a CameraAbilitiesList | |
context | a GPContext |
int gp_abilities_list_lookup_model | ( | CameraAbilitiesList * | list, | |
const char * | model | |||
) |
Search the list for an entry of given model name.
list | a CameraAbilitiesList | |
model | a camera model name |
int gp_abilities_list_new | ( | CameraAbilitiesList ** | list | ) |
Allocate the memory for a new abilities list.
Function to allocate the memory for a new abilities list.
list | CameraAbilitiesList object to initialize |
int gp_abilities_list_reset | ( | CameraAbilitiesList * | list | ) |
Reset the list.
list | a CameraAbilitiesList |
const char* gp_message_codeset | ( | const char * | codeset | ) |
Set the current character codeset libgphoto2 is operating in.
Set the codeset for all messages returned by libgphoto2.
codeset | New codeset for the messages. For instance "utf-8". |