GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Work.c
Go to the documentation of this file.
1 #include "driver.h"
2 #include "driverlib.h"
3 
4 int COM_Has_work(void)
5 {
6  return driver->Do_work ? 1 : 0;
7 }
8 
9 int COM_Work_stream(void)
10 {
11  return driver->Work_stream ? (*driver->Work_stream) ()
12  : -1;
13 }
14 
15 void COM_Do_work(int opened)
16 {
17  if (driver->Do_work)
18  (*driver->Do_work) (opened);
19 }
int COM_Has_work(void)
Definition: Work.c:4
int COM_Work_stream(void)
Definition: Work.c:9
void COM_Do_work(int)
Definition: Work.c:15
int(* Work_stream)(void)
Definition: driver.h:55
void(* Do_work)(int)
Definition: driver.h:56
Definition: driver.h:25