/*
* 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];
int min_intensity;
int max_intensity;
+
+ unsigned int n_buffers;
+ struct buffer *buffers;
};
typedef struct FlashlightContext FlashlightContext_t;