Add purple_util_write_data_to_*_file declarations
[pidgin-git.git] / pidgin / gtksession.h
blobfeaddd6de287792f7c678190d565137b2c93e96f
1 /* pidgin
3 * Pidgin is the legal property of its developers, whose names are too numerous
4 * to list here. Please refer to the COPYRIGHT file distributed with this
5 * source distribution.
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
22 #ifndef _PIDGINSESSION_H_
23 #define _PIDGINSESSION_H_
24 /**
25 * SECTION:gtksession
26 * @section_id: pidgin-gtksession
27 * @short_description: <filename>gtksession.h</filename>
28 * @title: X Windows Session Management
31 G_BEGIN_DECLS
33 /**************************************************************************/
34 /* X Windows session subsystem */
35 /**************************************************************************/
37 /**
38 * pidgin_session_init:
39 * @argv0: The first argument passed into the program. This
40 * will be the name of the executable, e.g. 'purple'
41 * @previous_id: An optional session ID to use. This can be NULL.
42 * @config_dir: The path to the configuration directory used by
43 * this instance of this program, e.g. '/home/user/.purple'
45 * Register this instance of Pidgin with the user's current session
46 * manager.
48 void pidgin_session_init(gchar *argv0, gchar *previous_id, gchar *config_dir);
50 /**
51 * pidgin_session_end:
53 * Unregister this instance of Pidgin with the user's current session
54 * manager.
56 void pidgin_session_end(void);
58 G_END_DECLS
60 #endif /* _PIDGINSESSION_H_ */