Mercurial > pidgin
annotate console/gntplugin.h @ 14520:82b59abcaee4
[gaim-migrate @ 17240]
SF Patch #1492561 from Lars T. Mikkelsen
"This patch adds gaim-url-handler, a URL handler for
most protocols in Gaim. The gaim-url-handler is similar
to (and based on) gaim-remote, however, it uses the
native URL format of each protocol.
Furthermore, the patch includes a GConf schema, which
allows Gnome applications to use the URL handler."
With this and gaim-send/gaim-send-async, we should be able to drop gaim-remote.
Please let me know if you object, or I'll remove gaim-remote shortly.
For the record, I know this doesn't support 100% of the ChatZilla IRC URL spec,
and I haven't investigated the XMPP URL spec beyond a casual first look. We
can tweak these things later -- I figured it was important to get the bulk of
the code in place.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Mon, 11 Sep 2006 02:30:59 +0000 |
parents | c65ed4f6eea8 |
children | 81650a27f253 |
rev | line source |
---|---|
14198
c65ed4f6eea8
[gaim-migrate @ 16870]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14139
diff
changeset
|
1 #ifndef _GNT_PLUGIN_H |
c65ed4f6eea8
[gaim-migrate @ 16870]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14139
diff
changeset
|
2 #define _GNT_PLUGIN_H |
c65ed4f6eea8
[gaim-migrate @ 16870]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14139
diff
changeset
|
3 |
14139
44ec6c7cbc76
[gaim-migrate @ 16781]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14010
diff
changeset
|
4 #include <gnt.h> |
44ec6c7cbc76
[gaim-migrate @ 16781]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14010
diff
changeset
|
5 |
14010
7573bd40a190
[gaim-migrate @ 16602]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
6 #include <plugin.h> |
7573bd40a190
[gaim-migrate @ 16602]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
7 |
14139
44ec6c7cbc76
[gaim-migrate @ 16781]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14010
diff
changeset
|
8 #include <string.h> |
44ec6c7cbc76
[gaim-migrate @ 16781]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14010
diff
changeset
|
9 |
44ec6c7cbc76
[gaim-migrate @ 16781]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14010
diff
changeset
|
10 typedef GntWidget* (*GGPluginFrame) (); |
44ec6c7cbc76
[gaim-migrate @ 16781]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14010
diff
changeset
|
11 |
44ec6c7cbc76
[gaim-migrate @ 16781]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14010
diff
changeset
|
12 /* Guess where these came from */ |
44ec6c7cbc76
[gaim-migrate @ 16781]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14010
diff
changeset
|
13 #define GAIM_GNT_PLUGIN_TYPE "gnt" |
44ec6c7cbc76
[gaim-migrate @ 16781]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14010
diff
changeset
|
14 |
44ec6c7cbc76
[gaim-migrate @ 16781]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14010
diff
changeset
|
15 #define GAIM_IS_GNT_PLUGIN(plugin) \ |
44ec6c7cbc76
[gaim-migrate @ 16781]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14010
diff
changeset
|
16 ((plugin)->info != NULL && (plugin)->info->ui_info != NULL && \ |
44ec6c7cbc76
[gaim-migrate @ 16781]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14010
diff
changeset
|
17 !strcmp((plugin)->info->ui_requirement, GAIM_GNT_PLUGIN_TYPE)) |
44ec6c7cbc76
[gaim-migrate @ 16781]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14010
diff
changeset
|
18 |
44ec6c7cbc76
[gaim-migrate @ 16781]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14010
diff
changeset
|
19 #define GAIM_GNT_PLUGIN_UI_INFO(plugin) \ |
44ec6c7cbc76
[gaim-migrate @ 16781]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14010
diff
changeset
|
20 (GGPluginFrame)((plugin)->info->ui_info) |
44ec6c7cbc76
[gaim-migrate @ 16781]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14010
diff
changeset
|
21 |
14198
c65ed4f6eea8
[gaim-migrate @ 16870]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14139
diff
changeset
|
22 void gg_plugins_show_all(void); |
14010
7573bd40a190
[gaim-migrate @ 16602]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
23 |
14198
c65ed4f6eea8
[gaim-migrate @ 16870]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14139
diff
changeset
|
24 void gg_plugins_save_loaded(void); |
14010
7573bd40a190
[gaim-migrate @ 16602]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
25 |
14198
c65ed4f6eea8
[gaim-migrate @ 16870]
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
14139
diff
changeset
|
26 #endif |