glib/glibbackend/inc/glibbackend.h
changeset 0 e4d67989cc36
equal deleted inserted replaced
-1:000000000000 0:e4d67989cc36
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19  
       
    20 
       
    21 #ifndef __GLIBBACKEND_H__
       
    22 #define __GLIBBACKEND_H__
       
    23 
       
    24 #include <_ansi.h>
       
    25 #include <unistd.h>
       
    26 
       
    27 #define P_NOWAIT 0
       
    28 #define P_WAIT 1
       
    29 
       
    30 typedef int HANDLE;
       
    31 typedef HANDLE* LPHANDLE;
       
    32 typedef long DWORD;
       
    33 typedef int BOOL;
       
    34 
       
    35 #ifdef __cplusplus
       
    36 extern "C"
       
    37 {
       
    38 #endif    /* __cplusplus */
       
    39 
       
    40 IMPORT_C int spawnv(int mode,const char * path,const char **argv);
       
    41 IMPORT_C int spawnvp(int mode,const char * path,const char **argv);
       
    42 IMPORT_C BOOL CloseHandle(HANDLE handle);
       
    43 IMPORT_C HANDLE GetCurrentProcess();
       
    44 IMPORT_C int spawnve(int mode,const char * path,const char **argv,const char **envp);
       
    45 IMPORT_C int spawnvpe(int mode,const char * path,const char **argv,const char **envp);
       
    46 IMPORT_C char* applicationpath();
       
    47 IMPORT_C int check_for_child_exited (int aHandle);
       
    48 IMPORT_C void *pAlloc(size_t nBytes);
       
    49 IMPORT_C char *getProgPath(char *progName);
       
    50 IMPORT_C void pFree(void *ptr);
       
    51 IMPORT_C void *pReAlloc(void *ptr,size_t nBytes);
       
    52 
       
    53 #ifdef __cplusplus
       
    54 }
       
    55 #endif    /* __cplusplus */
       
    56 
       
    57 #endif /* __GLIBBACKEND_H__ */