Logo Search packages:      
Sourcecode: libgphoto2 version File versions  Download package

gphoto2-abilities-list.c File Reference

Detailed Description

List of supported camera models including their abilities.

Copyright 2000 Scott Fritzinger
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

Definition in file gphoto2-abilities-list.c.

#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>

Go to the source code of this file.


struct  _CameraAbilitiesList
struct  foreach_data_t


#define _(String)   (String)
#define bind_textdomain_codeset(Domain, Charset)   (Domain)
#define bindtextdomain(Domain, Directory)   (Domain)
#define CHECK_MEM(m)   {if (!(m)) return (GP_ERROR_NO_MEMORY);}
#define CHECK_NULL(r)   {if (!(r)) return (GP_ERROR_BAD_PARAMETERS);}
#define CHECK_RESULT(result)   {int r = (result); if (r < 0) return (r);}
#define dcgettext(Domain, Message, Type)   (Message)
#define dgettext(Domain, Message)   (Message)
#define gettext(String)   (String)
#define GP_MODULE   "gphoto2-abilities-list"
#define N_(String)   (String)
#define textdomain(String)   (String)


static int cmp_abilities (const void *a, const void *b)
static int foreach_func (const char *filename, lt_ptr data)
int gp_abilities_list_append (CameraAbilitiesList *list, CameraAbilities abilities)
 Append the abilities to the list.
int gp_abilities_list_count (CameraAbilitiesList *list)
 Count the entries in the supplied list.
int gp_abilities_list_detect (CameraAbilitiesList *list, GPPortInfoList *info_list, CameraList *l, GPContext *context)
static int gp_abilities_list_detect_usb (CameraAbilitiesList *list, int *ability, GPPort *port)
int gp_abilities_list_free (CameraAbilitiesList *list)
 Free the given CameraAbilitiesList object.
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_load (CameraAbilitiesList *list, GPContext *context)
 Scans the system for camera drivers.
static int gp_abilities_list_load_dir (CameraAbilitiesList *list, const char *dir, GPContext *context)
static int gp_abilities_list_lookup_id (CameraAbilitiesList *, const char *)
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_new (CameraAbilitiesList **list)
 Allocate the memory for a new abilities list.
int gp_abilities_list_reset (CameraAbilitiesList *list)
 Reset the list.
static int gp_abilities_list_sort (CameraAbilitiesList *)
const char * gp_message_codeset (const char *codeset)
 Set the current character codeset libgphoto2 is operating in.
static void remove_colon_from_string (char *str)
 Remove first colon from string, if any. Replace it by a space.

Generated by  Doxygen 1.6.0   Back to index