xdrdatetime.c

Go to the documentation of this file.
00001 #include <grass/dbmi.h>
00002 #include "macros.h"
00003 
00004 db__send_datetime  (dbDateTime *t)
00005 
00006 {
00007     DB_SEND_CHAR(t->current);
00008     if (!t->current)
00009     {
00010         DB_SEND_INT(t->year);
00011         DB_SEND_INT(t->month);
00012         DB_SEND_INT(t->day);
00013         DB_SEND_INT(t->hour);
00014         DB_SEND_INT(t->minute);
00015         DB_SEND_DOUBLE(t->seconds);
00016     }
00017 
00018     return DB_OK;
00019 }
00020 
00021 db__recv_datetime  (dbDateTime *t)
00022 
00023 {
00024     DB_RECV_CHAR(&t->current);
00025     if (!t->current)
00026     {
00027         DB_RECV_INT(&t->year);
00028         DB_RECV_INT(&t->month);
00029         DB_RECV_INT(&t->day);
00030         DB_RECV_INT(&t->hour);
00031         DB_RECV_INT(&t->minute);
00032         DB_RECV_DOUBLE(&t->seconds);
00033     }
00034 
00035     return DB_OK;
00036 }

Generated on Sun Apr 6 17:31:38 2008 for GRASS by  doxygen 1.5.5