OpFlex Framework  1.7.0
ofuri_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 #include "ofcore_c.h"
15 
16 #ifndef OPFLEX_C_OFURI_H
17 #define OPFLEX_C_OFURI_H
18 
40 typedef ofobj_p ofuri_p;
41 
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 
54  ofstatus ofuri_get_str(ofuri_p uri, /* out */ const char** str);
55 
64  ofstatus ofuri_hash(ofuri_p uri, /* out */ size_t* hash_value);
65 
66 #ifdef __cplusplus
67 } /* extern "C" */
68 #endif
69 
74 #endif /* OPFLEX_C_OFURI_H */
ofobj_p ofuri_p
A pointer to a URI object.
Definition: ofuri_c.h:40
ofstatus ofuri_get_str(ofuri_p uri, const char **str)
Get a C-style string representation of the URI.
void * ofobj_p
Base type for all OpFlex object pointers.
Definition: ofcore_c.h:89
ofstatus ofuri_hash(ofuri_p uri, size_t *hash_value)
Compute a hash value for the URI that can be used with a hash table.
size_t hash_value(MAC const &mac)
Compute a hash value for the MAC, making MAC suitable as a key in a boost::unordered_map.
C wrapper core defininitions.
int ofstatus
An opflex status code.
Definition: ofcore_c.h:84