summaryrefslogtreecommitdiff
path: root/includes/SocketHandler.h
diff options
context:
space:
mode:
authorchristian mueller <christian.ei.mueller@bmw.de>2011-12-22 17:27:16 +0100
committerchristian mueller <christian.ei.mueller@bmw.de>2011-12-23 01:36:59 +0100
commit4f74d6e303c58326fe75ee75e1c92cf9263f800d (patch)
treeda2c725f7cbad20e35169476b801066689a382a2 /includes/SocketHandler.h
parent4618280b6d777ac7bf3bb5cf5b0ea3f0d9e4b2b7 (diff)
downloadaudiomanager-4f74d6e303c58326fe75ee75e1c92cf9263f800d.tar.gz
* rework of buildsystem
* now everything depends on a toplevel CMakefile * cleanup of makefiles and compiler options
Diffstat (limited to 'includes/SocketHandler.h')
-rw-r--r--includes/SocketHandler.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/includes/SocketHandler.h b/includes/SocketHandler.h
index c76e343..ab2bf33 100644
--- a/includes/SocketHandler.h
+++ b/includes/SocketHandler.h
@@ -42,7 +42,7 @@ class shPollPrepare;
class shPollCheck;
class shPollFired;
class shPollDispatch;
-class TBasicTimerCallback;
+class shTimerCallBack;
class SocketHandler
{
@@ -53,7 +53,7 @@ public:
am_Error_e addFDPoll(const int fd,const short event, shPollPrepare *prepare,shPollFired *fired,shPollCheck *check,shPollDispatch *dispatch, void* userData,sh_pollHandle_t& handle);
am_Error_e removeFDPoll(const sh_pollHandle_t handle);
am_Error_e updateEventFlags(const sh_pollHandle_t handle, const short events);
- am_Error_e addTimer(const timespec timeouts,TBasicTimerCallback*& callback,sh_timerHandle_t& handle, void* userData);
+ am_Error_e addTimer(const timespec timeouts,shTimerCallBack*& callback,sh_timerHandle_t& handle, void* userData);
am_Error_e removeTimer(const sh_timerHandle_t handle);
am_Error_e restartTimer(const sh_timerHandle_t handle, const timespec timeouts);
am_Error_e stopTimer(const sh_timerHandle_t handle);
@@ -66,7 +66,7 @@ private:
sh_timerHandle_t handle; //!<the handle of the timer
timespec countdown; //!<the countdown, this value is decreased every time the timer is up
timespec timeout; //!<the original timer value
- TBasicTimerCallback* callback; //!<the callbackfunction
+ shTimerCallBack* callback; //!<the callbackfunction
void * userData; //!<saves a void pointer together with the rest.
};
@@ -132,11 +132,11 @@ private:
/**
* classic functor for the BasicTimerCallback
*/
-class TBasicTimerCallback
+class shTimerCallBack
{
public:
virtual void Call (const sh_timerHandle_t handle, void* userData)=0;
- virtual ~TBasicTimerCallback(){};
+ virtual ~shTimerCallBack(){};
};
class shPollPrepare
@@ -170,14 +170,14 @@ public:
/**
* template to create the functor for a class
*/
-template <class TClass> class TSpecificTimerCallback : public TBasicTimerCallback
+template <class TClass> class shTimerCallBack_T : public shTimerCallBack
{
private:
TClass* mInstance;
void (TClass::*mFunction)(sh_timerHandle_t handle, void* userData);
public:
- TSpecificTimerCallback(TClass* instance, void(TClass::*function)(sh_timerHandle_t handle, void* userData))
+ shTimerCallBack_T(TClass* instance, void(TClass::*function)(sh_timerHandle_t handle, void* userData))
:mInstance(instance), mFunction(function){};
virtual void Call(sh_timerHandle_t handle, void* userData)