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

sonix.h

/* sonix.h
 *
 * Copyright (C) 2005 Theodore Kilgore <kilgota@auburn.edu>
 *
 * 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.
 */

#ifndef __SONIX_H__
#define __SONIX_H__

#include <libgphoto2_port/gphoto2-port.h>

typedef enum {MODEL_VIVICAM
      } Model;

struct _CameraPrivateLibrary {
      Model model;
      int num_pics;
      unsigned char full;
};


int sonix_init                (GPPort *port, CameraPrivateLibrary *priv);
int sonix_get_picture_width         (GPPort *port, int n);
int sonix_get_picture_size    (GPPort *port, int n);
int sonix_read_picture_data   (Camera *camera, GPPort *port, char *data, 
                            int n);
int sonix_delete_all_pics           (GPPort *port);
int sonix_decode        (unsigned char * dst, unsigned char * src, 
                            int width, int height);
int SONIX_READ                (GPPort *port, char *data);
int SONIX_READ4         (GPPort *port, char *data);
int SONIX_COMMAND             (GPPort *port, char *command);

#endif 

Generated by  Doxygen 1.6.0   Back to index