misc/vim: inform the user when no results are found
[nit.git] / c_src / exec_nit.h
1 #ifndef __EXEC_NIT_H
2 #define __EXEC_NIT_H
3 /* This file is part of NIT ( http://www.nitlanguage.org ).
4 *
5 * Copyright 2004-2008 Jean Privat <jean@pryen.org>
6 * Copyright 2008 Floréal Morandat <morandat@lirmm.fr>
7 *
8 * This file is free software, which comes along with NIT. This software is
9 * distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
10 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 * PARTICULAR PURPOSE. You can modify it is you want, provided this header
12 * is kept unaltered, and a notification of the changes is added.
13 * You are allowed to redistribute it and sell it, alone or is a part of
14 * another product.
15 */
16
17 #include <unistd.h>
18 #include <sys/types.h>
19 #include <sys/wait.h>
20 #include <signal.h>
21
22 typedef struct se_exec_data se_exec_data_t;
23 struct se_exec_data {
24 pid_t id;
25 int running;
26 int status;
27 int in_fd;
28 int out_fd;
29 int err_fd;
30 };
31
32 se_exec_data_t* exec_Process_Process_basic_exec_execute_4(void *, char *, char *, int, int);
33
34 #define string_NativeString_NativeString_system_0(self) (system(self))
35
36 #define exec_NativeProcess_NativeProcess_id_0(self) (((se_exec_data_t*)self)->id)
37 #define exec_NativeProcess_NativeProcess_status_0(self) (((se_exec_data_t*)self)->status)
38
39 #define exec_NativeProcess_NativeProcess_in_fd_0(self) (((se_exec_data_t*)self)->in_fd)
40 #define exec_NativeProcess_NativeProcess_out_fd_0(self) (((se_exec_data_t*)self)->out_fd)
41 #define exec_NativeProcess_NativeProcess_err_fd_0(self) (((se_exec_data_t*)self)->err_fd)
42
43 int exec_NativeProcess_NativeProcess_is_finished_0(void*);
44 void exec_NativeProcess_NativeProcess_wait_0(void*);
45
46 #endif