GRASS Programmer's Manual  6.4.2(2012)
Work.c
Go to the documentation of this file.
00001 #include "driver.h"
00002 #include "driverlib.h"
00003 
00004 int COM_Has_work(void)
00005 {
00006     return driver->Do_work ? 1 : 0;
00007 }
00008 
00009 int COM_Work_stream(void)
00010 {
00011     return driver->Work_stream ? (*driver->Work_stream) ()
00012         : -1;
00013 }
00014 
00015 void COM_Do_work(int opened)
00016 {
00017     if (driver->Do_work)
00018         (*driver->Do_work) (opened);
00019 }
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines