Logo Search packages:      
Sourcecode: libgphoto2 version File versions

gphoto2-port-info-list.c File Reference


Detailed Description

Author:
Copyright 2001 Lutz Müller <lutz@users.sf.net>
License
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-port-info-list.c.

#include "config.h"
#include <gphoto2/gphoto2-port-info-list.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <ltdl.h>
#include <gphoto2/gphoto2-port-result.h>
#include <gphoto2/gphoto2-port-library.h>
#include <gphoto2/gphoto2-port-log.h>

Go to the source code of this file.

Classes

struct  _GPPortInfoList

Defines

#define _(String)   (String)
#define _GNU_SOURCE
#define bind_textdomain_codeset(Domain, codeset)   (codeset)
#define bindtextdomain(Domain, Directory)   (Domain)
#define CHECK_NULL(x)   {if (!(x)) return (GP_ERROR_BAD_PARAMETERS);}
#define CR(x)   {int r=(x);if (r<0) return (r);}
#define dcgettext(Domain, Message, Type)   (Message)
#define dgettext(Domain, Message)   (Message)
#define gettext(String)   (String)
#define IOLIBDIR_ENV   "IOLIBS"
#define N_(String)   (String)
#define textdomain(String)   (String)

Functions

static int foreach_func (const char *filename, lt_ptr data)
int gp_port_info_list_append (GPPortInfoList *list, GPPortInfo info)
 Append a portinfo to the port information list.
int gp_port_info_list_count (GPPortInfoList *list)
 Number of ports in the list.
int gp_port_info_list_free (GPPortInfoList *list)
 Free a GPPortInfo list.
int gp_port_info_list_get_info (GPPortInfoList *list, int n, GPPortInfo *info)
 Get port information of specific entry.
int gp_port_info_list_load (GPPortInfoList *list)
 Load system ports.
int gp_port_info_list_lookup_name (GPPortInfoList *list, const char *name)
 Look up a name in the list.
int gp_port_info_list_lookup_path (GPPortInfoList *list, const char *path)
 Lookup a specific path in the list.
int gp_port_info_list_new (GPPortInfoList **list)
 Create a new GPPortInfoList.
const char * gp_port_message_codeset (const char *codeset)
 Specify codeset for translations.


Generated by  Doxygen 1.6.0   Back to index