kdelibs/kinit/klauncher_cmds.h
Ivailo Monev f1eeb96440 kinit: remove unused LAUNCHER_TERMINATE_KDE command
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-25 09:23:20 +03:00

139 lines
3.4 KiB
C

/*
This file is part of the KDE libraries
Copyright (c) 1999 Waldo Bastian <bastian@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef _KLAUNCHER_CMDS_H_
#define _KLAUNCHER_CMDS_H_
typedef struct
{
long cmd;
long arg_length;
} klauncher_header;
/* Launcher commands: */
/*
* LAUNCHER_EXEC
*
* Start a new process. Try using LAUNCHER_EXEC_NEW instead.
* There will be no app startup notification.
*
* long argc: number of arguments
* char *args: arguments, argument 0 is the program to start.
*/
#define LAUNCHER_EXEC 1
/*
* LAUNCHER_SETENV
*
* Change environment of future processes launched via kdeinit.
* DON'T use this if you want to change environment only for one
* application you're going to start.
*
* char *env_name;
* char *env_value;
*/
#define LAUNCHER_SETENV 2
/*
* LAUNCHER_CHILD_DIED
*
* Notification A child of kdeinit died.
*
* long pid;
* long exit_code;
*/
#define LAUNCHER_CHILD_DIED 3
/*
* LAUNCHER_OK
*
* Notification Last process launched ok.
*
* long pid;
*/
#define LAUNCHER_OK 4
/*
* LAUNCHER_ERROR
*
* Notification Last process could not be launched.
*
* char *error msg (utf8)
*/
#define LAUNCHER_ERROR 5
/*
* LAUNCHER_TERMINATE_KDEINIT
*
* Suicide is painless
*/
#define LAUNCHER_TERMINATE_KDEINIT 6
/*
* LAUNCHER_DEBUG_WAIT
*
* Next process started will do a sleep(1000000)
* before calling main()/kdemain()
*
* (Used for debugging io-slaves)
*/
#define LAUNCHER_DEBUG_WAIT 7
/*
* LAUNCHER_EXT_EXEC
*
* Start a new process. The given environment variables will
* be added to its environment before starting it.
* Starts app-startup notification.
*
* long argc: number of arguments
* char *args: arguments, argument 0 is the program to start.
* long envc: number of environment vars
* char *envs: environment strings.
* int avoid_loops : avoid using the first path in $PATH where
* this process binary is found in order to avoid
* infinite loop by binary->kdeinit_wrapper link in $PATH
* char* startup_id: app startup notification id, "0" for none,
* "" ( empty string ) is the default
*
*/
#define LAUNCHER_EXT_EXEC 8
/*
* LAUNCHER_EXEC_NEW
*
* Start a new process. An improved version of LAUNCHER_EXEC.
* The given environment variables will be added
* to its environment before starting it.
* There will be no app startup notification.
*
* long argc: number of arguments
* char *args: arguments, argument 0 is the program to start.
* long envc: number of environment vars
* char *envs: environment strings.
* int avoid_loops : avoid using the first path in $PATH where
* this process binary is found in order to avoid
* infinite loop by binary->kdeinit_wrapper link in $PATH
*/
#define LAUNCHER_EXEC_NEW 9
const char* commandToString(int command);
#endif