Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 1 | /* |
| 2 | *------------------------------------------------------------------ |
| 3 | * vl_msg_enum.h - Our view of how to number API messages |
| 4 | * Clients have their own view, which has to agree with ours. |
| 5 | * |
| 6 | * Copyright (c) 2009 Cisco and/or its affiliates. |
| 7 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | * you may not use this file except in compliance with the License. |
| 9 | * You may obtain a copy of the License at: |
| 10 | * |
| 11 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | * |
| 13 | * Unless required by applicable law or agreed to in writing, software |
| 14 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | * See the License for the specific language governing permissions and |
| 17 | * limitations under the License. |
| 18 | *------------------------------------------------------------------ |
| 19 | */ |
| 20 | |
| 21 | #ifndef __VL_MSG_ENUM_H__ |
| 22 | #define __VL_MSG_ENUM_H__ |
| 23 | |
| 24 | #include <vppinfra/byte_order.h> |
| 25 | |
| 26 | #define vl_msg_id(n,h) n, |
| 27 | typedef enum { |
| 28 | VL_ILLEGAL_MESSAGE_ID=0, |
| 29 | #include <vlibsocket/vl_socket_api_h.h> |
| 30 | } vl_msg_id_t; |
| 31 | #undef vl_msg_id |
| 32 | |
| 33 | #endif /* __VL_MSG_ENUM_H__ */ |