I guess I'll release this later today. Is that ok with everyone?
[pidgin-git.git] / pidgin / gtksession.h
blobfb7711329e06dce53f6e5f247c9295a9eff2591f
1 /**
2 * @file gtksession.h X Windows session management API
3 * @ingroup pidgin
4 */
6 /* pidgin
8 * Pidgin is the legal property of its developers, whose names are too numerous
9 * to list here. Please refer to the COPYRIGHT file distributed with this
10 * source distribution.
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
26 #ifndef _PIDGINSESSION_H_
27 #define _PIDGINSESSION_H_
29 /**************************************************************************/
30 /** @name X Windows session subsystem */
31 /**************************************************************************/
32 /*@{*/
34 /**
35 * Register this instance of Pidgin with the user's current session
36 * manager.
38 * @param argv0 The first argument passed into the program. This
39 * will be the name of the executable, e.g. 'purple'
40 * @param previous_id An optional session ID to use. This can be NULL.
41 * @param config_dir The path to the configuration directory used by
42 * this instance of this program, e.g. '/home/user/.purple'
44 void pidgin_session_init(gchar *argv0, gchar *previous_id, gchar *config_dir);
46 /**
47 * Unregister this instance of Pidgin with the user's current session
48 * manager.
50 void pidgin_session_end(void);
52 /*@}*/
54 #endif /* _PIDGINSESSION_H_ */