Hardware Locality (hwloc)  v2.1-20200123.0330.git0a8b367
netloc.h
00001 /*
00002  * Copyright © 2013-2014 Cisco Systems, Inc.  All rights reserved.
00003  * Copyright © 2013-2014 University of Wisconsin-La Crosse.
00004  *                         All rights reserved.
00005  * Copyright © 2015-2016 Inria.  All rights reserved.
00006  *
00007  * $COPYRIGHT$
00008  *
00009  * Additional copyrights may follow
00010  * See COPYING in top-level directory.
00011  *
00012  * $HEADER$
00013  */
00014 
00015 #ifndef _NETLOC_H_
00016 #define _NETLOC_H_
00017 
00018 #ifndef _GNU_SOURCE
00019 #define _GNU_SOURCE // for asprintf
00020 #endif
00021 
00022 #include <hwloc/autogen/config.h>
00023 
00024 #include <hwloc.h>
00025 
00026 #ifdef __cplusplus
00027 extern "C" {
00028 #endif
00029 
00036 enum {
00037     NETLOC_SUCCESS         =  0, 
00038     NETLOC_ERROR           = -1, 
00039     NETLOC_ERROR_NOTDIR    = -2, 
00040     NETLOC_ERROR_NOENT     = -3, 
00041     NETLOC_ERROR_EMPTY     = -4, 
00042     NETLOC_ERROR_MULTIPLE  = -5, 
00043     NETLOC_ERROR_NOT_IMPL  = -6, 
00044     NETLOC_ERROR_EXISTS    = -7, 
00045     NETLOC_ERROR_NOT_FOUND = -8, 
00046     NETLOC_ERROR_MAX       = -9  
00047 };
00048 
00049 
00050 #ifdef __cplusplus
00051 } /* extern "C" */
00052 #endif
00053 
00056 #endif // _NETLOC_H_