OpFlex Framework  1.3.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 
44 #define OF_ESUCCESS 0
45 
48 #define OF_EFAILED 1
49 
52 #define OF_EMEMORY 2
53 
56 #define OF_ELOGIC 10
57 
61 #define OF_EOUTOFRANGE 11
62 
65 #define OF_EINVALID_ARG 12
66 
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 
100 #endif /* OPFLEX_C_OFCORE_H */
uint64_t class_id_t
A unique class ID.
Definition: ofcore_c.h:94
void * ofobj_p
Base type for all OpFlex object pointers.
Definition: ofcore_c.h:89
int ofstatus
An opflex status code.
Definition: ofcore_c.h:84