comparison plugins/dbus-example.c @ 13555:a7b24ba66570

[gaim-migrate @ 15933] Adding a copyright notice. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Thu, 23 Mar 2006 18:40:22 +0000
parents 4295083cf489
children 2d6f7ac4b6f2
comparison
equal deleted inserted replaced
13554:52985bb3ec70 13555:a7b24ba66570
1 /* 1 /*
2 This is an example of a gaim dbus plugin. After enabling this 2 * This is an example of a gaim dbus plugin. After enabling this
3 plugin, the following commands should work from the command line: 3 * plugin, the following commands should work from the command line:
4 4 *
5 prompt$ gaim-send DbusExampleGetHelloObject 5 * prompt$ gaim-send DbusExampleGetHelloObject
6 6 *
7 returns, say: int32 74 7 * returns, say: int32 74
8 8 *
9 prompt$ gaim-send DbusExampleGetText int32:74 9 * prompt$ gaim-send DbusExampleGetText int32:74
10 10 *
11 returns: string "Hello." 11 * returns: string "Hello."
12 12 *
13 prompt$ gaim-send DbusExampleSetText int32:74 string:Bye! 13 * prompt$ gaim-send DbusExampleSetText int32:74 string:Bye!
14 14 *
15 prompt$ gaim-send DbusExampleGetText int32:74 15 * prompt$ gaim-send DbusExampleGetText int32:74
16 16 *
17 returns: string "Bye!" 17 * returns: string "Bye!"
18 18 *
19 * Gaim is the legal property of its developers, whose names are too numerous
20 * to list here. Please refer to the COPYRIGHT file distributed with this
21 * source distribution.
22 *
23 * This program is free software; you can redistribute it and/or modify
24 * it under the terms of the GNU General Public License as published by
25 * the Free Software Foundation; either version 2 of the License, or
26 * (at your option) any later version.
27 *
28 * This program is distributed in the hope that it will be useful,
29 * but WITHOUT ANY WARRANTY; without even the implied warranty of
30 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31 * GNU General Public License for more details.
32 *
33 * You should have received a copy of the GNU General Public License
34 * along with this program; if not, write to the Free Software
35 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */ 36 */
20 37
21 #include "internal.h" 38 #include "internal.h"
22 39
23 #include "plugin.h" 40 #include "plugin.h"