Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fun.git;a=commitdiff;h=87d8a33a29ea925bdd8f16094d2ad8f9456cd7dc

commit 87d8a33a29ea925bdd8f16094d2ad8f9456cd7dc
Author: Priyank <[EMAIL PROTECTED]>
Date:   Sat Nov 3 12:34:49 2007 +0530

the dbus service is now known as FWUpdateNotifier

diff --git a/src/fund.c b/src/fund.c
index 55915f2..07deca4 100644
--- a/src/fund.c
+++ b/src/fund.c
@@ -39,13 +39,13 @@ typedef void* netbuf;
static PM_DB *sync_db = NULL;
static PM_DB *local_db = NULL;

-G_DEFINE_TYPE(UpdNotifier, updnotifierd, G_TYPE_OBJECT);
+G_DEFINE_TYPE(FWUpdateNotifier, fund, G_TYPE_OBJECT);

-void updnotifierd_class_init(UpdNotifierClass *class) {
+void fund_class_init(FWUpdateNotifierClass *class) {
// Nothing here
}

-void updnotifierd_init(UpdNotifier *server) {
+void fund_init(FWUpdateNotifier *server) {
GError *error = NULL;
DBusGProxy *driver_proxy;
int request_ret;
@@ -58,10 +58,10 @@ void updnotifierd_init(UpdNotifier *server) {
return;
}

-       dbus_g_object_type_install_info(updnotifierd_get_type(), 
&dbus_glib_fund_object_info);
+       dbus_g_object_type_install_info(fund_get_type(), 
&dbus_glib_fund_object_info);

// Register DBUS path
-       dbus_g_connection_register_g_object(server->connection, 
"/org/frugalware/UpdNotifier", G_OBJECT(server));
+       dbus_g_connection_register_g_object(server->connection, 
"/org/frugalware/FWUpdateNotifier", G_OBJECT(server));

// Register the service name, the constant here are defined in 
dbus-glib-bindings.h
driver_proxy = dbus_g_proxy_new_for_name(server->connection, DBUS_SERVICE_DBUS, 
DBUS_PATH_DBUS, DBUS_INTERFACE_DBUS);
@@ -150,7 +150,7 @@ GList* _updnotifierd_update_database (void) {
return ret;
}

-gboolean updnotifier_update_database(UpdNotifier *obj, gchar **packages, 
GError **error) {
+gboolean fund_update_database(FWUpdateNotifier *obj, gchar **packages, GError 
**error) {
GList *list = NULL;
if ((list = _updnotifierd_update_database())==NULL) {
*packages = NULL;
@@ -167,7 +167,7 @@ gboolean updnotifier_update_database(UpdNotifier *obj, 
gchar **packages, GError
}
}

-gboolean updnotifier_test_service(UpdNotifier *obj, gint *ret, GError **error) 
{
+gboolean fund_test_service(FWUpdateNotifier *obj, gint *ret, GError **error) {
*ret = 1;
return TRUE;
}
@@ -180,7 +180,7 @@ void usage() {

int main (int argc, char *argv[]) {
GMainLoop *main_loop;
-       UpdNotifier *server;
+       FWUpdateNotifier *server;
int i = 1;
int daemonize = 0;

@@ -227,7 +227,7 @@ int main (int argc, char *argv[]) {

g_type_init();

-       server = g_object_new(updnotifierd_get_type(), NULL);
+       server = g_object_new(fund_get_type(), NULL);

_updatenotifierd_init_pacman ();
main_loop = g_main_loop_new(NULL, FALSE);
diff --git a/src/fund.h b/src/fund.h
index e38ef23..5a4a81f 100644
--- a/src/fund.h
+++ b/src/fund.h
@@ -5,17 +5,17 @@ typedef struct
{
GObject parent;
DBusGConnection *connection;
-} UpdNotifier;
+} FWUpdateNotifier;

typedef struct
{
GObjectClass parent_class;
-} UpdNotifierClass;
+} FWUpdateNotifierClass;

-static void updnotifierd_init(UpdNotifier *server);
-static void updnotifierd_class_init(UpdNotifierClass *class);
+static void fund_init(FWUpdateNotifier *server);
+static void fund_class_init(FWUpdateNotifierClass *class);

-gboolean updnotifier_update_database(UpdNotifier *obj, gchar **packages, 
GError **error);
-gboolean updnotifier_test_service(UpdNotifier *obj, gint *ret, GError **error);
+gboolean fund_update_database(FWUpdateNotifier *obj, gchar **packages, GError 
**error);
+gboolean fund_test_service(FWUpdateNotifier *obj, gint *ret, GError **error);

#endif
diff --git a/src/fund.xml b/src/fund.xml
index 305d636..b36fb7c 100644
--- a/src/fund.xml
+++ b/src/fund.xml
@@ -1,12 +1,12 @@
-<node name="/org/frugalware/UpdNotifier">
-       <interface name="org.frugalware.UpdNotifier">
-               <annotation name="org.freedesktop.DBus.GLib.CSymbol" 
value="updnotifier"/>
+<node name="/org/frugalware/FWUpdateNotifier">
+       <interface name="org.frugalware.FWUpdateNotifier">
+               <annotation name="org.freedesktop.DBus.GLib.CSymbol" 
value="fund"/>
<method name="PerformUpdate">
-                       <annotation name="org.freedesktop.DBus.GLib.CSymbol" 
value="updnotifier_update_database"/>
+                       <annotation name="org.freedesktop.DBus.GLib.CSymbol" 
value="fund_update_database"/>
<arg type="s" name="packages" direction="out" />
</method>
<method name="TestService">
-                       <annotation name="org.freedesktop.DBus.GLib.CSymbol" 
value="updnotifier_test_service"/>
+                       <annotation name="org.freedesktop.DBus.GLib.CSymbol" 
value="fund_test_service"/>
<arg type="i" name="ret" direction="out" />
</method>
</interface>
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to