gnokii-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnokii commonlibfunctions.c include/gnokii.h Ch...


From: Helge Deller
Subject: gnokii commonlibfunctions.c include/gnokii.h Ch...
Date: Sun, 11 Jun 2006 16:17:25 +0000

CVSROOT:        /sources/gnokii
Module name:    gnokii
Changes by:     Helge Deller <deller>   06/06/11 16:17:25

Modified files:
        common         : libfunctions.c 
        include        : gnokii.h 
        .              : ChangeLog 

Log message:
        add gn_timestamp_set() and gn_timestamp_get()

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnokii/common/libfunctions.c?cvsroot=gnokii&r1=1.21&r2=1.22
http://cvs.savannah.gnu.org/viewcvs/gnokii/include/gnokii.h?cvsroot=gnokii&r1=1.96&r2=1.97
http://cvs.savannah.gnu.org/viewcvs/gnokii/ChangeLog?cvsroot=gnokii&r1=1.1193&r2=1.1194

Patches:
Index: common/libfunctions.c
===================================================================
RCS file: /sources/gnokii/gnokii/common/libfunctions.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -b -r1.21 -r1.22
--- common/libfunctions.c       11 Jun 2006 15:06:40 -0000      1.21
+++ common/libfunctions.c       11 Jun 2006 16:17:25 -0000      1.22
@@ -1,5 +1,5 @@
 /*
-  $Id: libfunctions.c,v 1.21 2006/06/11 15:06:40 deller Exp $
+  $Id: libfunctions.c,v 1.22 2006/06/11 16:17:25 deller Exp $
 
   G N O K I I
 
@@ -412,3 +412,27 @@
 
 
 /* helper functions */
+
+API void gn_timestamp_set(gn_timestamp *dt, int year, int month, int day,
+                       int hour, int minute, int second, int timezone)
+{
+       dt->year = year;
+       dt->month = month;
+       dt->day = day;
+       dt->hour = hour;
+       dt->minute = minute;
+       dt->second = second;
+       dt->timezone = timezone;
+}
+
+API void gn_timestamp_get(gn_timestamp *dt, int *year, int *month, int *day,
+                       int *hour, int *minute, int *second, int *timezone)
+{
+       if (year) *year = dt->year;
+       if (month) *month = dt->month;
+       if (day) *day = dt->day;
+       if (hour) *hour = dt->hour;
+       if (minute) *minute = dt->minute;
+       if (second) *second = dt->second;
+       if (timezone) *timezone = dt->timezone;
+}

Index: include/gnokii.h
===================================================================
RCS file: /sources/gnokii/gnokii/include/gnokii.h,v
retrieving revision 1.96
retrieving revision 1.97
diff -u -b -r1.96 -r1.97
--- include/gnokii.h    23 May 2006 22:41:32 -0000      1.96
+++ include/gnokii.h    11 Jun 2006 16:17:25 -0000      1.97
@@ -1,6 +1,6 @@
 /*
 
-  $Id: gnokii.h,v 1.96 2006/05/23 22:41:32 deller Exp $
+  $Id: gnokii.h,v 1.97 2006/06/11 16:17:25 deller Exp $
 
   G N O K I I
 
@@ -187,6 +187,10 @@
 API gn_memory_type gn_str2memory_type(const char *s);
 API const char *gn_memory_type2str(gn_memory_type mt);
 API int gn_timestamp_isvalid(const gn_timestamp dt);
+API void gn_timestamp_set(gn_timestamp *dt, int year, int month, int day,
+                       int hour, int minute, int second, int timezone);
+API void gn_timestamp_get(gn_timestamp *dt, int *year, int *month, int *day,
+                       int *hour, int *minute, int *second, int *timezone);
 
 
 

Index: ChangeLog
===================================================================
RCS file: /sources/gnokii/gnokii/ChangeLog,v
retrieving revision 1.1193
retrieving revision 1.1194
diff -u -b -r1.1193 -r1.1194
--- ChangeLog   11 Jun 2006 15:06:40 -0000      1.1193
+++ ChangeLog   11 Jun 2006 16:17:25 -0000      1.1194
@@ -20,6 +20,7 @@
     o add a library layer to make libgnokii more binary
       compatible between versions in the future      (Helge Deller)
     o change gnokii to use library layer             (Helge Deller)
+    o add gn_timestamp_set() and gn_timestamp_get()  (Helge Deller)
     o change major number of libgnokii to 3          (Helge Deller)
     o added gn_lib_lasterror(), gn_lib_cfg_get() and
       gn_lib_get_phone_model|manufact|... functions  (Helge Deller)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]