ayttm-commits
[Top][All Lists]
Advanced

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

[Ayttm-commits] CVS: ayttm/modules/aim-toc/libtoc libtoc.c,1.4,1.5 libt


From: Colin Leroy <address@hidden>
Subject: [Ayttm-commits] CVS: ayttm/modules/aim-toc/libtoc libtoc.c,1.4,1.5 libtoc.h,1.3,1.4
Date: Thu, 30 Jan 2003 07:15:56 -0500

Update of /cvsroot/ayttm/ayttm/modules/aim-toc/libtoc
In directory subversions:/tmp/cvs-serv6568/modules/aim-toc/libtoc

Modified Files:
        libtoc.c libtoc.h 
Log Message:
- modules/aim-toc
implement add_group, del_group, rename_group
fix login-related logic bugs



Index: libtoc.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/modules/aim-toc/libtoc/libtoc.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- libtoc.c    30 Jan 2003 09:39:02 -0000      1.4
+++ libtoc.c    30 Jan 2003 12:15:41 -0000      1.5
@@ -106,6 +106,7 @@
           char * sender, char * message );
 
 void (*toc_new_user)(char * group, char * handle);
+void (*toc_new_group)(char * group);
 void (*toc_join_ack)(toc_conn * conn, char * id, char * name);
 void (*update_user_status)(char * user, int online, time_t idle, int evil, int 
unavailable );
 void (*toc_error_message)(char * message);
@@ -779,6 +780,7 @@
                        if(*d == 'g')
                        {
                                strcpy(group, d+2);
+                               toc_new_group(group);
                        }
                        else if(*d == 'b')
                        {
@@ -1402,6 +1404,22 @@
        g_snprintf(buff, 2048, "toc2_remove_buddy %s \"%s\"", buff2, group);
        strcpy(user_info_id, user);
        send_flap(conn, DATA, buff);
+}
+
+void toc_add_group(toc_conn *conn, char *group)
+{
+       char buff[2048];
+
+       g_snprintf(buff, 2048, "toc2_add_group %s", group);
+       send_flap(conn, DATA, buff);    
+}
+
+void toc_remove_group(toc_conn *conn, char *group)
+{
+       char buff[2048];
+
+       g_snprintf(buff, 2048, "toc2_remove_group %s", group);
+       send_flap(conn, DATA, buff);    
 }
 
 void toc_set_idle( toc_conn * conn, int idle )

Index: libtoc.h
===================================================================
RCS file: /cvsroot/ayttm/ayttm/modules/aim-toc/libtoc/libtoc.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- libtoc.h    28 Jan 2003 06:20:05 -0000      1.3
+++ libtoc.h    30 Jan 2003 12:15:41 -0000      1.4
@@ -45,6 +45,7 @@
 } toc_file_conn;
 
 extern void (*toc_new_user)(char * group, char * handle);
+extern void (*toc_new_group)(char * group);
 extern int  (*toc_begin_file_recieve)( char * filename, unsigned long size );
 extern void (*toc_update_file_status)( int tag, unsigned long progress );
 extern void (*toc_complete_file_recieve)( int tag );





reply via email to

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