diff options
author | dos-reis <gdr@axiomatics.org> | 2009-10-25 02:39:57 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2009-10-25 02:39:57 +0000 |
commit | bd7d826e17d7719188598a9149403d544d1c45bc (patch) | |
tree | 50ca970578d4560c976c6d9818adb07857775106 /src/include | |
parent | 4a8c82c52e9cf88d925c1de807307b6ec8d26c9b (diff) | |
download | open-axiom-bd7d826e17d7719188598a9149403d544d1c45bc.tar.gz |
* lib/cfuns-c.c (oa_spawn): New.
(oa_allocate_process_argv): Likewise.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/open-axiom.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/include/open-axiom.h b/src/include/open-axiom.h index b27c9ea3..df814476 100644 --- a/src/include/open-axiom.h +++ b/src/include/open-axiom.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2007-2008, Gabriel Dos Reis. + Copyright (C) 2007-2009, Gabriel Dos Reis. All rights reserved. Redistribution and use in source and binary forms, with or without @@ -85,8 +85,20 @@ typedef enum openaxiom_byteorder { } openaxiom_byteorder; -/* Return the address of the data buffer `BUF'. */ +/* Datatype for packaging information necessary tolaunch a process. */ +typedef struct openaxiom_process { + int argc; + char** argv; + int id; +} openaxiom_process; + +typedef enum openaxiom_spawn_flags { + openaxiom_spawn_search_path = 0x01, + openaxiom_spawn_replace = 0x02, +} openaxiom_spawn_flags; + +/* Return the address of the data buffer `BUF'. */ #define oa_buffer_address(BUF) ((openaxiom_byte*)&BUF[0]) @@ -107,6 +119,9 @@ openaxiom_sleep(int n) } +OPENAXIOM_EXPORT void oa_allocate_process_argv(openaxiom_process*, int); +OPENAXIOM_EXPORT int oa_spawn(openaxiom_process*, openaxiom_spawn_flags); + #ifdef __cplusplus } #endif |