-
Notifications
You must be signed in to change notification settings - Fork 0
/
PortHandler.h
30 lines (23 loc) · 674 Bytes
/
PortHandler.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
* PortHandler.h
*
* Created on: Jan 27, 2015
* Author: facosta
*/
#ifndef APPS_KEVOREE_PORTHANDLER_H_
#define APPS_KEVOREE_PORTHANDLER_H_
typedef struct _PortHandler PortHandler;
typedef void (*fptrWriteMsg)(PortHandler*, char*);
typedef void (*fptrPHDelete)(PortHandler*);
typedef struct _PortHandler {
void *pDerivedObj;
fptrWriteMsg writeMsg;
fptrPHDelete delete;
} PortHandler;
PortHandler *new_PortHandler(void);
void delete_PortHandler(PortHandler * const this);
/*
* INFO Only prototypes are provided since all functions are virtual
*/
void PortHandler_writeMsg(PortHandler * const this, char *msg);
#endif /* APPS_KEVOREE_PORTHANDLER_H_ */