22 #ifndef __HAPTICS_CONTROLLER_H__
23 #define __HAPTICS_CONTROLLER_H__
28 #include <sys/resource.h>
29 #include <sys/types.h>
31 #include <lunaservice.h>
35 #define VIBE_ERROR(x) (x != 0)
46 virtual int vibrate(
int period,
int duration) {
return -1;}
47 virtual int vibrate(
const char *name) {
return -1;}
49 virtual int cancel(
int id) {
return -1;}
52 g_hash_table_insert(m_mappingTable,(
void*)key,value);
56 id = (
int)g_hash_table_lookup(m_mappingTable,(
void*)key);
57 g_hash_table_remove(m_mappingTable,(
void*)key);
66 GHashTable *m_mappingTable;