/* * Copyright (c) 2008, 2009 Nicira Networks. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #ifndef STATUS_H #define STATUS_H 1 #include "compiler.h" struct nicira_header; struct rconn; struct secchan; struct ofproto; struct status_reply; struct switch_status *switch_status_create(const struct ofproto *); void switch_status_destroy(struct switch_status *); int switch_status_handle_request(struct switch_status *, struct rconn *, struct nicira_header *); typedef void status_cb_func(struct status_reply *, void *aux); struct status_category *switch_status_register(struct switch_status *, const char *category, status_cb_func *, void *aux); void switch_status_unregister(struct status_category *); void status_reply_put(struct status_reply *, const char *, ...) PRINTF_FORMAT(2, 3); void rconn_status_cb(struct status_reply *, void *rconn_); #endif /* status.h */