Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

procrwil.h

Go to the documentation of this file.
00001 #include <time.h>
00002 
00012 #ifdef __cplusplus
00013 extern "C" {
00014 #endif
00015   typedef void * rwil_handle;
00016   typedef struct { rwil_handle handle; int dev_handle; } rwil_device;
00017 
00019 
00022   rwil_handle rwil_init();
00023 
00025 
00031   rwil_device rwil_create(rwil_handle rwilhandle, char house, int num);
00032 
00034 
00037   void rwil_destroy(rwil_device handle);
00038 
00040 
00044   void rwil_on(rwil_device handle, time_t when);
00045 
00047 
00051   void rwil_off(rwil_device handle, time_t when);
00052 
00054 
00059   void rwil_setbright(rwil_device handle, int brightness, time_t when);
00060 
00062 
00071   void rwil_interpolatebright(rwil_device handle, int startbrightness, int endbrightness, time_t startwhen, time_t endwhen, int steps);
00072 
00077 
00078   int rwil_getbright(rwil_device handle);
00079 
00081 
00084   int rwil_ison(rwil_device handle);
00085 
00087 
00090   typedef void (*rwil_success_callback_t)(rwil_device);
00091 
00093 
00097   void rwil_success_callback(rwil_success_callback_t callback);
00098 
00100 
00103   typedef void (*rwil_failure_callback_t)(rwil_device, const char *);
00104 
00106 
00110   void rwil_failure_callback(rwil_failure_callback_t callback);
00111 
00113 
00133   typedef void (*rwil_x10_listener_t)(char, int, const char *);
00134 
00136 
00141   void rwil_set_x10_listener(rwil_x10_listener_t callback);
00142   
00144 
00148   void rwil_shutdown(rwil_handle rwilhandle);
00149 
00150 #ifdef __cplusplus
00151 }
00152 #endif

Generated on Tue Apr 9 13:53:08 2002 for RWIL - Real World Interface Library by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001