update copyright date to 2013
[dpdk.git] / lib / librte_cmdline / cmdline_parse_portlist.h
index 6f481ca..0699bd3 100644 (file)
@@ -1,7 +1,7 @@
 /*-
  *   BSD LICENSE
  * 
- *   Copyright(c) 2010-2012 Intel Corporation. All rights reserved.
+ *   Copyright(c) 2010-2013 Intel Corporation. All rights reserved.
  *   All rights reserved.
  * 
  *   Redistribution and use in source and binary forms, with or without 
@@ -30,7 +30,6 @@
  *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
  *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  * 
- *  version: DPDK.L.1.2.3-3
  */
 
 /*
@@ -75,13 +74,8 @@ typedef struct cmdline_portlist {
        uint32_t                map;
 } cmdline_portlist_t;
 
-struct cmdline_token_portlist_data {
-       uint8_t         flags;
-};
-
 struct cmdline_token_portlist {
        struct cmdline_token_hdr hdr;
-       struct cmdline_token_portlist_data range_data;
 };
 typedef struct cmdline_token_portlist cmdline_parse_token_portlist_t;
 
@@ -92,18 +86,13 @@ int cmdline_parse_portlist(cmdline_parse_token_hdr_t *tk,
 int cmdline_get_help_portlist(cmdline_parse_token_hdr_t *tk,
                         char *dstbuf, unsigned int size);
 
-/*
- * Warning! Not compatible with C++!
- */
-#define TOKEN_PORTLIST_INITIALIZER(structure, field)           \
-{                                                              \
-       .hdr = {                                                \
-               .ops = &cmdline_token_portlist_ops,             \
-               .offset = offsetof(structure, field),           \
-       },                                                      \
-       .range_data = {                                         \
-               .flags = 0,                                     \
-       },                                                      \
+#define TOKEN_PORTLIST_INITIALIZER(structure, field)        \
+{                                                           \
+       /* hdr */                                               \
+       {                                                       \
+               &cmdline_token_portlist_ops,    /* ops */           \
+               offsetof(structure, field),     /* offset */        \
+       },                                                      \
 }
 
 #ifdef __cplusplus