3 /* gras/core.h - Unsorted part of the GRAS public interface */
5 /* Copyright (c) 2003, 2004 Martin Quinson. All rights reserved. */
7 /* This program is free software; you can redistribute it and/or modify it
8 * under the terms of the license (GNU LGPL) which comes with this package. */
13 #include <stddef.h> /* offsetof() */
14 #include <sys/types.h> /* size_t */
19 /* /\*! C++ users need love *\/ */
20 /* #ifndef BEGIN_DECL */
21 /* # ifdef __cplusplus */
22 /* # define BEGIN_DECL() extern "C" { */
24 /* # define BEGIN_DECL() */
28 /* /\*! C++ users need love *\/ */
29 /* #ifndef END_DECL */
30 /* # ifdef __cplusplus */
31 /* # define END_DECL() } */
33 /* # define END_DECL() */
36 /* /\* End of cruft for C++ *\/ */
40 /* **************************************************************************
41 * Garbage collection support
42 * **************************************************************************/
43 typedef enum { free_after_use, free_never } e_xbt_free_directive_t;
46 /* **************************************************************************
47 * Wrappers over OS functions
48 * **************************************************************************/
53 * Returns the fully-qualified name of the host machine, or NULL if the name
54 * cannot be determined. Always returns the same value, so multiple calls
58 gras_get_my_fqdn(void);
60 void gras_init(int *argc,char **argv, const char *defaultlog);
65 #endif /* GRAS_CORE_H */