diff libpurple/gaim-client-example.c @ 15822:32c366eeeb99

sed -ie 's/gaim/purple/g'
author Sean Egan <seanegan@gmail.com>
date Mon, 19 Mar 2007 07:01:17 +0000
parents 5fe8042783c1
children
line wrap: on
line diff
--- a/libpurple/gaim-client-example.c	Mon Mar 19 06:11:46 2007 +0000
+++ b/libpurple/gaim-client-example.c	Mon Mar 19 07:01:17 2007 +0000
@@ -3,19 +3,19 @@
 #include <stdio.h>
 #include <stdlib.h>
 
-#include "gaim-client.h"
+#include "purple-client.h"
 
 /*
-   This example demonstrates how to use libgaim-client to communicate
-   with gaim.  The names and signatures of functions provided by
-   libgaim-client are the same as those in gaim.  However, all
-   structures (such as GaimAccount) are opaque, that is, you can only
+   This example demonstrates how to use libpurple-client to communicate
+   with purple.  The names and signatures of functions provided by
+   libpurple-client are the same as those in purple.  However, all
+   structures (such as PurpleAccount) are opaque, that is, you can only
    use pointer to them.  In fact, these pointers DO NOT actually point
    to anything, they are just integer identifiers of assigned to these
-   structures by gaim.  So NEVER try to dereference these pointers.
+   structures by purple.  So NEVER try to dereference these pointers.
    Integer ids as disguised as pointers to provide type checking and
-   prevent mistakes such as passing an id of GaimAccount when an id of
-   GaimBuddy is expected.  According to glib manual, this technique is
+   prevent mistakes such as passing an id of PurpleAccount when an id of
+   PurpleBuddy is expected.  According to glib manual, this technique is
    portable.
 */
 
@@ -23,13 +23,13 @@
 {
 	GList *alist, *node;
 
-	gaim_init();
+	purple_init();
 
-	alist = gaim_accounts_get_all();
+	alist = purple_accounts_get_all();
 	for (node = alist; node != NULL; node = node->next)
 	{
-		GaimAccount *account = (GaimAccount*) node->data;
-		char *name = gaim_account_get_username(account);
+		PurpleAccount *account = (PurpleAccount*) node->data;
+		char *name = purple_account_get_username(account);
 		g_print("Name: %s\n", name);
 		g_free(name);
 	}