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
84typedef int ofstatus;
85
89typedef void* ofobj_p;
90
94typedef uint64_t class_id_t;
95
99
100#endif /* OPFLEX_C_OFCORE_H */
int ofstatus
An opflex status code.
Definition ofcore_c.h:84
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