Added SILC Server library.
[silc.git] / lib / silcutil / silctime.c
index 02f0db393c70dd1a343acb77c30bc3b76e996c8e..13575e57ee62132c5ebdb8f1e592a7216e4b5879 100644 (file)
@@ -17,7 +17,7 @@
 
 */
 
-#include "silcincludes.h"
+#include "silc.h"
 
 /* Return time since Epoch */
 
@@ -47,7 +47,7 @@ const char *silc_time_string(SilcInt64 timeval)
 
 /* Returns time as SilcTime structure */
 
-bool silc_time_value(SilcInt64 timeval, SilcTime ret_time)
+SilcBool silc_time_value(SilcInt64 timeval, SilcTime ret_time)
 {
   struct tm *time;
 
@@ -91,13 +91,13 @@ bool silc_time_value(SilcInt64 timeval, SilcTime ret_time)
 
 /* Fills the SilcTime structure with correct values */
 
-static bool silc_time_fill(SilcTime time,
-                          unsigned int year,
-                          unsigned int month,
-                          unsigned int day,
-                          unsigned int hour,
-                          unsigned int minute,
-                          unsigned int second)
+static SilcBool silc_time_fill(SilcTime time,
+                              unsigned int year,
+                              unsigned int month,
+                              unsigned int day,
+                              unsigned int hour,
+                              unsigned int minute,
+                              unsigned int second)
 {
   if (year > 8191)
     return FALSE;
@@ -124,7 +124,7 @@ static bool silc_time_fill(SilcTime time,
 
 /* Returns time from universal time string into SilcTime */
 
-bool silc_time_universal(const char *universal_time, SilcTime ret_time)
+SilcBool silc_time_universal(const char *universal_time, SilcTime ret_time)
 {
   int ret;
   unsigned int year, month, day, hour = 0, minute = 0, second = 0;
@@ -180,8 +180,8 @@ bool silc_time_universal(const char *universal_time, SilcTime ret_time)
 
 /* Encode universal time string. */
 
-bool silc_time_universal_string(SilcTime timeval, char *ret_string,
-                               SilcUInt32 ret_string_size)
+SilcBool silc_time_universal_string(SilcTime timeval, char *ret_string,
+                                   SilcUInt32 ret_string_size)
 {
   int ret, len = 0;
   memset(ret_string, 0, ret_string_size);
@@ -212,7 +212,7 @@ bool silc_time_universal_string(SilcTime timeval, char *ret_string,
 
 /* Returns time from generalized time string into SilcTime */
 
-bool silc_time_generalized(const char *generalized_time, SilcTime ret_time)
+SilcBool silc_time_generalized(const char *generalized_time, SilcTime ret_time)
 {
   int ret, i;
   unsigned int year, month, day, hour = 0, minute = 0, second = 0;
@@ -290,8 +290,8 @@ bool silc_time_generalized(const char *generalized_time, SilcTime ret_time)
 
 /* Encode generalized time string */
 
-bool silc_time_generalized_string(SilcTime timeval, char *ret_string,
-                                 SilcUInt32 ret_string_size)
+SilcBool silc_time_generalized_string(SilcTime timeval, char *ret_string,
+                                     SilcUInt32 ret_string_size)
 {
   int len = 0, ret;
   memset(ret_string, 0, ret_string_size);