提交 b48d5f7a 编写于 作者: R Richard W.M. Jones

Mon Jun 25 09:40:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>

	* src/remote_internal.c: Made cosmetic changes to the code and
	  comments to allow 'make -C docs rebuild' to succeed parsing
	  this file.
上级 2670b9c8
Mon Jun 25 09:40:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/remote_internal.c: Made cosmetic changes to the code and
comments to allow 'make -C docs rebuild' to succeed parsing
this file.
Mon Jun 25 09:19:00 BST 2007 Richard W.M. Jones <rjones@redhat.com> Mon Jun 25 09:19:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* docs/site.xsl: Added link to OCaml bindings. * docs/site.xsl: Added link to OCaml bindings.
......
...@@ -93,7 +93,7 @@ struct query_fields { ...@@ -93,7 +93,7 @@ struct query_fields {
static int query_parse (const char *query, static int query_parse (const char *query,
const char *separator, const char *separator,
struct query_fields **fields_out); struct query_fields * *fields_out);
static int query_create (const struct query_fields *fields, static int query_create (const struct query_fields *fields,
const char *separator, const char *separator,
char **query_out); char **query_out);
...@@ -104,13 +104,13 @@ static int initialise_gnutls (virConnectPtr conn); ...@@ -104,13 +104,13 @@ static int initialise_gnutls (virConnectPtr conn);
static gnutls_session_t negotiate_gnutls_on_connection (virConnectPtr conn, int sock, int no_verify, const char *hostname); static gnutls_session_t negotiate_gnutls_on_connection (virConnectPtr conn, int sock, int no_verify, const char *hostname);
/* Supported transports. */ /* Supported transports. */
enum transport { typedef enum {
trans_tls, trans_tls,
trans_unix, trans_unix,
trans_ssh, trans_ssh,
trans_ext, trans_ext,
trans_tcp, trans_tcp,
}; } transport;
static int static int
remoteOpen (virConnectPtr conn, const char *uri_str, int flags) remoteOpen (virConnectPtr conn, const char *uri_str, int flags)
...@@ -130,7 +130,7 @@ remoteOpen (virConnectPtr conn, const char *uri_str, int flags) ...@@ -130,7 +130,7 @@ remoteOpen (virConnectPtr conn, const char *uri_str, int flags)
return VIR_DRV_OPEN_DECLINED; /* Decline - not a remote URL. */ return VIR_DRV_OPEN_DECLINED; /* Decline - not a remote URL. */
/* What transport? */ /* What transport? */
enum transport transport; transport transport;
if (!transport_str || strcasecmp (transport_str, "tls") == 0) if (!transport_str || strcasecmp (transport_str, "tls") == 0)
transport = trans_tls; transport = trans_tls;
else if (strcasecmp (transport_str, "unix") == 0) else if (strcasecmp (transport_str, "unix") == 0)
...@@ -573,7 +573,7 @@ query_create (const struct query_fields *fields, ...@@ -573,7 +573,7 @@ query_create (const struct query_fields *fields,
static int static int
query_parse (const char *query_, query_parse (const char *query_,
const char *separator, const char *separator,
struct query_fields **fields_out) struct query_fields * *fields_out)
{ {
struct query_fields *fields, *field, **prev; struct query_fields *fields, *field, **prev;
int sep_len; int sep_len;
...@@ -2665,9 +2665,11 @@ static virNetworkDriver network_driver = { ...@@ -2665,9 +2665,11 @@ static virNetworkDriver network_driver = {
.networkSetAutostart = remoteNetworkSetAutostart, .networkSetAutostart = remoteNetworkSetAutostart,
}; };
/* remoteRegister: /** remoteRegister:
* *
* Register driver with libvirt driver system. * Register driver with libvirt driver system.
*
* Returns -1 on error.
*/ */
int int
remoteRegister (void) remoteRegister (void)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册