Header documentation changes.
authorPekka Riikonen <priikone@silcnet.org>
Mon, 19 Feb 2007 17:18:16 +0000 (17:18 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Mon, 19 Feb 2007 17:18:16 +0000 (17:18 +0000)
17 files changed:
lib/silcapputil/silcidcache.h
lib/silcclient/silcclient.h
lib/silcclient/silcclient_entry.h
lib/silccore/DIRECTORY
lib/silccore/silcpacket.h
lib/silccrypt/silcpk.h
lib/silchttp/silchttpphp.h
lib/silcske/silcske.h
lib/silcskr/silcskr.h
lib/silcutil/DIRECTORY
lib/silcutil/silcatomic.h
lib/silcutil/silcbuffmt.h
lib/silcutil/silccond.h
lib/silcutil/silcfsm.h
lib/silcutil/silcnet.h
lib/silcutil/silcsocketstream.h
lib/silcutil/silctypes.h

index 088dd05827b0ec9c4200faf9c4fd77e242151a68..05a009ded6fd8635cf34f803b265ab8bc0da32ba 100644 (file)
@@ -220,7 +220,7 @@ SilcBool silc_idcache_update(SilcIDCache cache, SilcIDCacheEntry entry,
                             void *new_id, char *new_name,
                             SilcBool free_old_name);
 
-/****f* silcapputil/SilcIDCacheAPI/silc_idcache_update
+/****f* silcapputil/SilcIDCacheAPI/silc_idcache_update_by_context
  *
  * SYNOPSIS
  *
index 4d3fc3a05628b15925bbf648ff88bd68e65400c7..26d7b1d4a7cedace0fbe9f80277319df549c8a39 100644 (file)
  * employ concurrency control if the callbacks need to access shared data
  * in the application.  Messages are also received in that thread.
  *
- * All entries (SilcClientEntry, SilcChannelEntry and SilcServerEntry) are
- * reference counted.  If application wishes to save an entry pointer it must
- * always first acquire a reference.  The reference must be released once the
- * entry is not needed anymore.  If application wants to read any data from
- * the entry structure it must first lock the entry.  This protects access to
- * the entries in multithreaded environment.  If threads are not used, locking
- * the entries is not needed.  They however still must be referenced even
- * when threads are not used.
- *
  ***/
 
 #ifndef SILCCLIENT_H
@@ -2008,7 +1999,7 @@ SilcBool silc_client_set_away_message(SilcClient client,
  *
  *    The SILC_CLIENT_FILE_MONITOR_DISCONNECT will be called if remote
  *    disconnects the session connection.  The silc_client_file_close must
- *    be called when this status is received.  The session is over when 
+ *    be called when this status is received.  The session is over when
  *    this is received.
  *
  *    The SILC_CLIENLT_FILE_MONITOR_ERROR is called in case some error
index aae2c0442fb05563439f298401a49f69a17aacae..6ebe4129e35c93bf209560833da26c7597eacec8 100644 (file)
 
 */
 
+/****h* silcclient/Client Library Interface
+ *
+ * DESCRIPTION
+ *
+ * This header file includes the SilcClientEntry, SilcChannelEntry and
+ * SilcServer entry structures and various routines to search, resolve and
+ * handle these structures.
+ *
+ * All entries (SilcClientEntry, SilcChannelEntry and SilcServerEntry) are
+ * reference counted.  If application wishes to save an entry pointer it must
+ * always first acquire a reference.  The reference must be released once the
+ * entry is not needed anymore.  If application wants to read any data from
+ * the entry structure it must first lock the entry.  This protects access to
+ * the entries in multithreaded environment.  If threads are not used, locking
+ * the entries is not needed.  They however still must be referenced even
+ * when threads are not used.
+ *
+ ***/
+
 #ifndef SILCCLIENT_ENTRY_H
 #define SILCCLIENT_ENTRY_H
 
index 7e0226feb10379c5278f36b8d1fe11dc2adfcd2c..a924294e1a733056a79c6669547604b760171f5d 100644 (file)
@@ -12,6 +12,7 @@
 @LINK=silcargument.html:SILC Argument Interface
 @LINK=silcattrs.html:SILC Attributes Interface
 @LINK=silcpacket.html:Packet Protocol Interface
+@LINK=silcpubkey.html:SILC Public Key Payload Interface
 -->
 
 <big><b>SILC Core Library</b></big>
index cef13ca27a978cc49584cc9c337ec75efcf22a37..4cc2b44285d2bd37bfe1c0acb751cb1ce1a0e1da 100644 (file)
@@ -17,7 +17,7 @@
 
 */
 
-/****h* silccore/Packet Protocol Interface
+/****h* silccore/SILC Packet Engine Interface
  *
  * DESCRIPTION
  *
@@ -310,11 +310,11 @@ typedef void (*SilcPacketErrorCb)(SilcPacketEngine engine,
                                  void *callback_context,
                                  void *stream_context);
 
-/****s* silccore/SilcPacketAPI/SilcPacketStream
+/****s* silccore/SilcPacketAPI/SilcPacketCallbacks
  *
  * NAME
  *
- *    typedef struct SilcPacketStreamStruct *SilcPacketStream;
+ *    typedef struct { ... } *SilcPacketCallbacks;
  *
  * DESCRIPTION
  *
@@ -695,7 +695,7 @@ SilcStream silc_packet_stream_wrap(SilcPacketStream stream,
                                   SilcPacketWrapCoder coder,
                                   void *context);
 
-/****f* silccore/SilcPacketAPI/silc_packet_get_sender
+/****f* silccore/SilcPacketAPI/silc_packet_stream_is_udp
  *
  * SYNOPSIS
  *
@@ -1037,7 +1037,7 @@ SilcBool silc_packet_send_va_ext(SilcPacketStream stream,
  ***/
 void *silc_packet_wait_init(SilcPacketStream stream, ...);
 
-/****f* silccore/SilcPacketAPI/silc_packet_wait
+/****f* silccore/SilcPacketAPI/silc_packet_wait_uninit
  *
  * SYNOPSIS
  *
index 3e1e464c9bced16c306029c10e9e328c31c667f5..49b64001fcdd59e985da4a81e6b14d900a2a59c7 100644 (file)
@@ -126,7 +126,7 @@ SilcBool silc_pkcs_silc_generate_key(const char *algorithm,
                                     SilcPublicKey *ret_public_key,
                                     SilcPrivateKey *ret_private_key);
 
-/****f* silccrypt/SilcPubkeyAPI/silc_pkcs_silc_decode_identifier
+/****f* silccrypt/SilcPubkeyAPI/silc_pkcs_silc_encode_identifier
  *
  * SYNOPSIS
  *
index f0c511220929725e76d1002a1bd0ffc4dfb46891..ce3be1426bebab46581a012f13e96339404b0da5 100644 (file)
@@ -4,7 +4,7 @@
 
   Author: Pekka Riikonen <priikone@silcnet.org>
 
-  Copyright (C) 2006 Pekka Riikonen
+  Copyright (C) 2006 - 2007 Pekka Riikonen
 
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -46,7 +46,7 @@
  ***/
 SilcBuffer silc_http_php(char *php_data);
 
-/****f* silchttp/SilcHTTPServer/silc_http_php
+/****f* silchttp/SilcHTTPServer/silc_http_php_file
  *
  * SYNOPSIS
  *
index 8bba8ed0aa2237bb6850e19482a241b4507dfae7..50ae1d9edb440931c396393d3d5ba01c1e71cdaa 100644 (file)
@@ -426,7 +426,7 @@ void silc_ske_set_callbacks(SilcSKE ske,
                            SilcSKECompletionCb completed,
                            void *context);
 
-/****f* silcske/SilcSKEAPI/silc_ske_initiator_start
+/****f* silcske/SilcSKEAPI/silc_ske_initiator
  *
  * SYNOPSIS
  *
@@ -664,7 +664,7 @@ silc_ske_process_key_material_data(unsigned char *data,
  ***/
 void silc_ske_free_key_material(SilcSKEKeyMaterial key);
 
-/****f* silcske/SilcSKEAPI/silc_ske_free_key_material
+/****f* silcske/SilcSKEAPI/silc_ske_free_rekey_material
  *
  * SYNOPSIS
  *
index c0ede323a1dfcc68ed39abe2d5268ee80064c267..8fe975bdd46d8e753863d6e72f5637e63517e322 100644 (file)
@@ -4,7 +4,7 @@
 
   Author: Pekka Riikonen <priikone@silcnet.org>
 
-  Copyright (C) 2005 Pekka Riikonen
+  Copyright (C) 2005 - 2007 Pekka Riikonen
 
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -442,7 +442,7 @@ SilcBool silc_skr_find_set_country(SilcSKRFind find, const char *country);
 SilcBool silc_skr_find_set_public_key(SilcSKRFind find,
                                      SilcPublicKey public_key);
 
-/****f* silcskr/SilcSKRAPI/silc_skr_find_set_public_key
+/****f* silcskr/SilcSKRAPI/silc_skr_find_set_context
  *
  * SYNOPSIS
  *
index 2a566a74706060e511ba8aaaf14fe1000abfc022..83b119758a43e5889e4cb1d19496680765a3268a 100644 (file)
@@ -13,9 +13,9 @@
 @LINK=silcatomic.html:Atomic Operations Interface
 @LINK=silcnet.html:Network (TCP and UDP) Interface
 @LINK=silcschedule.html:Scheduler Interface
+@LINK=silcstream.html:Abstract Stream Interface
 @LINK=silcsocketstream.html:Socket Stream Interface
 @LINK=silcfdstream.html:File Descriptor Stream Interface
-@LINK=silcstream.html:Abstract Stream Interface
 @LINK=silcfsm.html:Finite State Machine Interface
 @LINK=silcfileutil.html:File Utility Functions
 @LINK=silcstrutil.html:String Utility Interface
 <b>Introduction</b>
 
 <br /><br />
-SILC Utility Library provides various utility routines for the applications.
-For example, it provides the application's main loop, called the SILC
-Scheduler.  It can handle all kinds of tasks, like socket connections and
-timeout tasks.  The SILC Utility Library also provides various buffer
-management routines.  All of these routines work on multiple platforms
-such as Unix and WIN32.
+SILC Utility Library provides a full featured runtime library for
+applications.  It provides the application's main loop, called SILC
+Scheduler, threads, locks, file utilities, file streams, socket streams,
+TCP and UDP network routines, a finite state machine, lists, a hash table,
+UTF-8 routines and other string utilities, and many other utility routines.
+The library works on multiple platforms.
 
 <br /><br />
 @LINKS@
index e2719b4c62a537d59310f8613790ea46a78217fb..15b393190a36f50b24b0f4fa04ec0616de43311d 100644 (file)
@@ -680,7 +680,7 @@ void *silc_atomic_get_pointer(SilcAtomicPointer *atomic)
  *
  ***/
 
-/****f* silcutil/SilcAtomicAPI/silc_atomic_add_int32
+/****f* silcutil/SilcAtomicAPI/silc_atomic_add_int16
  *
  * SYNOPSIS
  *
index 2c7b1d64d213d677c3e9c0de9bfcd1bab299c2ac..909d6ead5263dcacde272995fe772a909f970975 100644 (file)
@@ -4,7 +4,7 @@
 
   Author: Pekka Riikonen <priikone@silcnet.org>
 
-  Copyright (C) 1997 - 2006 Pekka Riikonen
+  Copyright (C) 1997 - 2007 Pekka Riikonen
 
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -253,11 +253,11 @@ int silc_buffer_sformat(SilcStack stack, SilcBuffer dst, ...);
  ***/
 int silc_buffer_format_vp(SilcBuffer dst, va_list ap);
 
-/****f* silcutil/SilcBufferFormatAPI/silc_buffer_format_vp
+/****f* silcutil/SilcBufferFormatAPI/silc_buffer_sformat_vp
  *
  * SYNOPSIS
  *
- *    int silc_buffer_format_vp(SilcBuffer dst, va_list vp);
+ *    int silc_buffer_sformat_vp(SilcStack stack, SilcBuffer dst, va_list vp);
  *
  * DESCRIPTION
  *
index 25f7c92cb676570f63f84dcfdfe79e377880fbdd..1fe8bb21001512b34086243c48ed8b89ca64c18b 100644 (file)
@@ -4,7 +4,7 @@
 
   Author: Pekka Riikonen <priikone@silcnet.org>
 
-  Copyright (C) 2006 Pekka Riikonen
+  Copyright (C) 2006 - 2007 Pekka Riikonen
 
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
 
 */
 
-/****h* silcutil/SILC Conditional Variable Interface
+/****h* silcutil/SILC Condition Variable Interface
  *
  * DESCRIPTION
  *
- * A conditional variable interface for multi-thread synchronization.
- * Conditional variables enable threads to suspend execution and yield
+ * A condition variable interface for multi-thread synchronization.
+ * Condition variables enable threads to suspend execution and yield
  * the processors until some predicate on some shared data is satisfied.
  *
  ***/
@@ -38,7 +38,7 @@
  *
  * DESCRIPTION
  *
- *    This context is the actual conditional variable and is allocated
+ *    This context is the actual condition variable and is allocated
  *    by silc_cond_alloc and given as argument to all silc_cond_*
  *    functions.  It is freed by the silc_cond_free function.
  *
@@ -53,10 +53,10 @@ typedef struct SilcCondStruct *SilcCond;
  *
  * DESCRIPTION
  *
- *    Allocates SILC Conditional variable context.  The conditional must
+ *    Allocates SILC Condition variable context.  The condition must
  *    be allocated before it can be used.  It is freed by the
  *    silc_cond_free function.  This returns TRUE and allocated
- *    conditional in to the `cond' pointer and FALSE on error.
+ *    condition in to the `cond' pointer and FALSE on error.
  *
  ***/
 SilcBool silc_cond_alloc(SilcCond *cond);
@@ -69,7 +69,7 @@ SilcBool silc_cond_alloc(SilcCond *cond);
  *
  * DESCRIPTION
  *
- *    Free conditional variable context.  If `cond' is NULL this function
+ *    Free condition variable context.  If `cond' is NULL this function
  *    has no effect.
  *
  ***/
@@ -83,8 +83,8 @@ void silc_cond_free(SilcCond cond);
  *
  * DESCRIPTION
  *
- *    Waits for conditional variable `cond' to be signalled.  This function
- *    will block the calling thread until the conditional variable is
+ *    Waits for condition variable `cond' to be signalled.  This function
+ *    will block the calling thread until the condition variable is
  *    signalled.  The `mutex' must be locked before calling this function.
  *    The `mutex' will be unlocked inside this function.  After this
  *    function returns the `mutex' is in locked state again.
@@ -108,11 +108,11 @@ void silc_cond_wait(SilcCond cond, SilcMutex mutex);
  *
  * DESCRIPTION
  *
- *    Waits for conditional variable `cond' to be signalled or for the
+ *    Waits for condition variable `cond' to be signalled or for the
  *    `timeout' to expire.  The timeout is in milliseconds.  If it is 0
  *    no timeout exist.  Returns FALSE if timeout expired, TRUE when
  *    signalled.  This function will block the calling thread until the
- *    conditional variable is signalled.  The `mutex' must be locked before
+ *    condition variable is signalled.  The `mutex' must be locked before
  *    calling this function.  The `mutex' will be unlocked inside this
  *    function.  After this function returns the `mutex' is in locked
  *    state again.
index 0eb53f4e77cc17f93bcb6c4f59759d0a881e82ba..b23e36efb296f95d5eb6613ea6372c063f12ab5c 100644 (file)
@@ -94,7 +94,7 @@ typedef struct SilcFSMObject SilcFSMStruct;
  ***/
 typedef struct SilcFSMObject *SilcFSMThread;
 
-/****s* silcutil/SilcFSMAPI/SilcFSM
+/****s* silcutil/SilcFSMAPI/SilcFSMThreadStruct
  *
  * NAME
  *
index c4a1f045d4d9e2cda364dd07db0f07cf657851fb..b2adca7685bc9588a2af940a3483ae0b4b523b78 100644 (file)
@@ -4,7 +4,7 @@
 
   Author: Pekka Riikonen <priikone@silcnet.org>
 
-  Copyright (C) 1997 - 2006 Pekka Riikonen
+  Copyright (C) 1997 - 2007 Pekka Riikonen
 
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -196,7 +196,7 @@ void silc_net_close_listener(SilcNetListener listener);
  *    using silc_async_abort the `callback' will not be called.  If NULL
  *    is returned the operation cannot be aborted.
  *
- */
+ ***/
 SilcAsyncOperation silc_net_tcp_connect(const char *local_ip_addr,
                                        const char *remote_ip_addr,
                                        int remote_port,
index 560e7e0f8faf6b36abab88fa5171e60644c6b01f..4d4acec73878d6351a836d062e93483586d09076 100644 (file)
@@ -4,7 +4,7 @@
 
   Author: Pekka Riikonen <priikone@silcnet.org>
 
-  Copyright (C) 2005 - 2006 Pekka Riikonen
+  Copyright (C) 2005 - 2007 Pekka Riikonen
 
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -158,7 +158,7 @@ SilcStream silc_socket_udp_stream_create(SilcSocket sock,
                                         SilcBool connected,
                                         SilcSchedule schedule);
 
-/****f* silcutil/SilcSocketStreamAPI/silc_socket_stream_get_info
+/****f* silcutil/SilcSocketStreamAPI/silc_socket_stream_is_udp
  *
  * SYNOPSIS
  *
index 7500b1fb22d71a403d09f99267f47ed58d3bfe2e..f1f8ddb15fde504c74e7a6e60fa02e95607fe49b 100644 (file)
@@ -4,7 +4,7 @@
 
   Author: Pekka Riikonen <priikone@silcnet.org>
 
-  Copyright (C) 2002 - 2006 Pekka Riikonen
+  Copyright (C) 2002 - 2007 Pekka Riikonen
 
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
 #ifndef SILCTYPES_H
 #define SILCTYPES_H
 
+/****d* silcutil/SILCTypes/SilcBool
+ *
+ * NAME
+ *
+ *    typedef unigned char SilcBool;
+ *
+ * DESCRIPTION
+ *
+ *    Boolean value, and is always 8-bits.  Represents value 0 or 1.
+ *
+ ***/
+typedef unsigned char SilcBool;
+
+/* The bool macro is deprecated.  Use SilcBool instead. */
+#ifdef SILC_MACOSX
+#define bool _Bool
+#endif
+#ifndef __cplusplus
+#ifndef bool
+#define bool unsigned char
+#endif
+#endif
+
 /****d* silcutil/SILCTypes/TRUE
  *
  * NAME
 #endif
 /***/
 
-/****d* silcutil/SILCTypes/SilcBool
- *
- * NAME
- *
- *    typedef unigned char SilcBool;
- *
- * DESCRIPTION
- *
- *    Boolean value, and is always 8-bits.  Represents value 0 or 1.
- *
- ***/
-typedef unsigned char SilcBool;
-
-/****d* silcutil/SILCTypes/bool
- *
- * NAME
- *
- *    #define SilcBool ...
- *
- * DESCRIPTION
- *
- *    Boolean value, and is 8-bits.  Represents value 0 or 1.  In
- *    C++ code this type is defined by the C++, and this definition is
- *    not used.
- *
- * NOTES
- *
- *    This macro is deprecated.  Use SilcBool instead.
- *
- * SOURCE
- */
-#ifdef SILC_MACOSX
-#define bool _Bool
-#endif
-
-#ifndef __cplusplus
-#ifndef bool
-#define bool unsigned char
-#endif
-#endif
-/***/
-
 /* Our offsetof macro */
 #define silc_offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)