summaryrefslogtreecommitdiff
path: root/hardinfo2
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2007-04-15 22:04:11 +0000
committerLeandro A. F. Pereira <leandro@hardinfo.org>2007-04-15 22:04:11 +0000
commit2d366bc8caf8083b66deaa09435f2dc93ffc9a69 (patch)
tree7844f5244ed158621da0b3df1106d07d07026ec8 /hardinfo2
parent4b58fae540284062ef1dbd4afac5e6f4137aad00 (diff)
Diffstat (limited to 'hardinfo2')
l---------hardinfo2/arch/linux/alpha/battery.h1
l---------hardinfo2/arch/linux/ia64/battery.h1
l---------hardinfo2/arch/linux/s390/battery.h1
-rwxr-xr-xhardinfo2/configure4
-rw-r--r--hardinfo2/shell.c1
-rw-r--r--hardinfo2/syncmanager.c4
-rw-r--r--hardinfo2/syncmanager.h1
7 files changed, 10 insertions, 3 deletions
diff --git a/hardinfo2/arch/linux/alpha/battery.h b/hardinfo2/arch/linux/alpha/battery.h
new file mode 120000
index 00000000..ed7360e1
--- /dev/null
+++ b/hardinfo2/arch/linux/alpha/battery.h
@@ -0,0 +1 @@
+../../../arch/linux/common/battery.h \ No newline at end of file
diff --git a/hardinfo2/arch/linux/ia64/battery.h b/hardinfo2/arch/linux/ia64/battery.h
new file mode 120000
index 00000000..ed7360e1
--- /dev/null
+++ b/hardinfo2/arch/linux/ia64/battery.h
@@ -0,0 +1 @@
+../../../arch/linux/common/battery.h \ No newline at end of file
diff --git a/hardinfo2/arch/linux/s390/battery.h b/hardinfo2/arch/linux/s390/battery.h
new file mode 120000
index 00000000..ed7360e1
--- /dev/null
+++ b/hardinfo2/arch/linux/s390/battery.h
@@ -0,0 +1 @@
+../../../arch/linux/common/battery.h \ No newline at end of file
diff --git a/hardinfo2/configure b/hardinfo2/configure
index 80906b62..a5ac9eb8 100755
--- a/hardinfo2/configure
+++ b/hardinfo2/configure
@@ -154,8 +154,8 @@ for i in `which pkg-config`; do
--atleast-version=$MIN_VERSION > /dev/null
case $? in
0)
- SOUP_FLAGS=`pkg-config libsoup-2.2 --cflags`
- SOUP_LIBS=`pkg-config libsoup-2.2 --libs`
+ SOUP_FLAGS=`pkg-config libsoup-2.2 --cflags --static`
+ SOUP_LIBS=`pkg-config libsoup-2.2 --libs --static`
echo "found `pkg-config libsoup-2.2 --modversion`"
SOUP=1
break ;;
diff --git a/hardinfo2/shell.c b/hardinfo2/shell.c
index 228ce9ee..6d4d469d 100644
--- a/hardinfo2/shell.c
+++ b/hardinfo2/shell.c
@@ -520,7 +520,6 @@ static void add_modules_to_gui(gpointer data, gpointer user_data)
}
}
-
void shell_init(GSList * modules)
{
if (shell) {
diff --git a/hardinfo2/syncmanager.c b/hardinfo2/syncmanager.c
index 6602407a..7646990f 100644
--- a/hardinfo2/syncmanager.c
+++ b/hardinfo2/syncmanager.c
@@ -299,6 +299,10 @@ static void _action_call_function_got_response(SoupMessage *msg, gpointer user_d
#endif
g_free(filename);
}
+
+ if (sna->entry->callback) {
+ sna->entry->callback(sna->entry, string);
+ }
g_free(string);
g_main_quit(loop);
diff --git a/hardinfo2/syncmanager.h b/hardinfo2/syncmanager.h
index 9cd812d0..78ca2153 100644
--- a/hardinfo2/syncmanager.h
+++ b/hardinfo2/syncmanager.h
@@ -29,6 +29,7 @@ struct _SyncEntry {
gchar *save_to;
gchar *(*get_data)(void);
+ void (*callback)(SyncEntry *entry, const gchar *response);
gboolean selected;
};