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

Classes | Defines | Functions

gphoto2-list.c File Reference

#include "config.h"
#include <gphoto2/gphoto2-list.h>
#include <gphoto2/gphoto2-port-log.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <gphoto2/gphoto2-result.h>
Include dependency graph for gphoto2-list.c:

Go to the source code of this file.

Classes

struct  _CameraList

Defines

#define CAMERALIST_STRUCT_COMPATIBILITY
#define CHECK_INDEX_RANGE(list, index)
#define CHECK_LIST(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 MAX_ENTRIES   1024
#define MAX_LIST_STRING_LENGTH   128

Functions

static void exchange (CameraList *list, int x, int y)
int gp_list_append (CameraList *list, const char *name, const char *value)
int gp_list_count (CameraList *list)
int gp_list_find_by_name (CameraList *list, int *index, const char *name)
int gp_list_free (CameraList *list)
int gp_list_get_name (CameraList *list, int index, const char **name)
int gp_list_get_value (CameraList *list, int index, const char **value)
int gp_list_new (CameraList **list)
 Creates a new CameraList.
int gp_list_populate (CameraList *list, const char *format, int count)
int gp_list_ref (CameraList *list)
 Increments the reference count of the list.
int gp_list_reset (CameraList *list)
int gp_list_set_name (CameraList *list, int index, const char *name)
int gp_list_set_value (CameraList *list, int index, const char *value)
int gp_list_sort (CameraList *list)
int gp_list_unref (CameraList *list)
 Decrements the reference count of the list.

Detailed Description

Author:
Copyright 2000 Scott Fritzinger
Note:
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-list.c.


Generated by  Doxygen 1.6.0   Back to index