VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.17.1/systemd-logind.h@ 54163

Last change on this file since 54163 was 54163, checked in by vboxsync, 10 years ago

Additions/x11/vboxvideo: support X.Org Server 1.17 (still untested).

  • Property svn:eol-style set to native
File size: 1.8 KB
Line 
1/*
2 * Copyright © 2013 Red Hat, Inc.
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice (including the next
12 * paragraph) shall be included in all copies or substantial portions of the
13 * Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21 * DEALINGS IN THE SOFTWARE.
22 *
23 * Author: Hans de Goede <[email protected]>
24 */
25
26#ifndef SYSTEMD_LOGIND_H
27#define SYSTEMD_LOGIND_H
28
29#ifdef SYSTEMD_LOGIND
30int systemd_logind_init(void);
31void systemd_logind_fini(void);
32int systemd_logind_take_fd(int major, int minor, const char *path, Bool *paus);
33void systemd_logind_release_fd(int major, int minor, int fd);
34int systemd_logind_controls_session(void);
35void systemd_logind_vtenter(void);
36#else
37#define systemd_logind_init()
38#define systemd_logind_fini()
39#define systemd_logind_take_fd(major, minor, path, paus) -1
40#define systemd_logind_release_fd(major, minor, fd) close(fd)
41#define systemd_logind_controls_session() 0
42#define systemd_logind_vtenter()
43#endif
44
45#endif
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette