xserver

xserver with xephyr scale patch
git clone https://git.neptards.moe/u3shit/xserver.git
Log | Files | Refs | README | LICENSE

systemd-logind.h (1915B)


      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 <hdegoede@redhat.com>
     24  */
     25 
     26 #ifndef SYSTEMD_LOGIND_H
     27 #define SYSTEMD_LOGIND_H
     28 
     29 #ifdef SYSTEMD_LOGIND
     30 int systemd_logind_init(void);
     31 void systemd_logind_fini(void);
     32 int systemd_logind_take_fd(int major, int minor, const char *path, Bool *paus);
     33 void systemd_logind_release_fd(int major, int minor, int fd);
     34 int systemd_logind_controls_session(void);
     35 void systemd_logind_vtenter(void);
     36 void systemd_logind_drop_master(void);
     37 #else
     38 #define systemd_logind_init()
     39 #define systemd_logind_fini()
     40 #define systemd_logind_take_fd(major, minor, path, paus) -1
     41 #define systemd_logind_release_fd(major, minor, fd) close(fd)
     42 #define systemd_logind_controls_session() 0
     43 #define systemd_logind_vtenter()
     44 #define systemd_logind_drop_master()
     45 #endif
     46 
     47 #endif