提交 e91be41e 编写于 作者: L Laine Stump

util: wrap virnetlink.c to 80 columns

上级 47d05109
...@@ -270,7 +270,7 @@ virNetlinkEventCallback(int watch, ...@@ -270,7 +270,7 @@ virNetlinkEventCallback(int watch,
* stop the monitor to receive netlink messages for libvirtd. * stop the monitor to receive netlink messages for libvirtd.
* This removes the netlink socket fd from the event handler. * This removes the netlink socket fd from the event handler.
* *
* returns -1 if the monitor cannot be unregistered, 0 upon success * Returns -1 if the monitor cannot be unregistered, 0 upon success
*/ */
int int
virNetlinkEventServiceStop(void) virNetlinkEventServiceStop(void)
...@@ -305,9 +305,9 @@ virNetlinkEventServiceStop(void) ...@@ -305,9 +305,9 @@ virNetlinkEventServiceStop(void)
/** /**
* virNetlinkEventServiceIsRunning: * virNetlinkEventServiceIsRunning:
* *
* returns if the netlink event service is running. * Returns if the netlink event service is running.
* *
* returns 'true' if the service is running, 'false' if stopped. * Returns 'true' if the service is running, 'false' if stopped.
*/ */
bool bool
virNetlinkEventServiceIsRunning(void) virNetlinkEventServiceIsRunning(void)
...@@ -321,7 +321,7 @@ virNetlinkEventServiceIsRunning(void) ...@@ -321,7 +321,7 @@ virNetlinkEventServiceIsRunning(void)
* start a monitor to receive netlink messages for libvirtd. * start a monitor to receive netlink messages for libvirtd.
* This registers a netlink socket with the event interface. * This registers a netlink socket with the event interface.
* *
* returns -1 if the monitor cannot be registered, 0 upon success * Returns -1 if the monitor cannot be registered, 0 upon success
*/ */
int int
virNetlinkEventServiceStart(void) virNetlinkEventServiceStart(void)
...@@ -410,13 +410,15 @@ error: ...@@ -410,13 +410,15 @@ error:
* @handleCB: callback to invoke when an event occurs * @handleCB: callback to invoke when an event occurs
* @removeCB: callback to invoke when removing a client * @removeCB: callback to invoke when removing a client
* @opaque: user data to pass to callback * @opaque: user data to pass to callback
* @macaddr: macaddr to store with the data. Used to identify callers. May be null. * @macaddr: macaddr to store with the data. Used to identify callers.
* May be null.
* *
* register a callback for handling of netlink messages. The * register a callback for handling of netlink messages. The
* registered function receives the entire netlink message and * registered function receives the entire netlink message and
* may choose to act upon it. * may choose to act upon it.
* *
* returns -1 if the file handle cannot be registered, number of monitor upon success * Returns -1 if the file handle cannot be registered, number of
* monitor upon success.
*/ */
int int
virNetlinkEventAddClient(virNetlinkEventHandleCallback handleCB, virNetlinkEventAddClient(virNetlinkEventHandleCallback handleCB,
...@@ -481,7 +483,7 @@ error: ...@@ -481,7 +483,7 @@ error:
* The handler function referenced will no longer receive netlink messages. * The handler function referenced will no longer receive netlink messages.
* Either watch or macaddr may be used, the other should be null. * Either watch or macaddr may be used, the other should be null.
* *
* returns -1 if the file handle was not registered, 0 upon success * Returns -1 if the file handle was not registered, 0 upon success
*/ */
int int
virNetlinkEventRemoveClient(int watch, const unsigned char *macaddr) virNetlinkEventRemoveClient(int watch, const unsigned char *macaddr)
...@@ -538,7 +540,8 @@ int virNetlinkCommand(struct nl_msg *nl_msg ATTRIBUTE_UNUSED, ...@@ -538,7 +540,8 @@ int virNetlinkCommand(struct nl_msg *nl_msg ATTRIBUTE_UNUSED,
} }
/** /**
* stopNetlinkEventServer: stop the monitor to receive netlink messages for libvirtd * stopNetlinkEventServer: stop the monitor to receive netlink
* messages for libvirtd
*/ */
int virNetlinkEventServiceStop(void) int virNetlinkEventServiceStop(void)
{ {
...@@ -551,7 +554,8 @@ int virNetlinkEventServiceStop(void) ...@@ -551,7 +554,8 @@ int virNetlinkEventServiceStop(void)
} }
/** /**
* startNetlinkEventServer: start a monitor to receive netlink messages for libvirtd * startNetlinkEventServer: start a monitor to receive netlink
* messages for libvirtd
*/ */
int virNetlinkEventServiceStart(void) int virNetlinkEventServiceStart(void)
{ {
...@@ -564,7 +568,8 @@ int virNetlinkEventServiceStart(void) ...@@ -564,7 +568,8 @@ int virNetlinkEventServiceStart(void)
} }
/** /**
* virNetlinkEventServiceIsRunning: returns if the netlink event service is running. * virNetlinkEventServiceIsRunning: returns if the netlink event
* service is running.
*/ */
int virNetlinkEventServiceIsRunning(void) int virNetlinkEventServiceIsRunning(void)
{ {
...@@ -577,7 +582,8 @@ int virNetlinkEventServiceIsRunning(void) ...@@ -577,7 +582,8 @@ int virNetlinkEventServiceIsRunning(void)
} }
/** /**
* virNetlinkEventAddClient: register a callback for handling of netlink messages * virNetlinkEventAddClient: register a callback for handling of
* netlink messages
*/ */
int virNetlinkEventAddClient(virNetlinkEventHandleCallback cb, int virNetlinkEventAddClient(virNetlinkEventHandleCallback cb,
virNetlinkEventRemoveCallback cb, virNetlinkEventRemoveCallback cb,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册