OpFlex Framework
1.7.0
ofcore_c.h
Go to the documentation of this file.
1
/* -*- C -*-; c-basic-offset: 4; indent-tabs-mode: nil */
6
/*
7
* Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
8
*
9
* This program and the accompanying materials are made available under the
10
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
11
* and is available at http://www.eclipse.org/legal/epl-v10.html
12
*/
13
14
#ifndef OPFLEX_C_OFCORE_H
15
#define OPFLEX_C_OFCORE_H
16
17
#include <stdint.h>
18
28
34
40
44
#define OF_ESUCCESS 0
48
#define OF_EFAILED 1
52
#define OF_EMEMORY 2
56
#define OF_ELOGIC 10
61
#define OF_EOUTOFRANGE 11
65
#define OF_EINVALID_ARG 12
69
#define OF_ERUNTIME 10
70
74
#define OF_IS_SUCCESS(statusc) ((statusc) == OF_ESUCCESS)
75
79
#define OF_IS_FAILURE(statusc) (!OF_IS_SUCCESS(statusc))
80
84
typedef
int
ofstatus
;
85
89
typedef
void
*
ofobj_p
;
90
94
typedef
uint64_t
class_id_t
;
95
99
100
#endif
/* OPFLEX_C_OFCORE_H */
ofstatus
int ofstatus
An opflex status code.
Definition
ofcore_c.h:84
class_id_t
uint64_t class_id_t
A unique class ID.
Definition
ofcore_c.h:94
ofobj_p
void * ofobj_p
Base type for all OpFlex object pointers.
Definition
ofcore_c.h:89
include
opflex
c
ofcore_c.h
Generated by
1.13.1