X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Funixctl.h;h=8eb190b0b01377ab1753a58c7eec35adff5b1eae;hb=fe13b0e71752a5eb30b21e7a09d2f9370bc02387;hp=89199bb6f9ff43de6c89e0ffd8341b1687f889d9;hpb=5f55c39b21e69025045437ffbd3bb98fe6ce2e89;p=openvswitch diff --git a/lib/unixctl.h b/lib/unixctl.h index 89199bb6..8eb190b0 100644 --- a/lib/unixctl.h +++ b/lib/unixctl.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009 Nicira Networks. + * Copyright (c) 2008, 2009, 2011 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ #ifndef UNIXCTL_H #define UNIXCTL_H 1 - + #ifdef __cplusplus extern "C" { #endif @@ -40,12 +40,13 @@ const char *unixctl_client_target(const struct unixctl_client *); /* Command registration. */ struct unixctl_conn; typedef void unixctl_cb_func(struct unixctl_conn *, - const char *args, void *aux); -void unixctl_command_register(const char *name, + int argc, const char *argv[], void *aux); +void unixctl_command_register(const char *name, const char *usage, + int min_args, int max_args, unixctl_cb_func *cb, void *aux); void unixctl_command_reply(struct unixctl_conn *, int code, const char *body); - + #ifdef __cplusplus } #endif