OpFlex Framework 1.7.0
ofobjectlistener_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#include "ofuri_c.h"
16
17#pragma once
18#ifndef OPFLEX_C_OFOBJECTLISTENER_H
19#define OPFLEX_C_OFOBJECTLISTENER_H
20
27
36
41
48typedef void (*ofnotify_p)(void* user_data, class_id_t class_id, ofuri_p uri);
49
50#ifdef __cplusplus
51extern "C" {
52#endif
53
67 ofnotify_p callback,
68 /* out */ ofobjectlistener_p* listener);
69
79
80#ifdef __cplusplus
81} /* extern "C" */
82#endif
83
87
88#endif /* OPFLEX_C_OFOBJECTLISTENER_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
void(* ofnotify_p)(void *user_data, class_id_t class_id, ofuri_p uri)
A function pointer to a function to receive notificiations.
Definition ofobjectlistener_c.h:48
ofstatus ofobjectlistener_create(void *user_data, ofnotify_p callback, ofobjectlistener_p *listener)
Create a new object listener.
ofobj_p ofobjectlistener_p
A pointer to an object listener object.
Definition ofobjectlistener_c.h:40
ofstatus ofobjectlistener_destroy(ofobjectlistener_p *listener)
Destroy an object listener, and zero the pointer.
ofobj_p ofuri_p
A pointer to a URI object.
Definition ofuri_c.h:40
C wrapper core defininitions.
C wrapper for URI.