summaryrefslogtreecommitdiff
path: root/camlibs/sonix/sonix.h
diff options
context:
space:
mode:
Diffstat (limited to 'camlibs/sonix/sonix.h')
-rw-r--r--camlibs/sonix/sonix.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/camlibs/sonix/sonix.h b/camlibs/sonix/sonix.h
new file mode 100644
index 000000000..2d8efa060
--- /dev/null
+++ b/camlibs/sonix/sonix.h
@@ -0,0 +1,52 @@
+/* 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 <gphoto2/gphoto2-port.h>
+
+/*
+ *typedef enum {MODEL_VIVICAM
+ * } Model;
+ */
+
+struct _CameraPrivateLibrary {
+/* Model model; */ /* "model" and "fwversion" functionally equal */
+ int num_pics;
+ unsigned char size_code[512];
+ unsigned char fwversion;
+ unsigned char full;
+ unsigned char avitype;
+ int sonix_init_done;
+};
+
+
+int sonix_init (GPPort *port, CameraPrivateLibrary *priv);
+int sonix_get_picture_size (GPPort *port, int n);
+int sonix_read_data_size (Camera *camera, GPPort *port, char *data,
+ int n);
+int sonix_delete_all_pics (GPPort *port);
+int sonix_delete_last (GPPort *port);
+int sonix_capture_image (GPPort *port);
+int sonix_exit (GPPort *port);
+int sonix_decode (unsigned char * dst, unsigned char * src,
+ int width, int height);
+#endif