~james-page/ubuntu/saucy/openvswitch/1.12-snapshot

« back to all changes in this revision

Viewing changes to ovsdb/jsonrpc-server.h

  • Committer: James Page
  • Date: 2013-08-21 10:16:57 UTC
  • mfrom: (1.1.20)
  • Revision ID: james.page@canonical.com-20130821101657-3o0z0qeiv5zkwlzi
New upstream snapshot

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (c) 2009, 2010, 2011, 2012 Nicira, Inc.
 
1
/* Copyright (c) 2009, 2010, 2011, 2012, 2013 Nicira, Inc.
2
2
 *
3
3
 * Licensed under the Apache License, Version 2.0 (the "License");
4
4
 * you may not use this file except in compliance with the License.
17
17
#define OVSDB_JSONRPC_SERVER_H 1
18
18
 
19
19
#include <stdbool.h>
 
20
#include "openvswitch/types.h"
20
21
 
21
22
struct ovsdb;
22
23
struct shash;
25
26
struct ovsdb_jsonrpc_server *ovsdb_jsonrpc_server_create(void);
26
27
bool ovsdb_jsonrpc_server_add_db(struct ovsdb_jsonrpc_server *,
27
28
                                 struct ovsdb *);
 
29
bool ovsdb_jsonrpc_server_remove_db(struct ovsdb_jsonrpc_server *,
 
30
                                     struct ovsdb *);
28
31
void ovsdb_jsonrpc_server_destroy(struct ovsdb_jsonrpc_server *);
29
32
 
30
33
/* Options for a remote. */
50
53
    char *locks_waiting;
51
54
    char *locks_lost;
52
55
    int n_connections;
 
56
    ovs_be16 bound_port;
53
57
};
54
58
bool ovsdb_jsonrpc_server_get_remote_status(
55
59
    const struct ovsdb_jsonrpc_server *, const char *target,