build-sys: get rid of noinst_HEADERS
[vd_agent.git] / src / session-info.h
blobc8edb86ae7ed32b5a19d84ffad0b33c6faeff329
1 /* console-kit.h vdagentd ConsoleKit integration code - header
3 Copyright 2010-2012 Red Hat, Inc.
5 Red Hat Authors:
6 Hans de Goede <hdegoede@redhat.com>
8 This program is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>.
22 #ifndef __SESSION_INFO_H
23 #define __SESSION_INFO_H
25 #include <stdio.h>
26 #include <stdint.h>
27 #include <glib.h>
29 struct session_info;
31 struct session_info *session_info_create(int verbose);
32 void session_info_destroy(struct session_info *ck);
34 int session_info_get_fd(struct session_info *ck);
36 const char *session_info_get_active_session(struct session_info *ck);
37 /* Note result must be free()-ed by caller */
38 char *session_info_session_for_pid(struct session_info *ck, uint32_t pid);
40 gboolean session_info_session_is_locked(struct session_info *si);
41 gboolean session_info_is_user(struct session_info *si);
43 #endif