Updated copyright years.
[flashlight-appl] / src / flashlight_lib.h
index 004c291..9552a55 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Flashlight applet (widget) for Maemo.
- *  Copyright (C) 2009 Roman Moravcik
+ *  Copyright (C) 2009, 2010 Roman Moravcik
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
 #define ENOCONTEXT     -2
 #define ENODEVICE      -3
 
+struct buffer {
+       void *start;
+       size_t length;
+};
+
 struct FlashlightContext {
        /* device name */
        char device_name[15];
@@ -39,6 +44,9 @@ struct FlashlightContext {
 
        int min_intensity;
        int max_intensity;
+
+       unsigned int n_buffers;
+       struct buffer *buffers;
 };
 
 typedef struct FlashlightContext FlashlightContext_t;