2 * @file gtksession.h X Windows session management API
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 /**************************************************************************/
35 * Register this instance of Pidgin with the user's current session
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
);
47 * Unregister this instance of Pidgin with the user's current session
50 void pidgin_session_end(void);
54 #endif /* _PIDGINSESSION_H_ */