Sophie

Sophie

distrib > Mandriva > 2011.0 > i586 > media > contrib-release-debug > by-pkgid > 06ee416f3f20261a7863fcb68c55d6b6 > files > 27

gexec-debug-0.3.6-11mdv2011.0.i586.rpm

/*
 * Copyright (C) 2002 Brent N. Chun <bnc@caltech.edu>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * 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; if not, write to the Free
 * Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 * MA 02111-1307, USA.
 */
#ifndef __REQUEST_H
#define __REQUEST_H

#include <unistd.h>
#include <sys/types.h>
#include "gexec_lib.h"

typedef struct {
    int              argc;
    char             **argv;
    int              envc;
    char             **envp;
    _gexec_gpid      gpid;
    char             *user;
    char             *cwd;
    gexec_spawn_opts opts;
} request;

void request_create(request **r, int argc, char **argv, int envc, char **envp,
                    gexec_spawn_opts *opts);
int  request_create_from_buf(request **r, void *buf, int buf_len);
void *request_malloc_buf(request *r, int *buf_len);
void request_destroy(request *r);

void request_print(request *r);

#endif /* __REQUEST_H */