diff src/protocols/oscar/msgcookie.c @ 8866:c2dff943e240

[gaim-migrate @ 9634] (14:10:22) Faceprint: the timestamp plugin will now mislead users (14:10:54) Me: which way does ichat behave? (14:10:58) Me: i think the new way (14:11:05) Me: but its been some time since i've seen it (14:11:09) Faceprint: i don't know or care, the new behavior will confuse the hell out of people (14:11:22) Faceprint: lets say we have a conversation (14:11:25) Faceprint: 2:00 gets printed by the plugin (14:11:36) Faceprint: then we say nothing for 3 hours (14:11:42) Faceprint: and then one of us says something (14:12:04) Faceprint: that will be printed, and then as many as 5 minutes later, the plugin will print 5:05 (14:12:23) Me: yes yes yes, i see both sides of this one. i tend to think the new behavior is better, but i'll revert it (14:12:36) Faceprint: since "normal" timestamps are turned off, it appears as though what was just said was said around 2 (14:12:43) Faceprint: no, don't revert, fix (14:12:53) Faceprint: preferably, make the patch writer fix (14:12:57) Me: *nods* (14:13:06) Me: which requires reverting since otherwise he won't be motivated (14:13:13) Faceprint: if something is said and we've gone more than 5 min w/o printing a timestamp, print a timestamp before writing to the conv committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Mon, 03 May 2004 18:13:39 +0000
parents 697221d5d0ff
children 1a97d5e88d12
line wrap: on
line diff
--- a/src/protocols/oscar/msgcookie.c	Mon May 03 18:02:21 2004 +0000
+++ b/src/protocols/oscar/msgcookie.c	Mon May 03 18:13:39 2004 +0000
@@ -16,16 +16,15 @@
 
 /**
  * aim_cachecookie - appends a cookie to the cookie list
- * @sess: session to add to
- * @cookie: pointer to struct to append
  *
  * if cookie->cookie for type cookie->type is found, updates the
  * ->addtime of the found structure; otherwise adds the given cookie
  * to the cache
  *
- * returns -1 on error, 0 on append, 1 on update.  the cookie you pass
- * in may be free'd, so don't count on its value after calling this!
- * 
+ * @param sess session to add to
+ * @param cookie pointer to struct to append
+ * @return returns -1 on error, 0 on append, 1 on update.  the cookie you pass
+ *         in may be free'd, so don't count on its value after calling this!
  */
 faim_internal int aim_cachecookie(aim_session_t *sess, aim_msgcookie_t *cookie)
 {
@@ -52,13 +51,13 @@
 
 /**
  * aim_uncachecookie - grabs a cookie from the cookie cache (removes it from the list)
- * @sess: session to grab cookie from
- * @cookie: cookie string to look for
- * @type: cookie type to look for
  *
  * takes a cookie string and a cookie type and finds the cookie struct associated with that duple, removing it from the cookie list ikn the process.
  *
- * if found, returns the struct; if none found (or on error), returns NULL:
+ * @param sess session to grab cookie from
+ * @param cookie cookie string to look for
+ * @param type cookie type to look for
+ * @return if found, returns the struct; if none found (or on error), returns NULL:
  */
 faim_internal aim_msgcookie_t *aim_uncachecookie(aim_session_t *sess, fu8_t *cookie, int type)
 {
@@ -81,13 +80,12 @@
 
 /**
  * aim_mkcookie - generate an aim_msgcookie_t *struct from a cookie string, a type, and a data pointer.
- * @c: pointer to the cookie string array
- * @type: cookie type to use
- * @data: data to be cached with the cookie
  *
- * returns NULL on error, a pointer to the newly-allocated cookie on
- * success.
- *
+ * @param c pointer to the cookie string array
+ * @param type cookie type to use
+ * @param data data to be cached with the cookie
+ * @return returns NULL on error, a pointer to the newly-allocated
+ *         cookie on success.
  */
 faim_internal aim_msgcookie_t *aim_mkcookie(fu8_t *c, int type, void *data) 
 {
@@ -108,13 +106,12 @@
 
 /**
  * aim_checkcookie - check to see if a cookietuple has been cached
- * @sess: session to check for the cookie in
- * @cookie: pointer to the cookie string array
- * @type: type of the cookie to look for
  *
- * this returns a pointer to the cookie struct (still in the list) on
- * success; returns NULL on error/not found
- *
+ * @param sess session to check for the cookie in
+ * @param cookie pointer to the cookie string array
+ * @param type type of the cookie to look for
+ * @return returns a pointer to the cookie struct (still in the list)
+ *         on success; returns NULL on error/not found
  */
 
 faim_internal aim_msgcookie_t *aim_checkcookie(aim_session_t *sess, const fu8_t *cookie, int type)
@@ -146,15 +143,15 @@
 
 /**
  * aim_cookie_free - free an aim_msgcookie_t struct
- * @sess: session to remove the cookie from
- * @cookiep: the address of a pointer to the cookie struct to remove
  *
  * this function removes the cookie *cookie from teh list of cookies
  * in sess, and then frees all memory associated with it. including
  * its data! if you want to use the private data after calling this,
  * make sure you copy it first.
  *
- * returns -1 on error, 0 on success.
+ * @param sess session to remove the cookie from
+ * @param cookie the address of a pointer to the cookie struct to remove
+ * @return returns -1 on error, 0 on success.
  *
  */
 faim_internal int aim_cookie_free(aim_session_t *sess, aim_msgcookie_t *cookie)