netloc.h
/*
* Copyright © 2013-2014 Cisco Systems, Inc. All rights reserved.
* Copyright © 2013-2014 University of Wisconsin-La Crosse.
* All rights reserved.
* Copyright © 2015-2016 Inria. All rights reserved.
*
* $COPYRIGHT$
*
* Additional copyrights may follow
* See COPYING in top-level directory.
*
* $HEADER$
*/
#ifndef _NETLOC_H_
#define _NETLOC_H_
#ifndef _GNU_SOURCE
#define _GNU_SOURCE // for asprintf
#endif
#include <hwloc/autogen/config.h>
#include <hwloc.h>
#ifdef __cplusplus
extern "C" {
#endif
enum {
NETLOC_SUCCESS = 0,
NETLOC_ERROR = -1,
NETLOC_ERROR_NOTDIR = -2,
NETLOC_ERROR_NOENT = -3,
NETLOC_ERROR_EMPTY = -4,
NETLOC_ERROR_MULTIPLE = -5,
NETLOC_ERROR_NOT_IMPL = -6,
NETLOC_ERROR_EXISTS = -7,
NETLOC_ERROR_NOT_FOUND = -8,
NETLOC_ERROR_MAX = -9
};
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif // _NETLOC_H_
NETLOC_ERROR_MAX
@ NETLOC_ERROR_MAX
Definition: netloc.h:46
NETLOC_ERROR_NOTDIR
@ NETLOC_ERROR_NOTDIR
Definition: netloc.h:39
NETLOC_SUCCESS
@ NETLOC_SUCCESS
Definition: netloc.h:37
NETLOC_ERROR
@ NETLOC_ERROR
Definition: netloc.h:38
NETLOC_ERROR_NOT_FOUND
@ NETLOC_ERROR_NOT_FOUND
Definition: netloc.h:45
NETLOC_ERROR_EXISTS
@ NETLOC_ERROR_EXISTS
Definition: netloc.h:44
NETLOC_ERROR_NOENT
@ NETLOC_ERROR_NOENT
Definition: netloc.h:40
NETLOC_ERROR_EMPTY
@ NETLOC_ERROR_EMPTY
Definition: netloc.h:41
NETLOC_ERROR_MULTIPLE
@ NETLOC_ERROR_MULTIPLE
Definition: netloc.h:42
NETLOC_ERROR_NOT_IMPL
@ NETLOC_ERROR_NOT_IMPL
Definition: netloc.h:43