Tizen 2.0 Release
[external/epson-laser-printer-escpage.git] / src / linux_cmn.h
1 /*__________________________________   linux-cmn.h   ___________________________________*/\r
2 \r
3 /*       1         2         3         4         5         6         7         8        */\r
4 /*34567890123456789012345678901234567890123456789012345678901234567890123456789012345678*/\r
5 /*******************************************|********************************************/\r
6 /*\r
7  *   Copyright (c) 2007  Seiko Epson Corporation                 All rights reserved.\r
8  *\r
9  *   Copyright protection claimed includes all forms and matters of\r
10  *   copyrightable material and information now allowed by statutory or judicial\r
11  *   law or hereinafter granted, including without limitation, material generated\r
12  *   from the software programs which are displayed on the screen such as icons,\r
13  *   screen display looks, etc.\r
14  *\r
15  */\r
16 /*******************************************|********************************************/\r
17 /*                                                                                      */\r
18 /*                      Linux platform depend External Definitions                      */\r
19 /*                                                                                      */\r
20 /*                                    Function Calls                                    */\r
21 /*                              --------------------------                              */\r
22 /*                  void*               epsmpMemAlloc   (size                                                           );  */\r
23 /*                  void                epsmpMemFree    (memblock                                                       );  */\r
24 /*                  EPS_INT32   epsmpSleep              (time                                                           );  */\r
25 /*                  EPS_UINT32  epsmpGetTime    (void                                                           );  */\r
26 /*                  EPS_INT32   epsmpLockSync   (void                                                           );  */\r
27 /*                  EPS_INT32   epsmpUnlockSync (void                                                           );  */\r
28 /*                                                                                      */\r
29 /*******************************************|********************************************/\r
30 #ifndef __LINUX_CMN__\r
31 #define __LINUX_CMN__\r
32 \r
33 #ifdef __cplusplus\r
34 extern "C" {\r
35 #endif\r
36 \r
37 /*------------------------------------  Includes   -------------------------------------*/\r
38 /*******************************************|********************************************/\r
39 #include "epson-typedefs.h"\r
40 #include "epson-escpr-def.h"\r
41 \r
42 /*---------------------------  Public Function Declarations  ---------------------------*/\r
43 /*******************************************|********************************************/\r
44 \r
45 void*           epsmpMemAlloc   (size_t                                                                                                         );\r
46 void            epsmpMemFree    (void*                                                                                                          );\r
47 EPS_INT32       epsmpSleep              (EPS_UINT32                                                                                                     );\r
48 EPS_UINT32      epsmpGetTime    (void                                                                                                           );\r
49 EPS_UINT32  epsmpGetLocalTime(EPS_LOCAL_TIME *                                          );\r
50 EPS_INT32       epsmpLockSync   (void                                                                                                           );\r
51 EPS_INT32       epsmpUnlockSync (void                                                                                                           );\r
52 \r
53 \r
54 EPS_INT32       _kbhit                  (void                                                                                                           );\r
55 EPS_INT32       _getch                  (void                                                                                                           );\r
56 void            _endthread              (void                                                                                   );\r
57 void            InitMutex               (void                                                                                                           );\r
58 void            TermMutex               (void                                                                                                           );\r
59 \r
60 #ifdef __cplusplus\r
61 }\r
62 #endif\r
63 \r
64 #endif  /* def __LINUX_CMN__ */\r
65 \r
66 /*__________________________________   linux-cmn.h   ___________________________________*/\r
67   \r
68 /*34567890123456789012345678901234567890123456789012345678901234567890123456789012345678*/\r
69 /*       1         2         3         4         5         6         7         8        */\r
70 /*******************************************|********************************************/\r
71 /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%|%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/\r
72 /***** End of File *** End of File *** End of File *** End of File *** End of File ******/\r
73 /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%|%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/\r