Sun, 04 Dec 2005 18:19:56 +0000
[gaim-migrate @ 14627]
Function prototypes need to be of the form foo(void); instead of foo(); for function that don't take any arguments. This allows the compiler to detect mistakes were someone passes arguments to such a function.
| 12246 | 1 | /** |
| 2 | * @file gtksession.h X Windows session management API | |
| 3 | * @ingroup gtkui | |
| 4 | * | |
| 5 | * gaim | |
| 6 | * | |
| 7 | * Gaim is the legal property of its developers, whose names are too numerous | |
| 8 | * to list here. Please refer to the COPYRIGHT file distributed with this | |
| 9 | * source distribution. | |
| 10 | * | |
| 11 | * This program is free software; you can redistribute it and/or modify | |
| 12 | * it under the terms of the GNU General Public License as published by | |
| 13 | * the Free Software Foundation; either version 2 of the License, or | |
| 14 | * (at your option) any later version. | |
| 15 | * | |
| 16 | * This program is distributed in the hope that it will be useful, | |
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 19 | * GNU General Public License for more details. | |
| 20 | * | |
| 21 | * You should have received a copy of the GNU General Public License | |
| 22 | * along with this program; if not, write to the Free Software | |
| 23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 24 | */ | |
| 25 | #ifndef _GAIM_GTKSESSION_H_ | |
| 26 | #define _GAIM_GTKSESSION_H_ | |
| 27 | ||
| 28 | /**************************************************************************/ | |
| 29 | /** @name X Windows session subsystem */ | |
| 30 | /**************************************************************************/ | |
| 31 | /*@{*/ | |
| 32 | ||
| 33 | /** | |
|
12247
293f649a1693
[gaim-migrate @ 14549]
Mark Doliner <markdoliner@pidgin.im>
parents:
12246
diff
changeset
|
34 | * Register this instance of Gaim with the user's current session |
|
293f649a1693
[gaim-migrate @ 14549]
Mark Doliner <markdoliner@pidgin.im>
parents:
12246
diff
changeset
|
35 | * manager. |
|
293f649a1693
[gaim-migrate @ 14549]
Mark Doliner <markdoliner@pidgin.im>
parents:
12246
diff
changeset
|
36 | * |
|
293f649a1693
[gaim-migrate @ 14549]
Mark Doliner <markdoliner@pidgin.im>
parents:
12246
diff
changeset
|
37 | * @param argv0 The first argument passed into the program. This |
|
293f649a1693
[gaim-migrate @ 14549]
Mark Doliner <markdoliner@pidgin.im>
parents:
12246
diff
changeset
|
38 | * will be the name of the executable, e.g. 'gaim' |
|
293f649a1693
[gaim-migrate @ 14549]
Mark Doliner <markdoliner@pidgin.im>
parents:
12246
diff
changeset
|
39 | * @param previous_id An optional session ID to use. This can be NULL. |
|
293f649a1693
[gaim-migrate @ 14549]
Mark Doliner <markdoliner@pidgin.im>
parents:
12246
diff
changeset
|
40 | * @param config_dir The path to the configuration directory used by |
|
293f649a1693
[gaim-migrate @ 14549]
Mark Doliner <markdoliner@pidgin.im>
parents:
12246
diff
changeset
|
41 | * this instance of this program, e.g. '/home/user/.gaim' |
| 12246 | 42 | */ |
| 43 | void gaim_gtk_session_init(gchar *argv0, gchar *previous_id, gchar *config_dir); | |
| 44 | ||
| 45 | /** | |
|
12247
293f649a1693
[gaim-migrate @ 14549]
Mark Doliner <markdoliner@pidgin.im>
parents:
12246
diff
changeset
|
46 | * Unregister this instance of Gaim with the user's current session |
|
293f649a1693
[gaim-migrate @ 14549]
Mark Doliner <markdoliner@pidgin.im>
parents:
12246
diff
changeset
|
47 | * manager. |
| 12246 | 48 | */ |
|
12323
f52908fb23b0
[gaim-migrate @ 14627]
Richard Laager <rlaager@pidgin.im>
parents:
12247
diff
changeset
|
49 | void gaim_gtk_session_end(void); |
| 12246 | 50 | |
| 51 | /*@}*/ | |
| 52 | ||
| 53 | #endif /* _GAIM_GTKSESSION_H_ */ |