Home | History | Annotate | Download | only in bus
      1 /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
      2 /* activation-exit-codes.h  Return values for the launch helper which is set
      3  *                          in the helper and read in dbus-spawn.
      4  *
      5  * Copyright (C) 2007 Red Hat, Inc.
      6  *
      7  * Licensed under the Academic Free License version 2.1
      8  *
      9  * This program is free software; you can redistribute it and/or modify
     10  * it under the terms of the GNU General Public License as published by
     11  * the Free Software Foundation; either version 2 of the License, or
     12  * (at your option) any later version.
     13  *
     14  * This program is distributed in the hope that it will be useful,
     15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
     16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     17  * GNU General Public License for more details.
     18  *
     19  * You should have received a copy of the GNU General Public License
     20  * along with this program; if not, write to the Free Software
     21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
     22  *
     23  */
     24 
     25 #ifndef BUS_ACTIVATION_EXIT_CODES_H
     26 #define BUS_ACTIVATION_EXIT_CODES_H
     27 
     28 /** Return codes from the launch helper - not public API. However,
     29  *  presumably if some third party did write their own launch helper,
     30  *  they would have to rely on these, or at least always return
     31  *  1 for GENERIC_FAILURE.
     32  */
     33 #define BUS_SPAWN_EXIT_CODE_GENERIC_FAILURE      1
     34 #define BUS_SPAWN_EXIT_CODE_NO_MEMORY            2
     35 #define BUS_SPAWN_EXIT_CODE_CONFIG_INVALID       3
     36 #define BUS_SPAWN_EXIT_CODE_SETUP_FAILED         4
     37 #define BUS_SPAWN_EXIT_CODE_NAME_INVALID         5
     38 #define BUS_SPAWN_EXIT_CODE_SERVICE_NOT_FOUND    6
     39 #define BUS_SPAWN_EXIT_CODE_PERMISSIONS_INVALID  7
     40 #define BUS_SPAWN_EXIT_CODE_FILE_INVALID         8
     41 #define BUS_SPAWN_EXIT_CODE_EXEC_FAILED          9
     42 #define BUS_SPAWN_EXIT_CODE_INVALID_ARGS         10
     43 #define BUS_SPAWN_EXIT_CODE_CHILD_SIGNALED       11
     44 
     45 #endif /* BUS_ACTIVATION_EXIT_CODES_H */
     46