Shad Ansari | 2f7f9be | 2017-06-07 13:34:53 -0700 | [diff] [blame] | 1 | #ifndef BAL_MODEL_FUNCS |
| 2 | #define BAL_MODEL_FUNCS |
| 3 | |
| 4 | #include "bcmos_system.h" |
| 5 | #include "bcmos_errno.h" |
| 6 | #include "bal_buf.h" |
| 7 | #include "bal_model_ids.h" |
| 8 | #include "bal_model_types.h" |
| 9 | |
| 10 | /** Packs a bcmbal_access_terminal_cfg_id to bytes |
| 11 | * |
| 12 | * \param this The enumeration to pack |
| 13 | * \param buf Pointer to the buffer to write to |
| 14 | * \return Whether or not the pack was successful |
| 15 | */ |
| 16 | bcmos_bool bcmbal_access_terminal_cfg_id_pack(bcmbal_access_terminal_cfg_id this, bcmbal_buf *buf); |
| 17 | |
| 18 | /** Unpacks a bcmbal_access_terminal_cfg_id from bytes |
| 19 | * |
| 20 | * \param this Pointer to the enumeration to unpack |
| 21 | * \param buf Pointer to the buffer to write to |
| 22 | * \return Whether or not the unpack was successful |
| 23 | */ |
| 24 | bcmos_bool bcmbal_access_terminal_cfg_id_unpack(bcmbal_access_terminal_cfg_id *this, bcmbal_buf *buf); |
| 25 | |
| 26 | /** Packs a bcmbal_access_terminal_ind_id to bytes |
| 27 | * |
| 28 | * \param this The enumeration to pack |
| 29 | * \param buf Pointer to the buffer to write to |
| 30 | * \return Whether or not the pack was successful |
| 31 | */ |
| 32 | bcmos_bool bcmbal_access_terminal_ind_id_pack(bcmbal_access_terminal_ind_id this, bcmbal_buf *buf); |
| 33 | |
| 34 | /** Unpacks a bcmbal_access_terminal_ind_id from bytes |
| 35 | * |
| 36 | * \param this Pointer to the enumeration to unpack |
| 37 | * \param buf Pointer to the buffer to write to |
| 38 | * \return Whether or not the unpack was successful |
| 39 | */ |
| 40 | bcmos_bool bcmbal_access_terminal_ind_id_unpack(bcmbal_access_terminal_ind_id *this, bcmbal_buf *buf); |
| 41 | |
| 42 | /** Packs a bcmbal_access_terminal_key_id to bytes |
| 43 | * |
| 44 | * \param this The enumeration to pack |
| 45 | * \param buf Pointer to the buffer to write to |
| 46 | * \return Whether or not the pack was successful |
| 47 | */ |
| 48 | bcmos_bool bcmbal_access_terminal_key_id_pack(bcmbal_access_terminal_key_id this, bcmbal_buf *buf); |
| 49 | |
| 50 | /** Unpacks a bcmbal_access_terminal_key_id from bytes |
| 51 | * |
| 52 | * \param this Pointer to the enumeration to unpack |
| 53 | * \param buf Pointer to the buffer to write to |
| 54 | * \return Whether or not the unpack was successful |
| 55 | */ |
| 56 | bcmos_bool bcmbal_access_terminal_key_id_unpack(bcmbal_access_terminal_key_id *this, bcmbal_buf *buf); |
| 57 | |
| 58 | /** Packs a bcmbal_action_id to bytes |
| 59 | * |
| 60 | * \param this The enumeration to pack |
| 61 | * \param buf Pointer to the buffer to write to |
| 62 | * \return Whether or not the pack was successful |
| 63 | */ |
| 64 | bcmos_bool bcmbal_action_id_pack(bcmbal_action_id this, bcmbal_buf *buf); |
| 65 | |
| 66 | /** Unpacks a bcmbal_action_id from bytes |
| 67 | * |
| 68 | * \param this Pointer to the enumeration to unpack |
| 69 | * \param buf Pointer to the buffer to write to |
| 70 | * \return Whether or not the unpack was successful |
| 71 | */ |
| 72 | bcmos_bool bcmbal_action_id_unpack(bcmbal_action_id *this, bcmbal_buf *buf); |
| 73 | |
| 74 | /** Packs a bcmbal_action_cmd_id to bytes |
| 75 | * |
| 76 | * \param this The enumeration to pack |
| 77 | * \param buf Pointer to the buffer to write to |
| 78 | * \return Whether or not the pack was successful |
| 79 | */ |
| 80 | bcmos_bool bcmbal_action_cmd_id_pack(bcmbal_action_cmd_id this, bcmbal_buf *buf); |
| 81 | |
| 82 | /** Unpacks a bcmbal_action_cmd_id from bytes |
| 83 | * |
| 84 | * \param this Pointer to the enumeration to unpack |
| 85 | * \param buf Pointer to the buffer to write to |
| 86 | * \return Whether or not the unpack was successful |
| 87 | */ |
| 88 | bcmos_bool bcmbal_action_cmd_id_unpack(bcmbal_action_cmd_id *this, bcmbal_buf *buf); |
| 89 | |
| 90 | /** Packs a bcmbal_classifier_id to bytes |
| 91 | * |
| 92 | * \param this The enumeration to pack |
| 93 | * \param buf Pointer to the buffer to write to |
| 94 | * \return Whether or not the pack was successful |
| 95 | */ |
| 96 | bcmos_bool bcmbal_classifier_id_pack(bcmbal_classifier_id this, bcmbal_buf *buf); |
| 97 | |
| 98 | /** Unpacks a bcmbal_classifier_id from bytes |
| 99 | * |
| 100 | * \param this Pointer to the enumeration to unpack |
| 101 | * \param buf Pointer to the buffer to write to |
| 102 | * \return Whether or not the unpack was successful |
| 103 | */ |
| 104 | bcmos_bool bcmbal_classifier_id_unpack(bcmbal_classifier_id *this, bcmbal_buf *buf); |
| 105 | |
| 106 | /** Packs a bcmbal_pkt_tag_type to bytes |
| 107 | * |
| 108 | * \param this The enumeration to pack |
| 109 | * \param buf Pointer to the buffer to write to |
| 110 | * \return Whether or not the pack was successful |
| 111 | */ |
| 112 | bcmos_bool bcmbal_pkt_tag_type_pack(bcmbal_pkt_tag_type this, bcmbal_buf *buf); |
| 113 | |
| 114 | /** Unpacks a bcmbal_pkt_tag_type from bytes |
| 115 | * |
| 116 | * \param this Pointer to the enumeration to unpack |
| 117 | * \param buf Pointer to the buffer to write to |
| 118 | * \return Whether or not the unpack was successful |
| 119 | */ |
| 120 | bcmos_bool bcmbal_pkt_tag_type_unpack(bcmbal_pkt_tag_type *this, bcmbal_buf *buf); |
| 121 | |
| 122 | /** Packs a bcmbal_control to bytes |
| 123 | * |
| 124 | * \param this The enumeration to pack |
| 125 | * \param buf Pointer to the buffer to write to |
| 126 | * \return Whether or not the pack was successful |
| 127 | */ |
| 128 | bcmos_bool bcmbal_control_pack(bcmbal_control this, bcmbal_buf *buf); |
| 129 | |
| 130 | /** Unpacks a bcmbal_control from bytes |
| 131 | * |
| 132 | * \param this Pointer to the enumeration to unpack |
| 133 | * \param buf Pointer to the buffer to write to |
| 134 | * \return Whether or not the unpack was successful |
| 135 | */ |
| 136 | bcmos_bool bcmbal_control_unpack(bcmbal_control *this, bcmbal_buf *buf); |
| 137 | |
| 138 | /** Packs a bcmbal_dest_type to bytes |
| 139 | * |
| 140 | * \param this The enumeration to pack |
| 141 | * \param buf Pointer to the buffer to write to |
| 142 | * \return Whether or not the pack was successful |
| 143 | */ |
| 144 | bcmos_bool bcmbal_dest_type_pack(bcmbal_dest_type this, bcmbal_buf *buf); |
| 145 | |
| 146 | /** Unpacks a bcmbal_dest_type from bytes |
| 147 | * |
| 148 | * \param this Pointer to the enumeration to unpack |
| 149 | * \param buf Pointer to the buffer to write to |
| 150 | * \return Whether or not the unpack was successful |
| 151 | */ |
| 152 | bcmos_bool bcmbal_dest_type_unpack(bcmbal_dest_type *this, bcmbal_buf *buf); |
| 153 | |
| 154 | /** Packs a bcmbal_ds_miss_mode to bytes |
| 155 | * |
| 156 | * \param this The enumeration to pack |
| 157 | * \param buf Pointer to the buffer to write to |
| 158 | * \return Whether or not the pack was successful |
| 159 | */ |
| 160 | bcmos_bool bcmbal_ds_miss_mode_pack(bcmbal_ds_miss_mode this, bcmbal_buf *buf); |
| 161 | |
| 162 | /** Unpacks a bcmbal_ds_miss_mode from bytes |
| 163 | * |
| 164 | * \param this Pointer to the enumeration to unpack |
| 165 | * \param buf Pointer to the buffer to write to |
| 166 | * \return Whether or not the unpack was successful |
| 167 | */ |
| 168 | bcmos_bool bcmbal_ds_miss_mode_unpack(bcmbal_ds_miss_mode *this, bcmbal_buf *buf); |
| 169 | |
| 170 | /** Packs a bcmbal_extra_bw_eligibility_type to bytes |
| 171 | * |
| 172 | * \param this The enumeration to pack |
| 173 | * \param buf Pointer to the buffer to write to |
| 174 | * \return Whether or not the pack was successful |
| 175 | */ |
| 176 | bcmos_bool bcmbal_extra_bw_eligibility_type_pack(bcmbal_extra_bw_eligibility_type this, bcmbal_buf *buf); |
| 177 | |
| 178 | /** Unpacks a bcmbal_extra_bw_eligibility_type from bytes |
| 179 | * |
| 180 | * \param this Pointer to the enumeration to unpack |
| 181 | * \param buf Pointer to the buffer to write to |
| 182 | * \return Whether or not the unpack was successful |
| 183 | */ |
| 184 | bcmos_bool bcmbal_extra_bw_eligibility_type_unpack(bcmbal_extra_bw_eligibility_type *this, bcmbal_buf *buf); |
| 185 | |
| 186 | /** Packs a bcmbal_flow_cfg_id to bytes |
| 187 | * |
| 188 | * \param this The enumeration to pack |
| 189 | * \param buf Pointer to the buffer to write to |
| 190 | * \return Whether or not the pack was successful |
| 191 | */ |
| 192 | bcmos_bool bcmbal_flow_cfg_id_pack(bcmbal_flow_cfg_id this, bcmbal_buf *buf); |
| 193 | |
| 194 | /** Unpacks a bcmbal_flow_cfg_id from bytes |
| 195 | * |
| 196 | * \param this Pointer to the enumeration to unpack |
| 197 | * \param buf Pointer to the buffer to write to |
| 198 | * \return Whether or not the unpack was successful |
| 199 | */ |
| 200 | bcmos_bool bcmbal_flow_cfg_id_unpack(bcmbal_flow_cfg_id *this, bcmbal_buf *buf); |
| 201 | |
| 202 | /** Packs a bcmbal_flow_ind_id to bytes |
| 203 | * |
| 204 | * \param this The enumeration to pack |
| 205 | * \param buf Pointer to the buffer to write to |
| 206 | * \return Whether or not the pack was successful |
| 207 | */ |
| 208 | bcmos_bool bcmbal_flow_ind_id_pack(bcmbal_flow_ind_id this, bcmbal_buf *buf); |
| 209 | |
| 210 | /** Unpacks a bcmbal_flow_ind_id from bytes |
| 211 | * |
| 212 | * \param this Pointer to the enumeration to unpack |
| 213 | * \param buf Pointer to the buffer to write to |
| 214 | * \return Whether or not the unpack was successful |
| 215 | */ |
| 216 | bcmos_bool bcmbal_flow_ind_id_unpack(bcmbal_flow_ind_id *this, bcmbal_buf *buf); |
| 217 | |
| 218 | /** Packs a bcmbal_flow_key_id to bytes |
| 219 | * |
| 220 | * \param this The enumeration to pack |
| 221 | * \param buf Pointer to the buffer to write to |
| 222 | * \return Whether or not the pack was successful |
| 223 | */ |
| 224 | bcmos_bool bcmbal_flow_key_id_pack(bcmbal_flow_key_id this, bcmbal_buf *buf); |
| 225 | |
| 226 | /** Unpacks a bcmbal_flow_key_id from bytes |
| 227 | * |
| 228 | * \param this Pointer to the enumeration to unpack |
| 229 | * \param buf Pointer to the buffer to write to |
| 230 | * \return Whether or not the unpack was successful |
| 231 | */ |
| 232 | bcmos_bool bcmbal_flow_key_id_unpack(bcmbal_flow_key_id *this, bcmbal_buf *buf); |
| 233 | |
| 234 | /** Packs a bcmbal_flow_stat_id to bytes |
| 235 | * |
| 236 | * \param this The enumeration to pack |
| 237 | * \param buf Pointer to the buffer to write to |
| 238 | * \return Whether or not the pack was successful |
| 239 | */ |
| 240 | bcmos_bool bcmbal_flow_stat_id_pack(bcmbal_flow_stat_id this, bcmbal_buf *buf); |
| 241 | |
| 242 | /** Unpacks a bcmbal_flow_stat_id from bytes |
| 243 | * |
| 244 | * \param this Pointer to the enumeration to unpack |
| 245 | * \param buf Pointer to the buffer to write to |
| 246 | * \return Whether or not the unpack was successful |
| 247 | */ |
| 248 | bcmos_bool bcmbal_flow_stat_id_unpack(bcmbal_flow_stat_id *this, bcmbal_buf *buf); |
| 249 | |
| 250 | /** Packs a bcmbal_flow_type to bytes |
| 251 | * |
| 252 | * \param this The enumeration to pack |
| 253 | * \param buf Pointer to the buffer to write to |
| 254 | * \return Whether or not the pack was successful |
| 255 | */ |
| 256 | bcmos_bool bcmbal_flow_type_pack(bcmbal_flow_type this, bcmbal_buf *buf); |
| 257 | |
| 258 | /** Unpacks a bcmbal_flow_type from bytes |
| 259 | * |
| 260 | * \param this Pointer to the enumeration to unpack |
| 261 | * \param buf Pointer to the buffer to write to |
| 262 | * \return Whether or not the unpack was successful |
| 263 | */ |
| 264 | bcmos_bool bcmbal_flow_type_unpack(bcmbal_flow_type *this, bcmbal_buf *buf); |
| 265 | |
| 266 | /** Packs a bcmbal_group_cfg_id to bytes |
| 267 | * |
| 268 | * \param this The enumeration to pack |
| 269 | * \param buf Pointer to the buffer to write to |
| 270 | * \return Whether or not the pack was successful |
| 271 | */ |
| 272 | bcmos_bool bcmbal_group_cfg_id_pack(bcmbal_group_cfg_id this, bcmbal_buf *buf); |
| 273 | |
| 274 | /** Unpacks a bcmbal_group_cfg_id from bytes |
| 275 | * |
| 276 | * \param this Pointer to the enumeration to unpack |
| 277 | * \param buf Pointer to the buffer to write to |
| 278 | * \return Whether or not the unpack was successful |
| 279 | */ |
| 280 | bcmos_bool bcmbal_group_cfg_id_unpack(bcmbal_group_cfg_id *this, bcmbal_buf *buf); |
| 281 | |
| 282 | /** Packs a bcmbal_group_key_id to bytes |
| 283 | * |
| 284 | * \param this The enumeration to pack |
| 285 | * \param buf Pointer to the buffer to write to |
| 286 | * \return Whether or not the pack was successful |
| 287 | */ |
| 288 | bcmos_bool bcmbal_group_key_id_pack(bcmbal_group_key_id this, bcmbal_buf *buf); |
| 289 | |
| 290 | /** Unpacks a bcmbal_group_key_id from bytes |
| 291 | * |
| 292 | * \param this Pointer to the enumeration to unpack |
| 293 | * \param buf Pointer to the buffer to write to |
| 294 | * \return Whether or not the unpack was successful |
| 295 | */ |
| 296 | bcmos_bool bcmbal_group_key_id_unpack(bcmbal_group_key_id *this, bcmbal_buf *buf); |
| 297 | |
| 298 | /** Packs a bcmbal_group_member_cmd to bytes |
| 299 | * |
| 300 | * \param this The enumeration to pack |
| 301 | * \param buf Pointer to the buffer to write to |
| 302 | * \return Whether or not the pack was successful |
| 303 | */ |
| 304 | bcmos_bool bcmbal_group_member_cmd_pack(bcmbal_group_member_cmd this, bcmbal_buf *buf); |
| 305 | |
| 306 | /** Unpacks a bcmbal_group_member_cmd from bytes |
| 307 | * |
| 308 | * \param this Pointer to the enumeration to unpack |
| 309 | * \param buf Pointer to the buffer to write to |
| 310 | * \return Whether or not the unpack was successful |
| 311 | */ |
| 312 | bcmos_bool bcmbal_group_member_cmd_unpack(bcmbal_group_member_cmd *this, bcmbal_buf *buf); |
| 313 | |
| 314 | /** Packs a bcmbal_group_owner to bytes |
| 315 | * |
| 316 | * \param this The enumeration to pack |
| 317 | * \param buf Pointer to the buffer to write to |
| 318 | * \return Whether or not the pack was successful |
| 319 | */ |
| 320 | bcmos_bool bcmbal_group_owner_pack(bcmbal_group_owner this, bcmbal_buf *buf); |
| 321 | |
| 322 | /** Unpacks a bcmbal_group_owner from bytes |
| 323 | * |
| 324 | * \param this Pointer to the enumeration to unpack |
| 325 | * \param buf Pointer to the buffer to write to |
| 326 | * \return Whether or not the unpack was successful |
| 327 | */ |
| 328 | bcmos_bool bcmbal_group_owner_unpack(bcmbal_group_owner *this, bcmbal_buf *buf); |
| 329 | |
| 330 | /** Packs a bcmbal_interface_cfg_id to bytes |
| 331 | * |
| 332 | * \param this The enumeration to pack |
| 333 | * \param buf Pointer to the buffer to write to |
| 334 | * \return Whether or not the pack was successful |
| 335 | */ |
| 336 | bcmos_bool bcmbal_interface_cfg_id_pack(bcmbal_interface_cfg_id this, bcmbal_buf *buf); |
| 337 | |
| 338 | /** Unpacks a bcmbal_interface_cfg_id from bytes |
| 339 | * |
| 340 | * \param this Pointer to the enumeration to unpack |
| 341 | * \param buf Pointer to the buffer to write to |
| 342 | * \return Whether or not the unpack was successful |
| 343 | */ |
| 344 | bcmos_bool bcmbal_interface_cfg_id_unpack(bcmbal_interface_cfg_id *this, bcmbal_buf *buf); |
| 345 | |
| 346 | /** Packs a bcmbal_interface_ind_id to bytes |
| 347 | * |
| 348 | * \param this The enumeration to pack |
| 349 | * \param buf Pointer to the buffer to write to |
| 350 | * \return Whether or not the pack was successful |
| 351 | */ |
| 352 | bcmos_bool bcmbal_interface_ind_id_pack(bcmbal_interface_ind_id this, bcmbal_buf *buf); |
| 353 | |
| 354 | /** Unpacks a bcmbal_interface_ind_id from bytes |
| 355 | * |
| 356 | * \param this Pointer to the enumeration to unpack |
| 357 | * \param buf Pointer to the buffer to write to |
| 358 | * \return Whether or not the unpack was successful |
| 359 | */ |
| 360 | bcmos_bool bcmbal_interface_ind_id_unpack(bcmbal_interface_ind_id *this, bcmbal_buf *buf); |
| 361 | |
| 362 | /** Packs a bcmbal_interface_key_id to bytes |
| 363 | * |
| 364 | * \param this The enumeration to pack |
| 365 | * \param buf Pointer to the buffer to write to |
| 366 | * \return Whether or not the pack was successful |
| 367 | */ |
| 368 | bcmos_bool bcmbal_interface_key_id_pack(bcmbal_interface_key_id this, bcmbal_buf *buf); |
| 369 | |
| 370 | /** Unpacks a bcmbal_interface_key_id from bytes |
| 371 | * |
| 372 | * \param this Pointer to the enumeration to unpack |
| 373 | * \param buf Pointer to the buffer to write to |
| 374 | * \return Whether or not the unpack was successful |
| 375 | */ |
| 376 | bcmos_bool bcmbal_interface_key_id_unpack(bcmbal_interface_key_id *this, bcmbal_buf *buf); |
| 377 | |
| 378 | /** Packs a bcmbal_interface_stat_id to bytes |
| 379 | * |
| 380 | * \param this The enumeration to pack |
| 381 | * \param buf Pointer to the buffer to write to |
| 382 | * \return Whether or not the pack was successful |
| 383 | */ |
| 384 | bcmos_bool bcmbal_interface_stat_id_pack(bcmbal_interface_stat_id this, bcmbal_buf *buf); |
| 385 | |
| 386 | /** Unpacks a bcmbal_interface_stat_id from bytes |
| 387 | * |
| 388 | * \param this Pointer to the enumeration to unpack |
| 389 | * \param buf Pointer to the buffer to write to |
| 390 | * \return Whether or not the unpack was successful |
| 391 | */ |
| 392 | bcmos_bool bcmbal_interface_stat_id_unpack(bcmbal_interface_stat_id *this, bcmbal_buf *buf); |
| 393 | |
| 394 | /** Packs a bcmbal_intf_type to bytes |
| 395 | * |
| 396 | * \param this The enumeration to pack |
| 397 | * \param buf Pointer to the buffer to write to |
| 398 | * \return Whether or not the pack was successful |
| 399 | */ |
| 400 | bcmos_bool bcmbal_intf_type_pack(bcmbal_intf_type this, bcmbal_buf *buf); |
| 401 | |
| 402 | /** Unpacks a bcmbal_intf_type from bytes |
| 403 | * |
| 404 | * \param this Pointer to the enumeration to unpack |
| 405 | * \param buf Pointer to the buffer to write to |
| 406 | * \return Whether or not the unpack was successful |
| 407 | */ |
| 408 | bcmos_bool bcmbal_intf_type_unpack(bcmbal_intf_type *this, bcmbal_buf *buf); |
| 409 | |
| 410 | /** Packs a bcmbal_iwf_mode to bytes |
| 411 | * |
| 412 | * \param this The enumeration to pack |
| 413 | * \param buf Pointer to the buffer to write to |
| 414 | * \return Whether or not the pack was successful |
| 415 | */ |
| 416 | bcmos_bool bcmbal_iwf_mode_pack(bcmbal_iwf_mode this, bcmbal_buf *buf); |
| 417 | |
| 418 | /** Unpacks a bcmbal_iwf_mode from bytes |
| 419 | * |
| 420 | * \param this Pointer to the enumeration to unpack |
| 421 | * \param buf Pointer to the buffer to write to |
| 422 | * \return Whether or not the unpack was successful |
| 423 | */ |
| 424 | bcmos_bool bcmbal_iwf_mode_unpack(bcmbal_iwf_mode *this, bcmbal_buf *buf); |
| 425 | |
| 426 | /** Packs a bcmbal_packet_cfg_id to bytes |
| 427 | * |
| 428 | * \param this The enumeration to pack |
| 429 | * \param buf Pointer to the buffer to write to |
| 430 | * \return Whether or not the pack was successful |
| 431 | */ |
| 432 | bcmos_bool bcmbal_packet_cfg_id_pack(bcmbal_packet_cfg_id this, bcmbal_buf *buf); |
| 433 | |
| 434 | /** Unpacks a bcmbal_packet_cfg_id from bytes |
| 435 | * |
| 436 | * \param this Pointer to the enumeration to unpack |
| 437 | * \param buf Pointer to the buffer to write to |
| 438 | * \return Whether or not the unpack was successful |
| 439 | */ |
| 440 | bcmos_bool bcmbal_packet_cfg_id_unpack(bcmbal_packet_cfg_id *this, bcmbal_buf *buf); |
| 441 | |
| 442 | /** Packs a bcmbal_packet_ind_id to bytes |
| 443 | * |
| 444 | * \param this The enumeration to pack |
| 445 | * \param buf Pointer to the buffer to write to |
| 446 | * \return Whether or not the pack was successful |
| 447 | */ |
| 448 | bcmos_bool bcmbal_packet_ind_id_pack(bcmbal_packet_ind_id this, bcmbal_buf *buf); |
| 449 | |
| 450 | /** Unpacks a bcmbal_packet_ind_id from bytes |
| 451 | * |
| 452 | * \param this Pointer to the enumeration to unpack |
| 453 | * \param buf Pointer to the buffer to write to |
| 454 | * \return Whether or not the unpack was successful |
| 455 | */ |
| 456 | bcmos_bool bcmbal_packet_ind_id_unpack(bcmbal_packet_ind_id *this, bcmbal_buf *buf); |
| 457 | |
| 458 | /** Packs a bcmbal_packet_key_id to bytes |
| 459 | * |
| 460 | * \param this The enumeration to pack |
| 461 | * \param buf Pointer to the buffer to write to |
| 462 | * \return Whether or not the pack was successful |
| 463 | */ |
| 464 | bcmos_bool bcmbal_packet_key_id_pack(bcmbal_packet_key_id this, bcmbal_buf *buf); |
| 465 | |
| 466 | /** Unpacks a bcmbal_packet_key_id from bytes |
| 467 | * |
| 468 | * \param this Pointer to the enumeration to unpack |
| 469 | * \param buf Pointer to the buffer to write to |
| 470 | * \return Whether or not the unpack was successful |
| 471 | */ |
| 472 | bcmos_bool bcmbal_packet_key_id_unpack(bcmbal_packet_key_id *this, bcmbal_buf *buf); |
| 473 | |
| 474 | /** Packs a bcmbal_sla_id to bytes |
| 475 | * |
| 476 | * \param this The enumeration to pack |
| 477 | * \param buf Pointer to the buffer to write to |
| 478 | * \return Whether or not the pack was successful |
| 479 | */ |
| 480 | bcmos_bool bcmbal_sla_id_pack(bcmbal_sla_id this, bcmbal_buf *buf); |
| 481 | |
| 482 | /** Unpacks a bcmbal_sla_id from bytes |
| 483 | * |
| 484 | * \param this Pointer to the enumeration to unpack |
| 485 | * \param buf Pointer to the buffer to write to |
| 486 | * \return Whether or not the unpack was successful |
| 487 | */ |
| 488 | bcmos_bool bcmbal_sla_id_unpack(bcmbal_sla_id *this, bcmbal_buf *buf); |
| 489 | |
| 490 | /** Packs a bcmbal_state to bytes |
| 491 | * |
| 492 | * \param this The enumeration to pack |
| 493 | * \param buf Pointer to the buffer to write to |
| 494 | * \return Whether or not the pack was successful |
| 495 | */ |
| 496 | bcmos_bool bcmbal_state_pack(bcmbal_state this, bcmbal_buf *buf); |
| 497 | |
| 498 | /** Unpacks a bcmbal_state from bytes |
| 499 | * |
| 500 | * \param this Pointer to the enumeration to unpack |
| 501 | * \param buf Pointer to the buffer to write to |
| 502 | * \return Whether or not the unpack was successful |
| 503 | */ |
| 504 | bcmos_bool bcmbal_state_unpack(bcmbal_state *this, bcmbal_buf *buf); |
| 505 | |
| 506 | /** Packs a bcmbal_status to bytes |
| 507 | * |
| 508 | * \param this The enumeration to pack |
| 509 | * \param buf Pointer to the buffer to write to |
| 510 | * \return Whether or not the pack was successful |
| 511 | */ |
| 512 | bcmos_bool bcmbal_status_pack(bcmbal_status this, bcmbal_buf *buf); |
| 513 | |
| 514 | /** Unpacks a bcmbal_status from bytes |
| 515 | * |
| 516 | * \param this Pointer to the enumeration to unpack |
| 517 | * \param buf Pointer to the buffer to write to |
| 518 | * \return Whether or not the unpack was successful |
| 519 | */ |
| 520 | bcmos_bool bcmbal_status_unpack(bcmbal_status *this, bcmbal_buf *buf); |
| 521 | |
| 522 | /** Packs a bcmbal_subscriber_terminal_cfg_id to bytes |
| 523 | * |
| 524 | * \param this The enumeration to pack |
| 525 | * \param buf Pointer to the buffer to write to |
| 526 | * \return Whether or not the pack was successful |
| 527 | */ |
| 528 | bcmos_bool bcmbal_subscriber_terminal_cfg_id_pack(bcmbal_subscriber_terminal_cfg_id this, bcmbal_buf *buf); |
| 529 | |
| 530 | /** Unpacks a bcmbal_subscriber_terminal_cfg_id from bytes |
| 531 | * |
| 532 | * \param this Pointer to the enumeration to unpack |
| 533 | * \param buf Pointer to the buffer to write to |
| 534 | * \return Whether or not the unpack was successful |
| 535 | */ |
| 536 | bcmos_bool bcmbal_subscriber_terminal_cfg_id_unpack(bcmbal_subscriber_terminal_cfg_id *this, bcmbal_buf *buf); |
| 537 | |
| 538 | /** Packs a bcmbal_subscriber_terminal_ind_id to bytes |
| 539 | * |
| 540 | * \param this The enumeration to pack |
| 541 | * \param buf Pointer to the buffer to write to |
| 542 | * \return Whether or not the pack was successful |
| 543 | */ |
| 544 | bcmos_bool bcmbal_subscriber_terminal_ind_id_pack(bcmbal_subscriber_terminal_ind_id this, bcmbal_buf *buf); |
| 545 | |
| 546 | /** Unpacks a bcmbal_subscriber_terminal_ind_id from bytes |
| 547 | * |
| 548 | * \param this Pointer to the enumeration to unpack |
| 549 | * \param buf Pointer to the buffer to write to |
| 550 | * \return Whether or not the unpack was successful |
| 551 | */ |
| 552 | bcmos_bool bcmbal_subscriber_terminal_ind_id_unpack(bcmbal_subscriber_terminal_ind_id *this, bcmbal_buf *buf); |
| 553 | |
| 554 | /** Packs a bcmbal_subscriber_terminal_key_id to bytes |
| 555 | * |
| 556 | * \param this The enumeration to pack |
| 557 | * \param buf Pointer to the buffer to write to |
| 558 | * \return Whether or not the pack was successful |
| 559 | */ |
| 560 | bcmos_bool bcmbal_subscriber_terminal_key_id_pack(bcmbal_subscriber_terminal_key_id this, bcmbal_buf *buf); |
| 561 | |
| 562 | /** Unpacks a bcmbal_subscriber_terminal_key_id from bytes |
| 563 | * |
| 564 | * \param this Pointer to the enumeration to unpack |
| 565 | * \param buf Pointer to the buffer to write to |
| 566 | * \return Whether or not the unpack was successful |
| 567 | */ |
| 568 | bcmos_bool bcmbal_subscriber_terminal_key_id_unpack(bcmbal_subscriber_terminal_key_id *this, bcmbal_buf *buf); |
| 569 | |
| 570 | /** Packs a bcmbal_subscriber_terminal_stat_id to bytes |
| 571 | * |
| 572 | * \param this The enumeration to pack |
| 573 | * \param buf Pointer to the buffer to write to |
| 574 | * \return Whether or not the pack was successful |
| 575 | */ |
| 576 | bcmos_bool bcmbal_subscriber_terminal_stat_id_pack(bcmbal_subscriber_terminal_stat_id this, bcmbal_buf *buf); |
| 577 | |
| 578 | /** Unpacks a bcmbal_subscriber_terminal_stat_id from bytes |
| 579 | * |
| 580 | * \param this Pointer to the enumeration to unpack |
| 581 | * \param buf Pointer to the buffer to write to |
| 582 | * \return Whether or not the unpack was successful |
| 583 | */ |
| 584 | bcmos_bool bcmbal_subscriber_terminal_stat_id_unpack(bcmbal_subscriber_terminal_stat_id *this, bcmbal_buf *buf); |
| 585 | |
| 586 | /** Packs a bcmbal_tm_bac_type to bytes |
| 587 | * |
| 588 | * \param this The enumeration to pack |
| 589 | * \param buf Pointer to the buffer to write to |
| 590 | * \return Whether or not the pack was successful |
| 591 | */ |
| 592 | bcmos_bool bcmbal_tm_bac_type_pack(bcmbal_tm_bac_type this, bcmbal_buf *buf); |
| 593 | |
| 594 | /** Unpacks a bcmbal_tm_bac_type from bytes |
| 595 | * |
| 596 | * \param this Pointer to the enumeration to unpack |
| 597 | * \param buf Pointer to the buffer to write to |
| 598 | * \return Whether or not the unpack was successful |
| 599 | */ |
| 600 | bcmos_bool bcmbal_tm_bac_type_unpack(bcmbal_tm_bac_type *this, bcmbal_buf *buf); |
| 601 | |
| 602 | /** Packs a bcmbal_tm_creation_mode to bytes |
| 603 | * |
| 604 | * \param this The enumeration to pack |
| 605 | * \param buf Pointer to the buffer to write to |
| 606 | * \return Whether or not the pack was successful |
| 607 | */ |
| 608 | bcmos_bool bcmbal_tm_creation_mode_pack(bcmbal_tm_creation_mode this, bcmbal_buf *buf); |
| 609 | |
| 610 | /** Unpacks a bcmbal_tm_creation_mode from bytes |
| 611 | * |
| 612 | * \param this Pointer to the enumeration to unpack |
| 613 | * \param buf Pointer to the buffer to write to |
| 614 | * \return Whether or not the unpack was successful |
| 615 | */ |
| 616 | bcmos_bool bcmbal_tm_creation_mode_unpack(bcmbal_tm_creation_mode *this, bcmbal_buf *buf); |
| 617 | |
| 618 | /** Packs a bcmbal_tm_queue_cfg_id to bytes |
| 619 | * |
| 620 | * \param this The enumeration to pack |
| 621 | * \param buf Pointer to the buffer to write to |
| 622 | * \return Whether or not the pack was successful |
| 623 | */ |
| 624 | bcmos_bool bcmbal_tm_queue_cfg_id_pack(bcmbal_tm_queue_cfg_id this, bcmbal_buf *buf); |
| 625 | |
| 626 | /** Unpacks a bcmbal_tm_queue_cfg_id from bytes |
| 627 | * |
| 628 | * \param this Pointer to the enumeration to unpack |
| 629 | * \param buf Pointer to the buffer to write to |
| 630 | * \return Whether or not the unpack was successful |
| 631 | */ |
| 632 | bcmos_bool bcmbal_tm_queue_cfg_id_unpack(bcmbal_tm_queue_cfg_id *this, bcmbal_buf *buf); |
| 633 | |
| 634 | /** Packs a bcmbal_tm_queue_ind_id to bytes |
| 635 | * |
| 636 | * \param this The enumeration to pack |
| 637 | * \param buf Pointer to the buffer to write to |
| 638 | * \return Whether or not the pack was successful |
| 639 | */ |
| 640 | bcmos_bool bcmbal_tm_queue_ind_id_pack(bcmbal_tm_queue_ind_id this, bcmbal_buf *buf); |
| 641 | |
| 642 | /** Unpacks a bcmbal_tm_queue_ind_id from bytes |
| 643 | * |
| 644 | * \param this Pointer to the enumeration to unpack |
| 645 | * \param buf Pointer to the buffer to write to |
| 646 | * \return Whether or not the unpack was successful |
| 647 | */ |
| 648 | bcmos_bool bcmbal_tm_queue_ind_id_unpack(bcmbal_tm_queue_ind_id *this, bcmbal_buf *buf); |
| 649 | |
| 650 | /** Packs a bcmbal_tm_queue_key_id to bytes |
| 651 | * |
| 652 | * \param this The enumeration to pack |
| 653 | * \param buf Pointer to the buffer to write to |
| 654 | * \return Whether or not the pack was successful |
| 655 | */ |
| 656 | bcmos_bool bcmbal_tm_queue_key_id_pack(bcmbal_tm_queue_key_id this, bcmbal_buf *buf); |
| 657 | |
| 658 | /** Unpacks a bcmbal_tm_queue_key_id from bytes |
| 659 | * |
| 660 | * \param this Pointer to the enumeration to unpack |
| 661 | * \param buf Pointer to the buffer to write to |
| 662 | * \return Whether or not the unpack was successful |
| 663 | */ |
| 664 | bcmos_bool bcmbal_tm_queue_key_id_unpack(bcmbal_tm_queue_key_id *this, bcmbal_buf *buf); |
| 665 | |
| 666 | /** Packs a bcmbal_tm_queue_stat_id to bytes |
| 667 | * |
| 668 | * \param this The enumeration to pack |
| 669 | * \param buf Pointer to the buffer to write to |
| 670 | * \return Whether or not the pack was successful |
| 671 | */ |
| 672 | bcmos_bool bcmbal_tm_queue_stat_id_pack(bcmbal_tm_queue_stat_id this, bcmbal_buf *buf); |
| 673 | |
| 674 | /** Unpacks a bcmbal_tm_queue_stat_id from bytes |
| 675 | * |
| 676 | * \param this Pointer to the enumeration to unpack |
| 677 | * \param buf Pointer to the buffer to write to |
| 678 | * \return Whether or not the unpack was successful |
| 679 | */ |
| 680 | bcmos_bool bcmbal_tm_queue_stat_id_unpack(bcmbal_tm_queue_stat_id *this, bcmbal_buf *buf); |
| 681 | |
| 682 | /** Packs a bcmbal_tm_sched_cfg_id to bytes |
| 683 | * |
| 684 | * \param this The enumeration to pack |
| 685 | * \param buf Pointer to the buffer to write to |
| 686 | * \return Whether or not the pack was successful |
| 687 | */ |
| 688 | bcmos_bool bcmbal_tm_sched_cfg_id_pack(bcmbal_tm_sched_cfg_id this, bcmbal_buf *buf); |
| 689 | |
| 690 | /** Unpacks a bcmbal_tm_sched_cfg_id from bytes |
| 691 | * |
| 692 | * \param this Pointer to the enumeration to unpack |
| 693 | * \param buf Pointer to the buffer to write to |
| 694 | * \return Whether or not the unpack was successful |
| 695 | */ |
| 696 | bcmos_bool bcmbal_tm_sched_cfg_id_unpack(bcmbal_tm_sched_cfg_id *this, bcmbal_buf *buf); |
| 697 | |
| 698 | /** Packs a bcmbal_tm_sched_child_type to bytes |
| 699 | * |
| 700 | * \param this The enumeration to pack |
| 701 | * \param buf Pointer to the buffer to write to |
| 702 | * \return Whether or not the pack was successful |
| 703 | */ |
| 704 | bcmos_bool bcmbal_tm_sched_child_type_pack(bcmbal_tm_sched_child_type this, bcmbal_buf *buf); |
| 705 | |
| 706 | /** Unpacks a bcmbal_tm_sched_child_type from bytes |
| 707 | * |
| 708 | * \param this Pointer to the enumeration to unpack |
| 709 | * \param buf Pointer to the buffer to write to |
| 710 | * \return Whether or not the unpack was successful |
| 711 | */ |
| 712 | bcmos_bool bcmbal_tm_sched_child_type_unpack(bcmbal_tm_sched_child_type *this, bcmbal_buf *buf); |
| 713 | |
| 714 | /** Packs a bcmbal_tm_sched_dir to bytes |
| 715 | * |
| 716 | * \param this The enumeration to pack |
| 717 | * \param buf Pointer to the buffer to write to |
| 718 | * \return Whether or not the pack was successful |
| 719 | */ |
| 720 | bcmos_bool bcmbal_tm_sched_dir_pack(bcmbal_tm_sched_dir this, bcmbal_buf *buf); |
| 721 | |
| 722 | /** Unpacks a bcmbal_tm_sched_dir from bytes |
| 723 | * |
| 724 | * \param this Pointer to the enumeration to unpack |
| 725 | * \param buf Pointer to the buffer to write to |
| 726 | * \return Whether or not the unpack was successful |
| 727 | */ |
| 728 | bcmos_bool bcmbal_tm_sched_dir_unpack(bcmbal_tm_sched_dir *this, bcmbal_buf *buf); |
| 729 | |
| 730 | /** Packs a bcmbal_tm_sched_ind_id to bytes |
| 731 | * |
| 732 | * \param this The enumeration to pack |
| 733 | * \param buf Pointer to the buffer to write to |
| 734 | * \return Whether or not the pack was successful |
| 735 | */ |
| 736 | bcmos_bool bcmbal_tm_sched_ind_id_pack(bcmbal_tm_sched_ind_id this, bcmbal_buf *buf); |
| 737 | |
| 738 | /** Unpacks a bcmbal_tm_sched_ind_id from bytes |
| 739 | * |
| 740 | * \param this Pointer to the enumeration to unpack |
| 741 | * \param buf Pointer to the buffer to write to |
| 742 | * \return Whether or not the unpack was successful |
| 743 | */ |
| 744 | bcmos_bool bcmbal_tm_sched_ind_id_unpack(bcmbal_tm_sched_ind_id *this, bcmbal_buf *buf); |
| 745 | |
| 746 | /** Packs a bcmbal_tm_sched_key_id to bytes |
| 747 | * |
| 748 | * \param this The enumeration to pack |
| 749 | * \param buf Pointer to the buffer to write to |
| 750 | * \return Whether or not the pack was successful |
| 751 | */ |
| 752 | bcmos_bool bcmbal_tm_sched_key_id_pack(bcmbal_tm_sched_key_id this, bcmbal_buf *buf); |
| 753 | |
| 754 | /** Unpacks a bcmbal_tm_sched_key_id from bytes |
| 755 | * |
| 756 | * \param this Pointer to the enumeration to unpack |
| 757 | * \param buf Pointer to the buffer to write to |
| 758 | * \return Whether or not the unpack was successful |
| 759 | */ |
| 760 | bcmos_bool bcmbal_tm_sched_key_id_unpack(bcmbal_tm_sched_key_id *this, bcmbal_buf *buf); |
| 761 | |
| 762 | /** Packs a bcmbal_tm_sched_owner_type to bytes |
| 763 | * |
| 764 | * \param this The enumeration to pack |
| 765 | * \param buf Pointer to the buffer to write to |
| 766 | * \return Whether or not the pack was successful |
| 767 | */ |
| 768 | bcmos_bool bcmbal_tm_sched_owner_type_pack(bcmbal_tm_sched_owner_type this, bcmbal_buf *buf); |
| 769 | |
| 770 | /** Unpacks a bcmbal_tm_sched_owner_type from bytes |
| 771 | * |
| 772 | * \param this Pointer to the enumeration to unpack |
| 773 | * \param buf Pointer to the buffer to write to |
| 774 | * \return Whether or not the unpack was successful |
| 775 | */ |
| 776 | bcmos_bool bcmbal_tm_sched_owner_type_unpack(bcmbal_tm_sched_owner_type *this, bcmbal_buf *buf); |
| 777 | |
| 778 | /** Packs a bcmbal_tm_sched_owner_agg_port_id to bytes |
| 779 | * |
| 780 | * \param this The enumeration to pack |
| 781 | * \param buf Pointer to the buffer to write to |
| 782 | * \return Whether or not the pack was successful |
| 783 | */ |
| 784 | bcmos_bool bcmbal_tm_sched_owner_agg_port_id_pack(bcmbal_tm_sched_owner_agg_port_id this, bcmbal_buf *buf); |
| 785 | |
| 786 | /** Unpacks a bcmbal_tm_sched_owner_agg_port_id from bytes |
| 787 | * |
| 788 | * \param this Pointer to the enumeration to unpack |
| 789 | * \param buf Pointer to the buffer to write to |
| 790 | * \return Whether or not the unpack was successful |
| 791 | */ |
| 792 | bcmos_bool bcmbal_tm_sched_owner_agg_port_id_unpack(bcmbal_tm_sched_owner_agg_port_id *this, bcmbal_buf *buf); |
| 793 | |
| 794 | /** Packs a bcmbal_tm_sched_parent_id to bytes |
| 795 | * |
| 796 | * \param this The enumeration to pack |
| 797 | * \param buf Pointer to the buffer to write to |
| 798 | * \return Whether or not the pack was successful |
| 799 | */ |
| 800 | bcmos_bool bcmbal_tm_sched_parent_id_pack(bcmbal_tm_sched_parent_id this, bcmbal_buf *buf); |
| 801 | |
| 802 | /** Unpacks a bcmbal_tm_sched_parent_id from bytes |
| 803 | * |
| 804 | * \param this Pointer to the enumeration to unpack |
| 805 | * \param buf Pointer to the buffer to write to |
| 806 | * \return Whether or not the unpack was successful |
| 807 | */ |
| 808 | bcmos_bool bcmbal_tm_sched_parent_id_unpack(bcmbal_tm_sched_parent_id *this, bcmbal_buf *buf); |
| 809 | |
| 810 | /** Packs a bcmbal_tm_sched_type to bytes |
| 811 | * |
| 812 | * \param this The enumeration to pack |
| 813 | * \param buf Pointer to the buffer to write to |
| 814 | * \return Whether or not the pack was successful |
| 815 | */ |
| 816 | bcmos_bool bcmbal_tm_sched_type_pack(bcmbal_tm_sched_type this, bcmbal_buf *buf); |
| 817 | |
| 818 | /** Unpacks a bcmbal_tm_sched_type from bytes |
| 819 | * |
| 820 | * \param this Pointer to the enumeration to unpack |
| 821 | * \param buf Pointer to the buffer to write to |
| 822 | * \return Whether or not the unpack was successful |
| 823 | */ |
| 824 | bcmos_bool bcmbal_tm_sched_type_unpack(bcmbal_tm_sched_type *this, bcmbal_buf *buf); |
| 825 | |
| 826 | /** Packs a bcmbal_tm_shaping_id to bytes |
| 827 | * |
| 828 | * \param this The enumeration to pack |
| 829 | * \param buf Pointer to the buffer to write to |
| 830 | * \return Whether or not the pack was successful |
| 831 | */ |
| 832 | bcmos_bool bcmbal_tm_shaping_id_pack(bcmbal_tm_shaping_id this, bcmbal_buf *buf); |
| 833 | |
| 834 | /** Unpacks a bcmbal_tm_shaping_id from bytes |
| 835 | * |
| 836 | * \param this Pointer to the enumeration to unpack |
| 837 | * \param buf Pointer to the buffer to write to |
| 838 | * \return Whether or not the unpack was successful |
| 839 | */ |
| 840 | bcmos_bool bcmbal_tm_shaping_id_unpack(bcmbal_tm_shaping_id *this, bcmbal_buf *buf); |
| 841 | |
| 842 | /** Packs a bcmbal_tm_tcont_sla_id to bytes |
| 843 | * |
| 844 | * \param this The enumeration to pack |
| 845 | * \param buf Pointer to the buffer to write to |
| 846 | * \return Whether or not the pack was successful |
| 847 | */ |
| 848 | bcmos_bool bcmbal_tm_tcont_sla_id_pack(bcmbal_tm_tcont_sla_id this, bcmbal_buf *buf); |
| 849 | |
| 850 | /** Unpacks a bcmbal_tm_tcont_sla_id from bytes |
| 851 | * |
| 852 | * \param this Pointer to the enumeration to unpack |
| 853 | * \param buf Pointer to the buffer to write to |
| 854 | * \return Whether or not the unpack was successful |
| 855 | */ |
| 856 | bcmos_bool bcmbal_tm_tcont_sla_id_unpack(bcmbal_tm_tcont_sla_id *this, bcmbal_buf *buf); |
| 857 | |
| 858 | /** Packs a bcmbal_trx_type to bytes |
| 859 | * |
| 860 | * \param this The enumeration to pack |
| 861 | * \param buf Pointer to the buffer to write to |
| 862 | * \return Whether or not the pack was successful |
| 863 | */ |
| 864 | bcmos_bool bcmbal_trx_type_pack(bcmbal_trx_type this, bcmbal_buf *buf); |
| 865 | |
| 866 | /** Unpacks a bcmbal_trx_type from bytes |
| 867 | * |
| 868 | * \param this Pointer to the enumeration to unpack |
| 869 | * \param buf Pointer to the buffer to write to |
| 870 | * \return Whether or not the unpack was successful |
| 871 | */ |
| 872 | bcmos_bool bcmbal_trx_type_unpack(bcmbal_trx_type *this, bcmbal_buf *buf); |
| 873 | |
| 874 | /** Initializes a bcmbal_action struct. This sets all fields to default values. |
| 875 | * |
| 876 | * \param this Pointer to the structure |
| 877 | */ |
| 878 | void bcmbal_action_set_default(bcmbal_action *this); |
| 879 | |
| 880 | /** Packs a bcmbal_action to bytes |
| 881 | * |
| 882 | * \param this Pointer to the object to pack |
| 883 | * \param buf Pointer to the buffer to write to |
| 884 | * \return TRUE if the pack was successful, FALSE otherwise |
| 885 | */ |
| 886 | bcmos_bool bcmbal_action_pack(const bcmbal_action *this, bcmbal_buf *buf); |
| 887 | |
| 888 | /** Gets the number of bytes that a bcmbal_action would occupy on the wire |
| 889 | * |
| 890 | * \return The structure size in bytes |
| 891 | */ |
| 892 | uint32_t bcmbal_action_get_packed_length(const bcmbal_action *this); |
| 893 | |
| 894 | /** Unpacks a bcmbal_action from bytes |
| 895 | * |
| 896 | * \param this Pointer to the object to unpack |
| 897 | * \param buf Pointer to the buffer to read from |
| 898 | * \param extra_mem Pointer to the first location in memory to use to store |
| 899 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 900 | * a NULL pointer is encountered. |
| 901 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 902 | */ |
| 903 | bcmos_bool bcmbal_action_unpack(bcmbal_action *this, bcmbal_buf *buf, void **extra_mem); |
| 904 | |
| 905 | /** Scans past a packed bcmbal_action struct and collects memory requirements |
| 906 | * above and beyond sizeof() |
| 907 | * |
| 908 | * \param packed A stream pointing to the packed byte stream |
| 909 | * \param extra_mem Number of additional storage bytes required |
| 910 | * \return TRUE on success, FALSE on failure |
| 911 | */ |
| 912 | bcmos_bool bcmbal_action_scan(bcmbal_buf *packed, uint32_t *extra_mem); |
| 913 | |
| 914 | /** Checks if any field in the bcmbal_action is out of bounds |
| 915 | * |
| 916 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 917 | */ |
| 918 | bcmos_bool bcmbal_action_bounds_check(const bcmbal_action *this); |
| 919 | |
| 920 | /** Initializes a bcmbal_aggregation_port_id_list_u8 struct. This sets all |
| 921 | * fields to default values. |
| 922 | * |
| 923 | * \param this Pointer to the structure |
| 924 | */ |
| 925 | void bcmbal_aggregation_port_id_list_u8_set_default(bcmbal_aggregation_port_id_list_u8 *this); |
| 926 | |
| 927 | /** Packs a bcmbal_aggregation_port_id_list_u8 to bytes |
| 928 | * |
| 929 | * \param this Pointer to the object to pack |
| 930 | * \param buf Pointer to the buffer to write to |
| 931 | * \return TRUE if the pack was successful, FALSE otherwise |
| 932 | */ |
| 933 | bcmos_bool bcmbal_aggregation_port_id_list_u8_pack(const bcmbal_aggregation_port_id_list_u8 *this, bcmbal_buf *buf); |
| 934 | |
| 935 | /** Gets the number of bytes that a bcmbal_aggregation_port_id_list_u8 would |
| 936 | * occupy on the wire |
| 937 | * |
| 938 | * \return The structure size in bytes |
| 939 | */ |
| 940 | uint32_t bcmbal_aggregation_port_id_list_u8_get_packed_length(const bcmbal_aggregation_port_id_list_u8 *this); |
| 941 | |
| 942 | /** Unpacks a bcmbal_aggregation_port_id_list_u8 from bytes |
| 943 | * |
| 944 | * \param this Pointer to the object to unpack |
| 945 | * \param buf Pointer to the buffer to read from |
| 946 | * \param extra_mem Pointer to the first location in memory to use to store |
| 947 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 948 | * a NULL pointer is encountered. |
| 949 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 950 | */ |
| 951 | bcmos_bool bcmbal_aggregation_port_id_list_u8_unpack(bcmbal_aggregation_port_id_list_u8 *this, bcmbal_buf *buf, void **extra_mem); |
| 952 | |
| 953 | /** Scans past a packed bcmbal_aggregation_port_id_list_u8 struct and collects |
| 954 | * memory requirements above and beyond sizeof() |
| 955 | * |
| 956 | * \param packed A stream pointing to the packed byte stream |
| 957 | * \param extra_mem Number of additional storage bytes required |
| 958 | * \return TRUE on success, FALSE on failure |
| 959 | */ |
| 960 | bcmos_bool bcmbal_aggregation_port_id_list_u8_scan(bcmbal_buf *packed, uint32_t *extra_mem); |
| 961 | |
| 962 | /** Checks if any field in the bcmbal_aggregation_port_id_list_u8 is out of |
| 963 | * bounds |
| 964 | * |
| 965 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 966 | */ |
| 967 | bcmos_bool bcmbal_aggregation_port_id_list_u8_bounds_check(const bcmbal_aggregation_port_id_list_u8 *this); |
| 968 | |
| 969 | /** Initializes a bcmbal_classifier struct. This sets all fields to default |
| 970 | * values. |
| 971 | * |
| 972 | * \param this Pointer to the structure |
| 973 | */ |
| 974 | void bcmbal_classifier_set_default(bcmbal_classifier *this); |
| 975 | |
| 976 | /** Packs a bcmbal_classifier to bytes |
| 977 | * |
| 978 | * \param this Pointer to the object to pack |
| 979 | * \param buf Pointer to the buffer to write to |
| 980 | * \return TRUE if the pack was successful, FALSE otherwise |
| 981 | */ |
| 982 | bcmos_bool bcmbal_classifier_pack(const bcmbal_classifier *this, bcmbal_buf *buf); |
| 983 | |
| 984 | /** Gets the number of bytes that a bcmbal_classifier would occupy on the wire |
| 985 | * |
| 986 | * \return The structure size in bytes |
| 987 | */ |
| 988 | uint32_t bcmbal_classifier_get_packed_length(const bcmbal_classifier *this); |
| 989 | |
| 990 | /** Unpacks a bcmbal_classifier from bytes |
| 991 | * |
| 992 | * \param this Pointer to the object to unpack |
| 993 | * \param buf Pointer to the buffer to read from |
| 994 | * \param extra_mem Pointer to the first location in memory to use to store |
| 995 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 996 | * a NULL pointer is encountered. |
| 997 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 998 | */ |
| 999 | bcmos_bool bcmbal_classifier_unpack(bcmbal_classifier *this, bcmbal_buf *buf, void **extra_mem); |
| 1000 | |
| 1001 | /** Scans past a packed bcmbal_classifier struct and collects memory |
| 1002 | * requirements above and beyond sizeof() |
| 1003 | * |
| 1004 | * \param packed A stream pointing to the packed byte stream |
| 1005 | * \param extra_mem Number of additional storage bytes required |
| 1006 | * \return TRUE on success, FALSE on failure |
| 1007 | */ |
| 1008 | bcmos_bool bcmbal_classifier_scan(bcmbal_buf *packed, uint32_t *extra_mem); |
| 1009 | |
| 1010 | /** Checks if any field in the bcmbal_classifier is out of bounds |
| 1011 | * |
| 1012 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 1013 | */ |
| 1014 | bcmos_bool bcmbal_classifier_bounds_check(const bcmbal_classifier *this); |
| 1015 | |
| 1016 | /** Initializes a bcmbal_dest struct. This sets all fields to default values. |
| 1017 | * |
| 1018 | * \param this Pointer to the structure |
| 1019 | */ |
| 1020 | void bcmbal_dest_set_default(bcmbal_dest *this); |
| 1021 | |
| 1022 | /** Packs a bcmbal_dest to bytes |
| 1023 | * |
| 1024 | * \param this Pointer to the object to pack |
| 1025 | * \param buf Pointer to the buffer to write to |
| 1026 | * \return TRUE if the pack was successful, FALSE otherwise |
| 1027 | */ |
| 1028 | bcmos_bool bcmbal_dest_pack(const bcmbal_dest *this, bcmbal_buf *buf); |
| 1029 | |
| 1030 | /** Gets the number of bytes that a bcmbal_dest would occupy on the wire |
| 1031 | * |
| 1032 | * \return The structure size in bytes |
| 1033 | */ |
| 1034 | uint32_t bcmbal_dest_get_packed_length(const bcmbal_dest *this); |
| 1035 | |
| 1036 | /** Unpacks a bcmbal_dest from bytes |
| 1037 | * |
| 1038 | * \param this Pointer to the object to unpack |
| 1039 | * \param buf Pointer to the buffer to read from |
| 1040 | * \param extra_mem Pointer to the first location in memory to use to store |
| 1041 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 1042 | * a NULL pointer is encountered. |
| 1043 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 1044 | */ |
| 1045 | bcmos_bool bcmbal_dest_unpack(bcmbal_dest *this, bcmbal_buf *buf, void **extra_mem); |
| 1046 | |
| 1047 | /** Scans past a packed bcmbal_dest struct and collects memory requirements |
| 1048 | * above and beyond sizeof() |
| 1049 | * |
| 1050 | * \param packed A stream pointing to the packed byte stream |
| 1051 | * \param extra_mem Number of additional storage bytes required |
| 1052 | * \return TRUE on success, FALSE on failure |
| 1053 | */ |
| 1054 | bcmos_bool bcmbal_dest_scan(bcmbal_buf *packed, uint32_t *extra_mem); |
| 1055 | |
| 1056 | /** Checks if any field in the bcmbal_dest is out of bounds |
| 1057 | * |
| 1058 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 1059 | */ |
| 1060 | bcmos_bool bcmbal_dest_bounds_check(const bcmbal_dest *this); |
| 1061 | |
| 1062 | /** Initializes a bcmbal_flow_id_list_u32 struct. This sets all fields to |
| 1063 | * default values. |
| 1064 | * |
| 1065 | * \param this Pointer to the structure |
| 1066 | */ |
| 1067 | void bcmbal_flow_id_list_u32_set_default(bcmbal_flow_id_list_u32 *this); |
| 1068 | |
| 1069 | /** Packs a bcmbal_flow_id_list_u32 to bytes |
| 1070 | * |
| 1071 | * \param this Pointer to the object to pack |
| 1072 | * \param buf Pointer to the buffer to write to |
| 1073 | * \return TRUE if the pack was successful, FALSE otherwise |
| 1074 | */ |
| 1075 | bcmos_bool bcmbal_flow_id_list_u32_pack(const bcmbal_flow_id_list_u32 *this, bcmbal_buf *buf); |
| 1076 | |
| 1077 | /** Gets the number of bytes that a bcmbal_flow_id_list_u32 would occupy on the |
| 1078 | * wire |
| 1079 | * |
| 1080 | * \return The structure size in bytes |
| 1081 | */ |
| 1082 | uint32_t bcmbal_flow_id_list_u32_get_packed_length(const bcmbal_flow_id_list_u32 *this); |
| 1083 | |
| 1084 | /** Unpacks a bcmbal_flow_id_list_u32 from bytes |
| 1085 | * |
| 1086 | * \param this Pointer to the object to unpack |
| 1087 | * \param buf Pointer to the buffer to read from |
| 1088 | * \param extra_mem Pointer to the first location in memory to use to store |
| 1089 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 1090 | * a NULL pointer is encountered. |
| 1091 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 1092 | */ |
| 1093 | bcmos_bool bcmbal_flow_id_list_u32_unpack(bcmbal_flow_id_list_u32 *this, bcmbal_buf *buf, void **extra_mem); |
| 1094 | |
| 1095 | /** Scans past a packed bcmbal_flow_id_list_u32 struct and collects memory |
| 1096 | * requirements above and beyond sizeof() |
| 1097 | * |
| 1098 | * \param packed A stream pointing to the packed byte stream |
| 1099 | * \param extra_mem Number of additional storage bytes required |
| 1100 | * \return TRUE on success, FALSE on failure |
| 1101 | */ |
| 1102 | bcmos_bool bcmbal_flow_id_list_u32_scan(bcmbal_buf *packed, uint32_t *extra_mem); |
| 1103 | |
| 1104 | /** Checks if any field in the bcmbal_flow_id_list_u32 is out of bounds |
| 1105 | * |
| 1106 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 1107 | */ |
| 1108 | bcmos_bool bcmbal_flow_id_list_u32_bounds_check(const bcmbal_flow_id_list_u32 *this); |
| 1109 | |
| 1110 | /** Initializes a bcmbal_tm_queue_ref struct. This sets all fields to default |
| 1111 | * values. |
| 1112 | * |
| 1113 | * \param this Pointer to the structure |
| 1114 | */ |
| 1115 | void bcmbal_tm_queue_ref_set_default(bcmbal_tm_queue_ref *this); |
| 1116 | |
| 1117 | /** Packs a bcmbal_tm_queue_ref to bytes |
| 1118 | * |
| 1119 | * \param this Pointer to the object to pack |
| 1120 | * \param buf Pointer to the buffer to write to |
| 1121 | * \return TRUE if the pack was successful, FALSE otherwise |
| 1122 | */ |
| 1123 | bcmos_bool bcmbal_tm_queue_ref_pack(const bcmbal_tm_queue_ref *this, bcmbal_buf *buf); |
| 1124 | |
| 1125 | /** Unpacks a bcmbal_tm_queue_ref from bytes |
| 1126 | * |
| 1127 | * \param this Pointer to the object to unpack |
| 1128 | * \param buf Pointer to the buffer to read from |
| 1129 | * \param extra_mem Pointer to the first location in memory to use to store |
| 1130 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 1131 | * a NULL pointer is encountered. |
| 1132 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 1133 | */ |
| 1134 | bcmos_bool bcmbal_tm_queue_ref_unpack(bcmbal_tm_queue_ref *this, bcmbal_buf *buf, void **extra_mem); |
| 1135 | |
| 1136 | /** Scans past a packed bcmbal_tm_queue_ref struct and collects memory |
| 1137 | * requirements above and beyond sizeof() |
| 1138 | * |
| 1139 | * \param packed A stream pointing to the packed byte stream |
| 1140 | * \param extra_mem Number of additional storage bytes required |
| 1141 | * \return TRUE on success, FALSE on failure |
| 1142 | */ |
| 1143 | bcmos_bool bcmbal_tm_queue_ref_scan(bcmbal_buf *packed, uint32_t *extra_mem); |
| 1144 | |
| 1145 | /** Checks if any field in the bcmbal_tm_queue_ref is out of bounds |
| 1146 | * |
| 1147 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 1148 | */ |
| 1149 | bcmos_bool bcmbal_tm_queue_ref_bounds_check(const bcmbal_tm_queue_ref *this); |
| 1150 | |
| 1151 | /** Initializes a bcmbal_group_member_info struct. This sets all fields to |
| 1152 | * default values. |
| 1153 | * |
| 1154 | * \param this Pointer to the structure |
| 1155 | */ |
| 1156 | void bcmbal_group_member_info_set_default(bcmbal_group_member_info *this); |
| 1157 | |
| 1158 | /** Packs a bcmbal_group_member_info to bytes |
| 1159 | * |
| 1160 | * \param this Pointer to the object to pack |
| 1161 | * \param buf Pointer to the buffer to write to |
| 1162 | * \return TRUE if the pack was successful, FALSE otherwise |
| 1163 | */ |
| 1164 | bcmos_bool bcmbal_group_member_info_pack(const bcmbal_group_member_info *this, bcmbal_buf *buf); |
| 1165 | |
| 1166 | /** Gets the number of bytes that a bcmbal_group_member_info would occupy on the |
| 1167 | * wire |
| 1168 | * |
| 1169 | * \return The structure size in bytes |
| 1170 | */ |
| 1171 | uint32_t bcmbal_group_member_info_get_packed_length(const bcmbal_group_member_info *this); |
| 1172 | |
| 1173 | /** Unpacks a bcmbal_group_member_info from bytes |
| 1174 | * |
| 1175 | * \param this Pointer to the object to unpack |
| 1176 | * \param buf Pointer to the buffer to read from |
| 1177 | * \param extra_mem Pointer to the first location in memory to use to store |
| 1178 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 1179 | * a NULL pointer is encountered. |
| 1180 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 1181 | */ |
| 1182 | bcmos_bool bcmbal_group_member_info_unpack(bcmbal_group_member_info *this, bcmbal_buf *buf, void **extra_mem); |
| 1183 | |
| 1184 | /** Scans past a packed bcmbal_group_member_info struct and collects memory |
| 1185 | * requirements above and beyond sizeof() |
| 1186 | * |
| 1187 | * \param packed A stream pointing to the packed byte stream |
| 1188 | * \param extra_mem Number of additional storage bytes required |
| 1189 | * \return TRUE on success, FALSE on failure |
| 1190 | */ |
| 1191 | bcmos_bool bcmbal_group_member_info_scan(bcmbal_buf *packed, uint32_t *extra_mem); |
| 1192 | |
| 1193 | /** Checks if any field in the bcmbal_group_member_info is out of bounds |
| 1194 | * |
| 1195 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 1196 | */ |
| 1197 | bcmos_bool bcmbal_group_member_info_bounds_check(const bcmbal_group_member_info *this); |
| 1198 | |
| 1199 | /** Initializes a bcmbal_group_member_info_list_u16 struct. This sets all |
| 1200 | * fields to default values. |
| 1201 | * |
| 1202 | * \param this Pointer to the structure |
| 1203 | */ |
| 1204 | void bcmbal_group_member_info_list_u16_set_default(bcmbal_group_member_info_list_u16 *this); |
| 1205 | |
| 1206 | /** Packs a bcmbal_group_member_info_list_u16 to bytes |
| 1207 | * |
| 1208 | * \param this Pointer to the object to pack |
| 1209 | * \param buf Pointer to the buffer to write to |
| 1210 | * \return TRUE if the pack was successful, FALSE otherwise |
| 1211 | */ |
| 1212 | bcmos_bool bcmbal_group_member_info_list_u16_pack(const bcmbal_group_member_info_list_u16 *this, bcmbal_buf *buf); |
| 1213 | |
| 1214 | /** Gets the number of bytes that a bcmbal_group_member_info_list_u16 would |
| 1215 | * occupy on the wire |
| 1216 | * |
| 1217 | * \return The structure size in bytes |
| 1218 | */ |
| 1219 | uint32_t bcmbal_group_member_info_list_u16_get_packed_length(const bcmbal_group_member_info_list_u16 *this); |
| 1220 | |
| 1221 | /** Unpacks a bcmbal_group_member_info_list_u16 from bytes |
| 1222 | * |
| 1223 | * \param this Pointer to the object to unpack |
| 1224 | * \param buf Pointer to the buffer to read from |
| 1225 | * \param extra_mem Pointer to the first location in memory to use to store |
| 1226 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 1227 | * a NULL pointer is encountered. |
| 1228 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 1229 | */ |
| 1230 | bcmos_bool bcmbal_group_member_info_list_u16_unpack(bcmbal_group_member_info_list_u16 *this, bcmbal_buf *buf, void **extra_mem); |
| 1231 | |
| 1232 | /** Scans past a packed bcmbal_group_member_info_list_u16 struct and collects |
| 1233 | * memory requirements above and beyond sizeof() |
| 1234 | * |
| 1235 | * \param packed A stream pointing to the packed byte stream |
| 1236 | * \param extra_mem Number of additional storage bytes required |
| 1237 | * \return TRUE on success, FALSE on failure |
| 1238 | */ |
| 1239 | bcmos_bool bcmbal_group_member_info_list_u16_scan(bcmbal_buf *packed, uint32_t *extra_mem); |
| 1240 | |
| 1241 | /** Checks if any field in the bcmbal_group_member_info_list_u16 is out of |
| 1242 | * bounds |
| 1243 | * |
| 1244 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 1245 | */ |
| 1246 | bcmos_bool bcmbal_group_member_info_list_u16_bounds_check(const bcmbal_group_member_info_list_u16 *this); |
| 1247 | |
| 1248 | /** Initializes a bcmbal_password struct. This sets all fields to default |
| 1249 | * values. |
| 1250 | * |
| 1251 | * \param this Pointer to the structure |
| 1252 | */ |
| 1253 | void bcmbal_password_set_default(bcmbal_password *this); |
| 1254 | |
| 1255 | /** Packs a bcmbal_password to bytes |
| 1256 | * |
| 1257 | * \param this Pointer to the object to pack |
| 1258 | * \param buf Pointer to the buffer to write to |
| 1259 | * \return TRUE if the pack was successful, FALSE otherwise |
| 1260 | */ |
| 1261 | bcmos_bool bcmbal_password_pack(const bcmbal_password *this, bcmbal_buf *buf); |
| 1262 | |
| 1263 | /** Unpacks a bcmbal_password from bytes |
| 1264 | * |
| 1265 | * \param this Pointer to the object to unpack |
| 1266 | * \param buf Pointer to the buffer to read from |
| 1267 | * \param extra_mem Pointer to the first location in memory to use to store |
| 1268 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 1269 | * a NULL pointer is encountered. |
| 1270 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 1271 | */ |
| 1272 | bcmos_bool bcmbal_password_unpack(bcmbal_password *this, bcmbal_buf *buf, void **extra_mem); |
| 1273 | |
| 1274 | /** Scans past a packed bcmbal_password struct and collects memory requirements |
| 1275 | * above and beyond sizeof() |
| 1276 | * |
| 1277 | * \param packed A stream pointing to the packed byte stream |
| 1278 | * \param extra_mem Number of additional storage bytes required |
| 1279 | * \return TRUE on success, FALSE on failure |
| 1280 | */ |
| 1281 | bcmos_bool bcmbal_password_scan(bcmbal_buf *packed, uint32_t *extra_mem); |
| 1282 | |
| 1283 | /** Checks if any field in the bcmbal_password is out of bounds |
| 1284 | * |
| 1285 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 1286 | */ |
| 1287 | bcmos_bool bcmbal_password_bounds_check(const bcmbal_password *this); |
| 1288 | |
| 1289 | /** Initializes a bcmbal_registration_id struct. This sets all fields to |
| 1290 | * default values. |
| 1291 | * |
| 1292 | * \param this Pointer to the structure |
| 1293 | */ |
| 1294 | void bcmbal_registration_id_set_default(bcmbal_registration_id *this); |
| 1295 | |
| 1296 | /** Packs a bcmbal_registration_id to bytes |
| 1297 | * |
| 1298 | * \param this Pointer to the object to pack |
| 1299 | * \param buf Pointer to the buffer to write to |
| 1300 | * \return TRUE if the pack was successful, FALSE otherwise |
| 1301 | */ |
| 1302 | bcmos_bool bcmbal_registration_id_pack(const bcmbal_registration_id *this, bcmbal_buf *buf); |
| 1303 | |
| 1304 | /** Unpacks a bcmbal_registration_id from bytes |
| 1305 | * |
| 1306 | * \param this Pointer to the object to unpack |
| 1307 | * \param buf Pointer to the buffer to read from |
| 1308 | * \param extra_mem Pointer to the first location in memory to use to store |
| 1309 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 1310 | * a NULL pointer is encountered. |
| 1311 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 1312 | */ |
| 1313 | bcmos_bool bcmbal_registration_id_unpack(bcmbal_registration_id *this, bcmbal_buf *buf, void **extra_mem); |
| 1314 | |
| 1315 | /** Scans past a packed bcmbal_registration_id struct and collects memory |
| 1316 | * requirements above and beyond sizeof() |
| 1317 | * |
| 1318 | * \param packed A stream pointing to the packed byte stream |
| 1319 | * \param extra_mem Number of additional storage bytes required |
| 1320 | * \return TRUE on success, FALSE on failure |
| 1321 | */ |
| 1322 | bcmos_bool bcmbal_registration_id_scan(bcmbal_buf *packed, uint32_t *extra_mem); |
| 1323 | |
| 1324 | /** Checks if any field in the bcmbal_registration_id is out of bounds |
| 1325 | * |
| 1326 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 1327 | */ |
| 1328 | bcmos_bool bcmbal_registration_id_bounds_check(const bcmbal_registration_id *this); |
| 1329 | |
| 1330 | /** Initializes a bcmbal_serial_number struct. This sets all fields to default |
| 1331 | * values. |
| 1332 | * |
| 1333 | * \param this Pointer to the structure |
| 1334 | */ |
| 1335 | void bcmbal_serial_number_set_default(bcmbal_serial_number *this); |
| 1336 | |
| 1337 | /** Packs a bcmbal_serial_number to bytes |
| 1338 | * |
| 1339 | * \param this Pointer to the object to pack |
| 1340 | * \param buf Pointer to the buffer to write to |
| 1341 | * \return TRUE if the pack was successful, FALSE otherwise |
| 1342 | */ |
| 1343 | bcmos_bool bcmbal_serial_number_pack(const bcmbal_serial_number *this, bcmbal_buf *buf); |
| 1344 | |
| 1345 | /** Unpacks a bcmbal_serial_number from bytes |
| 1346 | * |
| 1347 | * \param this Pointer to the object to unpack |
| 1348 | * \param buf Pointer to the buffer to read from |
| 1349 | * \param extra_mem Pointer to the first location in memory to use to store |
| 1350 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 1351 | * a NULL pointer is encountered. |
| 1352 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 1353 | */ |
| 1354 | bcmos_bool bcmbal_serial_number_unpack(bcmbal_serial_number *this, bcmbal_buf *buf, void **extra_mem); |
| 1355 | |
| 1356 | /** Scans past a packed bcmbal_serial_number struct and collects memory |
| 1357 | * requirements above and beyond sizeof() |
| 1358 | * |
| 1359 | * \param packed A stream pointing to the packed byte stream |
| 1360 | * \param extra_mem Number of additional storage bytes required |
| 1361 | * \return TRUE on success, FALSE on failure |
| 1362 | */ |
| 1363 | bcmos_bool bcmbal_serial_number_scan(bcmbal_buf *packed, uint32_t *extra_mem); |
| 1364 | |
| 1365 | /** Checks if any field in the bcmbal_serial_number is out of bounds |
| 1366 | * |
| 1367 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 1368 | */ |
| 1369 | bcmos_bool bcmbal_serial_number_bounds_check(const bcmbal_serial_number *this); |
| 1370 | |
| 1371 | /** Initializes a bcmbal_service_port_id_list_u8 struct. This sets all fields |
| 1372 | * to default values. |
| 1373 | * |
| 1374 | * \param this Pointer to the structure |
| 1375 | */ |
| 1376 | void bcmbal_service_port_id_list_u8_set_default(bcmbal_service_port_id_list_u8 *this); |
| 1377 | |
| 1378 | /** Packs a bcmbal_service_port_id_list_u8 to bytes |
| 1379 | * |
| 1380 | * \param this Pointer to the object to pack |
| 1381 | * \param buf Pointer to the buffer to write to |
| 1382 | * \return TRUE if the pack was successful, FALSE otherwise |
| 1383 | */ |
| 1384 | bcmos_bool bcmbal_service_port_id_list_u8_pack(const bcmbal_service_port_id_list_u8 *this, bcmbal_buf *buf); |
| 1385 | |
| 1386 | /** Gets the number of bytes that a bcmbal_service_port_id_list_u8 would occupy |
| 1387 | * on the wire |
| 1388 | * |
| 1389 | * \return The structure size in bytes |
| 1390 | */ |
| 1391 | uint32_t bcmbal_service_port_id_list_u8_get_packed_length(const bcmbal_service_port_id_list_u8 *this); |
| 1392 | |
| 1393 | /** Unpacks a bcmbal_service_port_id_list_u8 from bytes |
| 1394 | * |
| 1395 | * \param this Pointer to the object to unpack |
| 1396 | * \param buf Pointer to the buffer to read from |
| 1397 | * \param extra_mem Pointer to the first location in memory to use to store |
| 1398 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 1399 | * a NULL pointer is encountered. |
| 1400 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 1401 | */ |
| 1402 | bcmos_bool bcmbal_service_port_id_list_u8_unpack(bcmbal_service_port_id_list_u8 *this, bcmbal_buf *buf, void **extra_mem); |
| 1403 | |
| 1404 | /** Scans past a packed bcmbal_service_port_id_list_u8 struct and collects |
| 1405 | * memory requirements above and beyond sizeof() |
| 1406 | * |
| 1407 | * \param packed A stream pointing to the packed byte stream |
| 1408 | * \param extra_mem Number of additional storage bytes required |
| 1409 | * \return TRUE on success, FALSE on failure |
| 1410 | */ |
| 1411 | bcmos_bool bcmbal_service_port_id_list_u8_scan(bcmbal_buf *packed, uint32_t *extra_mem); |
| 1412 | |
| 1413 | /** Checks if any field in the bcmbal_service_port_id_list_u8 is out of bounds |
| 1414 | * |
| 1415 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 1416 | */ |
| 1417 | bcmos_bool bcmbal_service_port_id_list_u8_bounds_check(const bcmbal_service_port_id_list_u8 *this); |
| 1418 | |
| 1419 | /** Initializes a bcmbal_sla struct. This sets all fields to default values. |
| 1420 | * |
| 1421 | * \param this Pointer to the structure |
| 1422 | */ |
| 1423 | void bcmbal_sla_set_default(bcmbal_sla *this); |
| 1424 | |
| 1425 | /** Packs a bcmbal_sla to bytes |
| 1426 | * |
| 1427 | * \param this Pointer to the object to pack |
| 1428 | * \param buf Pointer to the buffer to write to |
| 1429 | * \return TRUE if the pack was successful, FALSE otherwise |
| 1430 | */ |
| 1431 | bcmos_bool bcmbal_sla_pack(const bcmbal_sla *this, bcmbal_buf *buf); |
| 1432 | |
| 1433 | /** Gets the number of bytes that a bcmbal_sla would occupy on the wire |
| 1434 | * |
| 1435 | * \return The structure size in bytes |
| 1436 | */ |
| 1437 | uint32_t bcmbal_sla_get_packed_length(const bcmbal_sla *this); |
| 1438 | |
| 1439 | /** Unpacks a bcmbal_sla from bytes |
| 1440 | * |
| 1441 | * \param this Pointer to the object to unpack |
| 1442 | * \param buf Pointer to the buffer to read from |
| 1443 | * \param extra_mem Pointer to the first location in memory to use to store |
| 1444 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 1445 | * a NULL pointer is encountered. |
| 1446 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 1447 | */ |
| 1448 | bcmos_bool bcmbal_sla_unpack(bcmbal_sla *this, bcmbal_buf *buf, void **extra_mem); |
| 1449 | |
| 1450 | /** Scans past a packed bcmbal_sla struct and collects memory requirements above |
| 1451 | * and beyond sizeof() |
| 1452 | * |
| 1453 | * \param packed A stream pointing to the packed byte stream |
| 1454 | * \param extra_mem Number of additional storage bytes required |
| 1455 | * \return TRUE on success, FALSE on failure |
| 1456 | */ |
| 1457 | bcmos_bool bcmbal_sla_scan(bcmbal_buf *packed, uint32_t *extra_mem); |
| 1458 | |
| 1459 | /** Checks if any field in the bcmbal_sla is out of bounds |
| 1460 | * |
| 1461 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 1462 | */ |
| 1463 | bcmos_bool bcmbal_sla_bounds_check(const bcmbal_sla *this); |
| 1464 | |
| 1465 | /** Initializes a bcmbal_sub_id_list_u16 struct. This sets all fields to |
| 1466 | * default values. |
| 1467 | * |
| 1468 | * \param this Pointer to the structure |
| 1469 | */ |
| 1470 | void bcmbal_sub_id_list_u16_set_default(bcmbal_sub_id_list_u16 *this); |
| 1471 | |
| 1472 | /** Packs a bcmbal_sub_id_list_u16 to bytes |
| 1473 | * |
| 1474 | * \param this Pointer to the object to pack |
| 1475 | * \param buf Pointer to the buffer to write to |
| 1476 | * \return TRUE if the pack was successful, FALSE otherwise |
| 1477 | */ |
| 1478 | bcmos_bool bcmbal_sub_id_list_u16_pack(const bcmbal_sub_id_list_u16 *this, bcmbal_buf *buf); |
| 1479 | |
| 1480 | /** Gets the number of bytes that a bcmbal_sub_id_list_u16 would occupy on the |
| 1481 | * wire |
| 1482 | * |
| 1483 | * \return The structure size in bytes |
| 1484 | */ |
| 1485 | uint32_t bcmbal_sub_id_list_u16_get_packed_length(const bcmbal_sub_id_list_u16 *this); |
| 1486 | |
| 1487 | /** Unpacks a bcmbal_sub_id_list_u16 from bytes |
| 1488 | * |
| 1489 | * \param this Pointer to the object to unpack |
| 1490 | * \param buf Pointer to the buffer to read from |
| 1491 | * \param extra_mem Pointer to the first location in memory to use to store |
| 1492 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 1493 | * a NULL pointer is encountered. |
| 1494 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 1495 | */ |
| 1496 | bcmos_bool bcmbal_sub_id_list_u16_unpack(bcmbal_sub_id_list_u16 *this, bcmbal_buf *buf, void **extra_mem); |
| 1497 | |
| 1498 | /** Scans past a packed bcmbal_sub_id_list_u16 struct and collects memory |
| 1499 | * requirements above and beyond sizeof() |
| 1500 | * |
| 1501 | * \param packed A stream pointing to the packed byte stream |
| 1502 | * \param extra_mem Number of additional storage bytes required |
| 1503 | * \return TRUE on success, FALSE on failure |
| 1504 | */ |
| 1505 | bcmos_bool bcmbal_sub_id_list_u16_scan(bcmbal_buf *packed, uint32_t *extra_mem); |
| 1506 | |
| 1507 | /** Checks if any field in the bcmbal_sub_id_list_u16 is out of bounds |
| 1508 | * |
| 1509 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 1510 | */ |
| 1511 | bcmos_bool bcmbal_sub_id_list_u16_bounds_check(const bcmbal_sub_id_list_u16 *this); |
| 1512 | |
| 1513 | /** Initializes a bcmbal_tm_red struct. This sets all fields to default values. |
| 1514 | * |
| 1515 | * \param this Pointer to the structure |
| 1516 | */ |
| 1517 | void bcmbal_tm_red_set_default(bcmbal_tm_red *this); |
| 1518 | |
| 1519 | /** Packs a bcmbal_tm_red to bytes |
| 1520 | * |
| 1521 | * \param this Pointer to the object to pack |
| 1522 | * \param buf Pointer to the buffer to write to |
| 1523 | * \return TRUE if the pack was successful, FALSE otherwise |
| 1524 | */ |
| 1525 | bcmos_bool bcmbal_tm_red_pack(const bcmbal_tm_red *this, bcmbal_buf *buf); |
| 1526 | |
| 1527 | /** Unpacks a bcmbal_tm_red from bytes |
| 1528 | * |
| 1529 | * \param this Pointer to the object to unpack |
| 1530 | * \param buf Pointer to the buffer to read from |
| 1531 | * \param extra_mem Pointer to the first location in memory to use to store |
| 1532 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 1533 | * a NULL pointer is encountered. |
| 1534 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 1535 | */ |
| 1536 | bcmos_bool bcmbal_tm_red_unpack(bcmbal_tm_red *this, bcmbal_buf *buf, void **extra_mem); |
| 1537 | |
| 1538 | /** Scans past a packed bcmbal_tm_red struct and collects memory requirements |
| 1539 | * above and beyond sizeof() |
| 1540 | * |
| 1541 | * \param packed A stream pointing to the packed byte stream |
| 1542 | * \param extra_mem Number of additional storage bytes required |
| 1543 | * \return TRUE on success, FALSE on failure |
| 1544 | */ |
| 1545 | bcmos_bool bcmbal_tm_red_scan(bcmbal_buf *packed, uint32_t *extra_mem); |
| 1546 | |
| 1547 | /** Checks if any field in the bcmbal_tm_red is out of bounds |
| 1548 | * |
| 1549 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 1550 | */ |
| 1551 | bcmos_bool bcmbal_tm_red_bounds_check(const bcmbal_tm_red *this); |
| 1552 | |
| 1553 | /** Initializes a bcmbal_tm_bac struct. This sets all fields to default values. |
| 1554 | * |
| 1555 | * \param this Pointer to the structure |
| 1556 | */ |
| 1557 | void bcmbal_tm_bac_set_default(bcmbal_tm_bac *this); |
| 1558 | |
| 1559 | /** Packs a bcmbal_tm_bac to bytes |
| 1560 | * |
| 1561 | * \param this Pointer to the object to pack |
| 1562 | * \param buf Pointer to the buffer to write to |
| 1563 | * \return TRUE if the pack was successful, FALSE otherwise |
| 1564 | */ |
| 1565 | bcmos_bool bcmbal_tm_bac_pack(const bcmbal_tm_bac *this, bcmbal_buf *buf); |
| 1566 | |
| 1567 | /** Gets the number of bytes that a bcmbal_tm_bac would occupy on the wire |
| 1568 | * |
| 1569 | * \return The structure size in bytes |
| 1570 | */ |
| 1571 | uint32_t bcmbal_tm_bac_get_packed_length(const bcmbal_tm_bac *this); |
| 1572 | |
| 1573 | /** Unpacks a bcmbal_tm_bac from bytes |
| 1574 | * |
| 1575 | * \param this Pointer to the object to unpack |
| 1576 | * \param buf Pointer to the buffer to read from |
| 1577 | * \param extra_mem Pointer to the first location in memory to use to store |
| 1578 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 1579 | * a NULL pointer is encountered. |
| 1580 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 1581 | */ |
| 1582 | bcmos_bool bcmbal_tm_bac_unpack(bcmbal_tm_bac *this, bcmbal_buf *buf, void **extra_mem); |
| 1583 | |
| 1584 | /** Scans past a packed bcmbal_tm_bac struct and collects memory requirements |
| 1585 | * above and beyond sizeof() |
| 1586 | * |
| 1587 | * \param packed A stream pointing to the packed byte stream |
| 1588 | * \param extra_mem Number of additional storage bytes required |
| 1589 | * \return TRUE on success, FALSE on failure |
| 1590 | */ |
| 1591 | bcmos_bool bcmbal_tm_bac_scan(bcmbal_buf *packed, uint32_t *extra_mem); |
| 1592 | |
| 1593 | /** Checks if any field in the bcmbal_tm_bac is out of bounds |
| 1594 | * |
| 1595 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 1596 | */ |
| 1597 | bcmos_bool bcmbal_tm_bac_bounds_check(const bcmbal_tm_bac *this); |
| 1598 | |
| 1599 | /** Initializes a bcmbal_tm_queue_id_list_u8 struct. This sets all fields to |
| 1600 | * default values. |
| 1601 | * |
| 1602 | * \param this Pointer to the structure |
| 1603 | */ |
| 1604 | void bcmbal_tm_queue_id_list_u8_set_default(bcmbal_tm_queue_id_list_u8 *this); |
| 1605 | |
| 1606 | /** Packs a bcmbal_tm_queue_id_list_u8 to bytes |
| 1607 | * |
| 1608 | * \param this Pointer to the object to pack |
| 1609 | * \param buf Pointer to the buffer to write to |
| 1610 | * \return TRUE if the pack was successful, FALSE otherwise |
| 1611 | */ |
| 1612 | bcmos_bool bcmbal_tm_queue_id_list_u8_pack(const bcmbal_tm_queue_id_list_u8 *this, bcmbal_buf *buf); |
| 1613 | |
| 1614 | /** Gets the number of bytes that a bcmbal_tm_queue_id_list_u8 would occupy on |
| 1615 | * the wire |
| 1616 | * |
| 1617 | * \return The structure size in bytes |
| 1618 | */ |
| 1619 | uint32_t bcmbal_tm_queue_id_list_u8_get_packed_length(const bcmbal_tm_queue_id_list_u8 *this); |
| 1620 | |
| 1621 | /** Unpacks a bcmbal_tm_queue_id_list_u8 from bytes |
| 1622 | * |
| 1623 | * \param this Pointer to the object to unpack |
| 1624 | * \param buf Pointer to the buffer to read from |
| 1625 | * \param extra_mem Pointer to the first location in memory to use to store |
| 1626 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 1627 | * a NULL pointer is encountered. |
| 1628 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 1629 | */ |
| 1630 | bcmos_bool bcmbal_tm_queue_id_list_u8_unpack(bcmbal_tm_queue_id_list_u8 *this, bcmbal_buf *buf, void **extra_mem); |
| 1631 | |
| 1632 | /** Scans past a packed bcmbal_tm_queue_id_list_u8 struct and collects memory |
| 1633 | * requirements above and beyond sizeof() |
| 1634 | * |
| 1635 | * \param packed A stream pointing to the packed byte stream |
| 1636 | * \param extra_mem Number of additional storage bytes required |
| 1637 | * \return TRUE on success, FALSE on failure |
| 1638 | */ |
| 1639 | bcmos_bool bcmbal_tm_queue_id_list_u8_scan(bcmbal_buf *packed, uint32_t *extra_mem); |
| 1640 | |
| 1641 | /** Checks if any field in the bcmbal_tm_queue_id_list_u8 is out of bounds |
| 1642 | * |
| 1643 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 1644 | */ |
| 1645 | bcmos_bool bcmbal_tm_queue_id_list_u8_bounds_check(const bcmbal_tm_queue_id_list_u8 *this); |
| 1646 | |
| 1647 | /** Initializes a bcmbal_tm_sched_id_list_u8 struct. This sets all fields to |
| 1648 | * default values. |
| 1649 | * |
| 1650 | * \param this Pointer to the structure |
| 1651 | */ |
| 1652 | void bcmbal_tm_sched_id_list_u8_set_default(bcmbal_tm_sched_id_list_u8 *this); |
| 1653 | |
| 1654 | /** Packs a bcmbal_tm_sched_id_list_u8 to bytes |
| 1655 | * |
| 1656 | * \param this Pointer to the object to pack |
| 1657 | * \param buf Pointer to the buffer to write to |
| 1658 | * \return TRUE if the pack was successful, FALSE otherwise |
| 1659 | */ |
| 1660 | bcmos_bool bcmbal_tm_sched_id_list_u8_pack(const bcmbal_tm_sched_id_list_u8 *this, bcmbal_buf *buf); |
| 1661 | |
| 1662 | /** Gets the number of bytes that a bcmbal_tm_sched_id_list_u8 would occupy on |
| 1663 | * the wire |
| 1664 | * |
| 1665 | * \return The structure size in bytes |
| 1666 | */ |
| 1667 | uint32_t bcmbal_tm_sched_id_list_u8_get_packed_length(const bcmbal_tm_sched_id_list_u8 *this); |
| 1668 | |
| 1669 | /** Unpacks a bcmbal_tm_sched_id_list_u8 from bytes |
| 1670 | * |
| 1671 | * \param this Pointer to the object to unpack |
| 1672 | * \param buf Pointer to the buffer to read from |
| 1673 | * \param extra_mem Pointer to the first location in memory to use to store |
| 1674 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 1675 | * a NULL pointer is encountered. |
| 1676 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 1677 | */ |
| 1678 | bcmos_bool bcmbal_tm_sched_id_list_u8_unpack(bcmbal_tm_sched_id_list_u8 *this, bcmbal_buf *buf, void **extra_mem); |
| 1679 | |
| 1680 | /** Scans past a packed bcmbal_tm_sched_id_list_u8 struct and collects memory |
| 1681 | * requirements above and beyond sizeof() |
| 1682 | * |
| 1683 | * \param packed A stream pointing to the packed byte stream |
| 1684 | * \param extra_mem Number of additional storage bytes required |
| 1685 | * \return TRUE on success, FALSE on failure |
| 1686 | */ |
| 1687 | bcmos_bool bcmbal_tm_sched_id_list_u8_scan(bcmbal_buf *packed, uint32_t *extra_mem); |
| 1688 | |
| 1689 | /** Checks if any field in the bcmbal_tm_sched_id_list_u8 is out of bounds |
| 1690 | * |
| 1691 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 1692 | */ |
| 1693 | bcmos_bool bcmbal_tm_sched_id_list_u8_bounds_check(const bcmbal_tm_sched_id_list_u8 *this); |
| 1694 | |
| 1695 | /** Initializes a bcmbal_tm_sched_owner struct. This sets all fields to default |
| 1696 | * values. |
| 1697 | * |
| 1698 | * \param this Pointer to the structure |
| 1699 | */ |
| 1700 | void bcmbal_tm_sched_owner_set_default(bcmbal_tm_sched_owner *this); |
| 1701 | |
| 1702 | /** Packs a bcmbal_tm_sched_owner to bytes |
| 1703 | * |
| 1704 | * \param this Pointer to the object to pack |
| 1705 | * \param buf Pointer to the buffer to write to |
| 1706 | * \return TRUE if the pack was successful, FALSE otherwise |
| 1707 | */ |
| 1708 | bcmos_bool bcmbal_tm_sched_owner_pack(const bcmbal_tm_sched_owner *this, bcmbal_buf *buf); |
| 1709 | |
| 1710 | /** Gets the number of bytes that a bcmbal_tm_sched_owner would occupy on the |
| 1711 | * wire |
| 1712 | * |
| 1713 | * \return The structure size in bytes |
| 1714 | */ |
| 1715 | uint32_t bcmbal_tm_sched_owner_get_packed_length(const bcmbal_tm_sched_owner *this); |
| 1716 | |
| 1717 | /** Unpacks a bcmbal_tm_sched_owner from bytes |
| 1718 | * |
| 1719 | * \param this Pointer to the object to unpack |
| 1720 | * \param buf Pointer to the buffer to read from |
| 1721 | * \param extra_mem Pointer to the first location in memory to use to store |
| 1722 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 1723 | * a NULL pointer is encountered. |
| 1724 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 1725 | */ |
| 1726 | bcmos_bool bcmbal_tm_sched_owner_unpack(bcmbal_tm_sched_owner *this, bcmbal_buf *buf, void **extra_mem); |
| 1727 | |
| 1728 | /** Scans past a packed bcmbal_tm_sched_owner struct and collects memory |
| 1729 | * requirements above and beyond sizeof() |
| 1730 | * |
| 1731 | * \param packed A stream pointing to the packed byte stream |
| 1732 | * \param extra_mem Number of additional storage bytes required |
| 1733 | * \return TRUE on success, FALSE on failure |
| 1734 | */ |
| 1735 | bcmos_bool bcmbal_tm_sched_owner_scan(bcmbal_buf *packed, uint32_t *extra_mem); |
| 1736 | |
| 1737 | /** Checks if any field in the bcmbal_tm_sched_owner is out of bounds |
| 1738 | * |
| 1739 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 1740 | */ |
| 1741 | bcmos_bool bcmbal_tm_sched_owner_bounds_check(const bcmbal_tm_sched_owner *this); |
| 1742 | |
| 1743 | /** Initializes a bcmbal_tm_sched_parent struct. This sets all fields to |
| 1744 | * default values. |
| 1745 | * |
| 1746 | * \param this Pointer to the structure |
| 1747 | */ |
| 1748 | void bcmbal_tm_sched_parent_set_default(bcmbal_tm_sched_parent *this); |
| 1749 | |
| 1750 | /** Packs a bcmbal_tm_sched_parent to bytes |
| 1751 | * |
| 1752 | * \param this Pointer to the object to pack |
| 1753 | * \param buf Pointer to the buffer to write to |
| 1754 | * \return TRUE if the pack was successful, FALSE otherwise |
| 1755 | */ |
| 1756 | bcmos_bool bcmbal_tm_sched_parent_pack(const bcmbal_tm_sched_parent *this, bcmbal_buf *buf); |
| 1757 | |
| 1758 | /** Gets the number of bytes that a bcmbal_tm_sched_parent would occupy on the |
| 1759 | * wire |
| 1760 | * |
| 1761 | * \return The structure size in bytes |
| 1762 | */ |
| 1763 | uint32_t bcmbal_tm_sched_parent_get_packed_length(const bcmbal_tm_sched_parent *this); |
| 1764 | |
| 1765 | /** Unpacks a bcmbal_tm_sched_parent from bytes |
| 1766 | * |
| 1767 | * \param this Pointer to the object to unpack |
| 1768 | * \param buf Pointer to the buffer to read from |
| 1769 | * \param extra_mem Pointer to the first location in memory to use to store |
| 1770 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 1771 | * a NULL pointer is encountered. |
| 1772 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 1773 | */ |
| 1774 | bcmos_bool bcmbal_tm_sched_parent_unpack(bcmbal_tm_sched_parent *this, bcmbal_buf *buf, void **extra_mem); |
| 1775 | |
| 1776 | /** Scans past a packed bcmbal_tm_sched_parent struct and collects memory |
| 1777 | * requirements above and beyond sizeof() |
| 1778 | * |
| 1779 | * \param packed A stream pointing to the packed byte stream |
| 1780 | * \param extra_mem Number of additional storage bytes required |
| 1781 | * \return TRUE on success, FALSE on failure |
| 1782 | */ |
| 1783 | bcmos_bool bcmbal_tm_sched_parent_scan(bcmbal_buf *packed, uint32_t *extra_mem); |
| 1784 | |
| 1785 | /** Checks if any field in the bcmbal_tm_sched_parent is out of bounds |
| 1786 | * |
| 1787 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 1788 | */ |
| 1789 | bcmos_bool bcmbal_tm_sched_parent_bounds_check(const bcmbal_tm_sched_parent *this); |
| 1790 | |
| 1791 | /** Initializes a bcmbal_tm_shaping struct. This sets all fields to default |
| 1792 | * values. |
| 1793 | * |
| 1794 | * \param this Pointer to the structure |
| 1795 | */ |
| 1796 | void bcmbal_tm_shaping_set_default(bcmbal_tm_shaping *this); |
| 1797 | |
| 1798 | /** Packs a bcmbal_tm_shaping to bytes |
| 1799 | * |
| 1800 | * \param this Pointer to the object to pack |
| 1801 | * \param buf Pointer to the buffer to write to |
| 1802 | * \return TRUE if the pack was successful, FALSE otherwise |
| 1803 | */ |
| 1804 | bcmos_bool bcmbal_tm_shaping_pack(const bcmbal_tm_shaping *this, bcmbal_buf *buf); |
| 1805 | |
| 1806 | /** Gets the number of bytes that a bcmbal_tm_shaping would occupy on the wire |
| 1807 | * |
| 1808 | * \return The structure size in bytes |
| 1809 | */ |
| 1810 | uint32_t bcmbal_tm_shaping_get_packed_length(const bcmbal_tm_shaping *this); |
| 1811 | |
| 1812 | /** Unpacks a bcmbal_tm_shaping from bytes |
| 1813 | * |
| 1814 | * \param this Pointer to the object to unpack |
| 1815 | * \param buf Pointer to the buffer to read from |
| 1816 | * \param extra_mem Pointer to the first location in memory to use to store |
| 1817 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 1818 | * a NULL pointer is encountered. |
| 1819 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 1820 | */ |
| 1821 | bcmos_bool bcmbal_tm_shaping_unpack(bcmbal_tm_shaping *this, bcmbal_buf *buf, void **extra_mem); |
| 1822 | |
| 1823 | /** Scans past a packed bcmbal_tm_shaping struct and collects memory |
| 1824 | * requirements above and beyond sizeof() |
| 1825 | * |
| 1826 | * \param packed A stream pointing to the packed byte stream |
| 1827 | * \param extra_mem Number of additional storage bytes required |
| 1828 | * \return TRUE on success, FALSE on failure |
| 1829 | */ |
| 1830 | bcmos_bool bcmbal_tm_shaping_scan(bcmbal_buf *packed, uint32_t *extra_mem); |
| 1831 | |
| 1832 | /** Checks if any field in the bcmbal_tm_shaping is out of bounds |
| 1833 | * |
| 1834 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 1835 | */ |
| 1836 | bcmos_bool bcmbal_tm_shaping_bounds_check(const bcmbal_tm_shaping *this); |
| 1837 | |
| 1838 | /** Initializes a bcmbal_tm_tcont_sla struct. This sets all fields to default |
| 1839 | * values. |
| 1840 | * |
| 1841 | * \param this Pointer to the structure |
| 1842 | */ |
| 1843 | void bcmbal_tm_tcont_sla_set_default(bcmbal_tm_tcont_sla *this); |
| 1844 | |
| 1845 | /** Packs a bcmbal_tm_tcont_sla to bytes |
| 1846 | * |
| 1847 | * \param this Pointer to the object to pack |
| 1848 | * \param buf Pointer to the buffer to write to |
| 1849 | * \return TRUE if the pack was successful, FALSE otherwise |
| 1850 | */ |
| 1851 | bcmos_bool bcmbal_tm_tcont_sla_pack(const bcmbal_tm_tcont_sla *this, bcmbal_buf *buf); |
| 1852 | |
| 1853 | /** Gets the number of bytes that a bcmbal_tm_tcont_sla would occupy on the wire |
| 1854 | * |
| 1855 | * \return The structure size in bytes |
| 1856 | */ |
| 1857 | uint32_t bcmbal_tm_tcont_sla_get_packed_length(const bcmbal_tm_tcont_sla *this); |
| 1858 | |
| 1859 | /** Unpacks a bcmbal_tm_tcont_sla from bytes |
| 1860 | * |
| 1861 | * \param this Pointer to the object to unpack |
| 1862 | * \param buf Pointer to the buffer to read from |
| 1863 | * \param extra_mem Pointer to the first location in memory to use to store |
| 1864 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 1865 | * a NULL pointer is encountered. |
| 1866 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 1867 | */ |
| 1868 | bcmos_bool bcmbal_tm_tcont_sla_unpack(bcmbal_tm_tcont_sla *this, bcmbal_buf *buf, void **extra_mem); |
| 1869 | |
| 1870 | /** Scans past a packed bcmbal_tm_tcont_sla struct and collects memory |
| 1871 | * requirements above and beyond sizeof() |
| 1872 | * |
| 1873 | * \param packed A stream pointing to the packed byte stream |
| 1874 | * \param extra_mem Number of additional storage bytes required |
| 1875 | * \return TRUE on success, FALSE on failure |
| 1876 | */ |
| 1877 | bcmos_bool bcmbal_tm_tcont_sla_scan(bcmbal_buf *packed, uint32_t *extra_mem); |
| 1878 | |
| 1879 | /** Checks if any field in the bcmbal_tm_tcont_sla is out of bounds |
| 1880 | * |
| 1881 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 1882 | */ |
| 1883 | bcmos_bool bcmbal_tm_tcont_sla_bounds_check(const bcmbal_tm_tcont_sla *this); |
| 1884 | |
| 1885 | /** Initializes a bcmbal_u8_list_u32 struct. This sets all fields to default |
| 1886 | * values. |
| 1887 | * |
| 1888 | * \param this Pointer to the structure |
| 1889 | */ |
| 1890 | void bcmbal_u8_list_u32_set_default(bcmbal_u8_list_u32 *this); |
| 1891 | |
| 1892 | /** Packs a bcmbal_u8_list_u32 to bytes |
| 1893 | * |
| 1894 | * \param this Pointer to the object to pack |
| 1895 | * \param buf Pointer to the buffer to write to |
| 1896 | * \return TRUE if the pack was successful, FALSE otherwise |
| 1897 | */ |
| 1898 | bcmos_bool bcmbal_u8_list_u32_pack(const bcmbal_u8_list_u32 *this, bcmbal_buf *buf); |
| 1899 | |
| 1900 | /** Gets the number of bytes that a bcmbal_u8_list_u32 would occupy on the wire |
| 1901 | * |
| 1902 | * \return The structure size in bytes |
| 1903 | */ |
| 1904 | uint32_t bcmbal_u8_list_u32_get_packed_length(const bcmbal_u8_list_u32 *this); |
| 1905 | |
| 1906 | /** Unpacks a bcmbal_u8_list_u32 from bytes |
| 1907 | * |
| 1908 | * \param this Pointer to the object to unpack |
| 1909 | * \param buf Pointer to the buffer to read from |
| 1910 | * \param extra_mem Pointer to the first location in memory to use to store |
| 1911 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 1912 | * a NULL pointer is encountered. |
| 1913 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 1914 | */ |
| 1915 | bcmos_bool bcmbal_u8_list_u32_unpack(bcmbal_u8_list_u32 *this, bcmbal_buf *buf, void **extra_mem); |
| 1916 | |
| 1917 | /** Scans past a packed bcmbal_u8_list_u32 struct and collects memory |
| 1918 | * requirements above and beyond sizeof() |
| 1919 | * |
| 1920 | * \param packed A stream pointing to the packed byte stream |
| 1921 | * \param extra_mem Number of additional storage bytes required |
| 1922 | * \return TRUE on success, FALSE on failure |
| 1923 | */ |
| 1924 | bcmos_bool bcmbal_u8_list_u32_scan(bcmbal_buf *packed, uint32_t *extra_mem); |
| 1925 | |
| 1926 | /** Checks if any field in the bcmbal_u8_list_u32 is out of bounds |
| 1927 | * |
| 1928 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 1929 | */ |
| 1930 | bcmos_bool bcmbal_u8_list_u32_bounds_check(const bcmbal_u8_list_u32 *this); |
| 1931 | |
| 1932 | /** Initializes a bcmbal_access_terminal_key struct. This sets all fields to |
| 1933 | * default values. |
| 1934 | * |
| 1935 | * \param this Pointer to the structure |
| 1936 | * \param fields_present Bitmask of which fields are present in the structure. |
| 1937 | */ |
| 1938 | void bcmbal_access_terminal_key_set_default(bcmbal_access_terminal_key *this, bcmbal_presence_mask fields_present); |
| 1939 | |
| 1940 | /** Packs a bcmbal_access_terminal_key to bytes |
| 1941 | * |
| 1942 | * \param this Pointer to the object to pack |
| 1943 | * \param buf Pointer to the buffer to write to |
| 1944 | * \param fields_present Bitmask of which fields are present in the structure. |
| 1945 | * \return TRUE if the pack was successful, FALSE otherwise |
| 1946 | */ |
| 1947 | bcmos_bool bcmbal_access_terminal_key_pack(const bcmbal_access_terminal_key *this, bcmbal_buf *buf, bcmbal_presence_mask fields_present); |
| 1948 | |
| 1949 | /** Gets the number of bytes that a bcmbal_access_terminal_key would occupy on |
| 1950 | * the wire |
| 1951 | * |
| 1952 | * \param fields_present Bitmask of which fields are present in the structure. |
| 1953 | * \return The structure size in bytes |
| 1954 | */ |
| 1955 | uint32_t bcmbal_access_terminal_key_get_packed_length(const bcmbal_access_terminal_key *this, bcmbal_presence_mask fields_present); |
| 1956 | |
| 1957 | /** Unpacks a bcmbal_access_terminal_key from bytes |
| 1958 | * |
| 1959 | * \param this Pointer to the object to unpack |
| 1960 | * \param buf Pointer to the buffer to read from |
| 1961 | * \param extra_mem Pointer to the first location in memory to use to store |
| 1962 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 1963 | * a NULL pointer is encountered. |
| 1964 | * \param fields_present Bitmask of which fields are present in the structure. |
| 1965 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 1966 | */ |
| 1967 | bcmos_bool bcmbal_access_terminal_key_unpack(bcmbal_access_terminal_key *this, bcmbal_buf *buf, void **extra_mem, bcmbal_presence_mask fields_present); |
| 1968 | |
| 1969 | /** Scans past a packed bcmbal_access_terminal_key struct and collects memory |
| 1970 | * requirements above and beyond sizeof() |
| 1971 | * |
| 1972 | * \param packed A stream pointing to the packed byte stream |
| 1973 | * \param extra_mem Number of additional storage bytes required |
| 1974 | * \param fields_present Bitmask of which fields are present in the structure. |
| 1975 | * \return TRUE on success, FALSE on failure |
| 1976 | */ |
| 1977 | bcmos_bool bcmbal_access_terminal_key_scan(bcmbal_buf *packed, uint32_t *extra_mem, bcmbal_presence_mask fields_present); |
| 1978 | |
| 1979 | /** Checks if any field in the bcmbal_access_terminal_key is out of bounds |
| 1980 | * |
| 1981 | * \param fields_present Bitmask of which fields are present in the structure. |
| 1982 | * \param failed_prop Reference to the property that was out of range (only set |
| 1983 | * on failure) |
| 1984 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 1985 | */ |
| 1986 | bcmos_bool bcmbal_access_terminal_key_bounds_check(const bcmbal_access_terminal_key *this, bcmbal_presence_mask fields_present, bcmbal_access_terminal_key_id *failed_prop); |
| 1987 | |
| 1988 | /** Initializes a bcmbal_access_terminal_cfg_data struct. This sets all fields |
| 1989 | * to default values. |
| 1990 | * |
| 1991 | * \param this Pointer to the structure |
| 1992 | * \param fields_present Bitmask of which fields are present in the structure. |
| 1993 | */ |
| 1994 | void bcmbal_access_terminal_cfg_data_set_default(bcmbal_access_terminal_cfg_data *this, bcmbal_presence_mask fields_present); |
| 1995 | |
| 1996 | /** Packs a bcmbal_access_terminal_cfg_data to bytes |
| 1997 | * |
| 1998 | * \param this Pointer to the object to pack |
| 1999 | * \param buf Pointer to the buffer to write to |
| 2000 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2001 | * \return TRUE if the pack was successful, FALSE otherwise |
| 2002 | */ |
| 2003 | bcmos_bool bcmbal_access_terminal_cfg_data_pack(const bcmbal_access_terminal_cfg_data *this, bcmbal_buf *buf, bcmbal_presence_mask fields_present); |
| 2004 | |
| 2005 | /** Gets the number of bytes that a bcmbal_access_terminal_cfg_data would occupy |
| 2006 | * on the wire |
| 2007 | * |
| 2008 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2009 | * \return The structure size in bytes |
| 2010 | */ |
| 2011 | uint32_t bcmbal_access_terminal_cfg_data_get_packed_length(const bcmbal_access_terminal_cfg_data *this, bcmbal_presence_mask fields_present); |
| 2012 | |
| 2013 | /** Unpacks a bcmbal_access_terminal_cfg_data from bytes |
| 2014 | * |
| 2015 | * \param this Pointer to the object to unpack |
| 2016 | * \param buf Pointer to the buffer to read from |
| 2017 | * \param extra_mem Pointer to the first location in memory to use to store |
| 2018 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 2019 | * a NULL pointer is encountered. |
| 2020 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2021 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 2022 | */ |
| 2023 | bcmos_bool bcmbal_access_terminal_cfg_data_unpack(bcmbal_access_terminal_cfg_data *this, bcmbal_buf *buf, void **extra_mem, bcmbal_presence_mask fields_present); |
| 2024 | |
| 2025 | /** Scans past a packed bcmbal_access_terminal_cfg_data struct and collects |
| 2026 | * memory requirements above and beyond sizeof() |
| 2027 | * |
| 2028 | * \param packed A stream pointing to the packed byte stream |
| 2029 | * \param extra_mem Number of additional storage bytes required |
| 2030 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2031 | * \return TRUE on success, FALSE on failure |
| 2032 | */ |
| 2033 | bcmos_bool bcmbal_access_terminal_cfg_data_scan(bcmbal_buf *packed, uint32_t *extra_mem, bcmbal_presence_mask fields_present); |
| 2034 | |
| 2035 | /** Checks if any field in the bcmbal_access_terminal_cfg_data is out of bounds |
| 2036 | * |
| 2037 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2038 | * \param failed_prop Reference to the property that was out of range (only set |
| 2039 | * on failure) |
| 2040 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 2041 | */ |
| 2042 | bcmos_bool bcmbal_access_terminal_cfg_data_bounds_check(const bcmbal_access_terminal_cfg_data *this, bcmbal_presence_mask fields_present, bcmbal_access_terminal_cfg_id *failed_prop); |
| 2043 | |
| 2044 | /** Initializes a bcmbal_access_terminal_ind_data struct. This sets all fields |
| 2045 | * to default values. |
| 2046 | * |
| 2047 | * \param this Pointer to the structure |
| 2048 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2049 | */ |
| 2050 | void bcmbal_access_terminal_ind_data_set_default(bcmbal_access_terminal_ind_data *this, bcmbal_presence_mask fields_present); |
| 2051 | |
| 2052 | /** Packs a bcmbal_access_terminal_ind_data to bytes |
| 2053 | * |
| 2054 | * \param this Pointer to the object to pack |
| 2055 | * \param buf Pointer to the buffer to write to |
| 2056 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2057 | * \return TRUE if the pack was successful, FALSE otherwise |
| 2058 | */ |
| 2059 | bcmos_bool bcmbal_access_terminal_ind_data_pack(const bcmbal_access_terminal_ind_data *this, bcmbal_buf *buf, bcmbal_presence_mask fields_present); |
| 2060 | |
| 2061 | /** Gets the number of bytes that a bcmbal_access_terminal_ind_data would occupy |
| 2062 | * on the wire |
| 2063 | * |
| 2064 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2065 | * \return The structure size in bytes |
| 2066 | */ |
| 2067 | uint32_t bcmbal_access_terminal_ind_data_get_packed_length(const bcmbal_access_terminal_ind_data *this, bcmbal_presence_mask fields_present); |
| 2068 | |
| 2069 | /** Unpacks a bcmbal_access_terminal_ind_data from bytes |
| 2070 | * |
| 2071 | * \param this Pointer to the object to unpack |
| 2072 | * \param buf Pointer to the buffer to read from |
| 2073 | * \param extra_mem Pointer to the first location in memory to use to store |
| 2074 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 2075 | * a NULL pointer is encountered. |
| 2076 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2077 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 2078 | */ |
| 2079 | bcmos_bool bcmbal_access_terminal_ind_data_unpack(bcmbal_access_terminal_ind_data *this, bcmbal_buf *buf, void **extra_mem, bcmbal_presence_mask fields_present); |
| 2080 | |
| 2081 | /** Scans past a packed bcmbal_access_terminal_ind_data struct and collects |
| 2082 | * memory requirements above and beyond sizeof() |
| 2083 | * |
| 2084 | * \param packed A stream pointing to the packed byte stream |
| 2085 | * \param extra_mem Number of additional storage bytes required |
| 2086 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2087 | * \return TRUE on success, FALSE on failure |
| 2088 | */ |
| 2089 | bcmos_bool bcmbal_access_terminal_ind_data_scan(bcmbal_buf *packed, uint32_t *extra_mem, bcmbal_presence_mask fields_present); |
| 2090 | |
| 2091 | /** Checks if any field in the bcmbal_access_terminal_ind_data is out of bounds |
| 2092 | * |
| 2093 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2094 | * \param failed_prop Reference to the property that was out of range (only set |
| 2095 | * on failure) |
| 2096 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 2097 | */ |
| 2098 | bcmos_bool bcmbal_access_terminal_ind_data_bounds_check(const bcmbal_access_terminal_ind_data *this, bcmbal_presence_mask fields_present, bcmbal_access_terminal_ind_id *failed_prop); |
| 2099 | |
| 2100 | /** Initializes a bcmbal_flow_key struct. This sets all fields to default |
| 2101 | * values. |
| 2102 | * |
| 2103 | * \param this Pointer to the structure |
| 2104 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2105 | */ |
| 2106 | void bcmbal_flow_key_set_default(bcmbal_flow_key *this, bcmbal_presence_mask fields_present); |
| 2107 | |
| 2108 | /** Packs a bcmbal_flow_key to bytes |
| 2109 | * |
| 2110 | * \param this Pointer to the object to pack |
| 2111 | * \param buf Pointer to the buffer to write to |
| 2112 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2113 | * \return TRUE if the pack was successful, FALSE otherwise |
| 2114 | */ |
| 2115 | bcmos_bool bcmbal_flow_key_pack(const bcmbal_flow_key *this, bcmbal_buf *buf, bcmbal_presence_mask fields_present); |
| 2116 | |
| 2117 | /** Gets the number of bytes that a bcmbal_flow_key would occupy on the wire |
| 2118 | * |
| 2119 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2120 | * \return The structure size in bytes |
| 2121 | */ |
| 2122 | uint32_t bcmbal_flow_key_get_packed_length(const bcmbal_flow_key *this, bcmbal_presence_mask fields_present); |
| 2123 | |
| 2124 | /** Unpacks a bcmbal_flow_key from bytes |
| 2125 | * |
| 2126 | * \param this Pointer to the object to unpack |
| 2127 | * \param buf Pointer to the buffer to read from |
| 2128 | * \param extra_mem Pointer to the first location in memory to use to store |
| 2129 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 2130 | * a NULL pointer is encountered. |
| 2131 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2132 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 2133 | */ |
| 2134 | bcmos_bool bcmbal_flow_key_unpack(bcmbal_flow_key *this, bcmbal_buf *buf, void **extra_mem, bcmbal_presence_mask fields_present); |
| 2135 | |
| 2136 | /** Scans past a packed bcmbal_flow_key struct and collects memory requirements |
| 2137 | * above and beyond sizeof() |
| 2138 | * |
| 2139 | * \param packed A stream pointing to the packed byte stream |
| 2140 | * \param extra_mem Number of additional storage bytes required |
| 2141 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2142 | * \return TRUE on success, FALSE on failure |
| 2143 | */ |
| 2144 | bcmos_bool bcmbal_flow_key_scan(bcmbal_buf *packed, uint32_t *extra_mem, bcmbal_presence_mask fields_present); |
| 2145 | |
| 2146 | /** Checks if any field in the bcmbal_flow_key is out of bounds |
| 2147 | * |
| 2148 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2149 | * \param failed_prop Reference to the property that was out of range (only set |
| 2150 | * on failure) |
| 2151 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 2152 | */ |
| 2153 | bcmos_bool bcmbal_flow_key_bounds_check(const bcmbal_flow_key *this, bcmbal_presence_mask fields_present, bcmbal_flow_key_id *failed_prop); |
| 2154 | |
| 2155 | /** Initializes a bcmbal_flow_cfg_data struct. This sets all fields to default |
| 2156 | * values. |
| 2157 | * |
| 2158 | * \param this Pointer to the structure |
| 2159 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2160 | */ |
| 2161 | void bcmbal_flow_cfg_data_set_default(bcmbal_flow_cfg_data *this, bcmbal_presence_mask fields_present); |
| 2162 | |
| 2163 | /** Packs a bcmbal_flow_cfg_data to bytes |
| 2164 | * |
| 2165 | * \param this Pointer to the object to pack |
| 2166 | * \param buf Pointer to the buffer to write to |
| 2167 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2168 | * \return TRUE if the pack was successful, FALSE otherwise |
| 2169 | */ |
| 2170 | bcmos_bool bcmbal_flow_cfg_data_pack(const bcmbal_flow_cfg_data *this, bcmbal_buf *buf, bcmbal_presence_mask fields_present); |
| 2171 | |
| 2172 | /** Gets the number of bytes that a bcmbal_flow_cfg_data would occupy on the |
| 2173 | * wire |
| 2174 | * |
| 2175 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2176 | * \return The structure size in bytes |
| 2177 | */ |
| 2178 | uint32_t bcmbal_flow_cfg_data_get_packed_length(const bcmbal_flow_cfg_data *this, bcmbal_presence_mask fields_present); |
| 2179 | |
| 2180 | /** Unpacks a bcmbal_flow_cfg_data from bytes |
| 2181 | * |
| 2182 | * \param this Pointer to the object to unpack |
| 2183 | * \param buf Pointer to the buffer to read from |
| 2184 | * \param extra_mem Pointer to the first location in memory to use to store |
| 2185 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 2186 | * a NULL pointer is encountered. |
| 2187 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2188 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 2189 | */ |
| 2190 | bcmos_bool bcmbal_flow_cfg_data_unpack(bcmbal_flow_cfg_data *this, bcmbal_buf *buf, void **extra_mem, bcmbal_presence_mask fields_present); |
| 2191 | |
| 2192 | /** Scans past a packed bcmbal_flow_cfg_data struct and collects memory |
| 2193 | * requirements above and beyond sizeof() |
| 2194 | * |
| 2195 | * \param packed A stream pointing to the packed byte stream |
| 2196 | * \param extra_mem Number of additional storage bytes required |
| 2197 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2198 | * \return TRUE on success, FALSE on failure |
| 2199 | */ |
| 2200 | bcmos_bool bcmbal_flow_cfg_data_scan(bcmbal_buf *packed, uint32_t *extra_mem, bcmbal_presence_mask fields_present); |
| 2201 | |
| 2202 | /** Checks if any field in the bcmbal_flow_cfg_data is out of bounds |
| 2203 | * |
| 2204 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2205 | * \param failed_prop Reference to the property that was out of range (only set |
| 2206 | * on failure) |
| 2207 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 2208 | */ |
| 2209 | bcmos_bool bcmbal_flow_cfg_data_bounds_check(const bcmbal_flow_cfg_data *this, bcmbal_presence_mask fields_present, bcmbal_flow_cfg_id *failed_prop); |
| 2210 | |
| 2211 | /** Initializes a bcmbal_flow_stat_data struct. This sets all fields to default |
| 2212 | * values. |
| 2213 | * |
| 2214 | * \param this Pointer to the structure |
| 2215 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2216 | */ |
| 2217 | void bcmbal_flow_stat_data_set_default(bcmbal_flow_stat_data *this, bcmbal_presence_mask fields_present); |
| 2218 | |
| 2219 | /** Packs a bcmbal_flow_stat_data to bytes |
| 2220 | * |
| 2221 | * \param this Pointer to the object to pack |
| 2222 | * \param buf Pointer to the buffer to write to |
| 2223 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2224 | * \return TRUE if the pack was successful, FALSE otherwise |
| 2225 | */ |
| 2226 | bcmos_bool bcmbal_flow_stat_data_pack(const bcmbal_flow_stat_data *this, bcmbal_buf *buf, bcmbal_presence_mask fields_present); |
| 2227 | |
| 2228 | /** Gets the number of bytes that a bcmbal_flow_stat_data would occupy on the |
| 2229 | * wire |
| 2230 | * |
| 2231 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2232 | * \return The structure size in bytes |
| 2233 | */ |
| 2234 | uint32_t bcmbal_flow_stat_data_get_packed_length(const bcmbal_flow_stat_data *this, bcmbal_presence_mask fields_present); |
| 2235 | |
| 2236 | /** Unpacks a bcmbal_flow_stat_data from bytes |
| 2237 | * |
| 2238 | * \param this Pointer to the object to unpack |
| 2239 | * \param buf Pointer to the buffer to read from |
| 2240 | * \param extra_mem Pointer to the first location in memory to use to store |
| 2241 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 2242 | * a NULL pointer is encountered. |
| 2243 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2244 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 2245 | */ |
| 2246 | bcmos_bool bcmbal_flow_stat_data_unpack(bcmbal_flow_stat_data *this, bcmbal_buf *buf, void **extra_mem, bcmbal_presence_mask fields_present); |
| 2247 | |
| 2248 | /** Scans past a packed bcmbal_flow_stat_data struct and collects memory |
| 2249 | * requirements above and beyond sizeof() |
| 2250 | * |
| 2251 | * \param packed A stream pointing to the packed byte stream |
| 2252 | * \param extra_mem Number of additional storage bytes required |
| 2253 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2254 | * \return TRUE on success, FALSE on failure |
| 2255 | */ |
| 2256 | bcmos_bool bcmbal_flow_stat_data_scan(bcmbal_buf *packed, uint32_t *extra_mem, bcmbal_presence_mask fields_present); |
| 2257 | |
| 2258 | /** Checks if any field in the bcmbal_flow_stat_data is out of bounds |
| 2259 | * |
| 2260 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2261 | * \param failed_prop Reference to the property that was out of range (only set |
| 2262 | * on failure) |
| 2263 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 2264 | */ |
| 2265 | bcmos_bool bcmbal_flow_stat_data_bounds_check(const bcmbal_flow_stat_data *this, bcmbal_presence_mask fields_present, bcmbal_flow_stat_id *failed_prop); |
| 2266 | |
| 2267 | /** Initializes a bcmbal_flow_ind_data struct. This sets all fields to default |
| 2268 | * values. |
| 2269 | * |
| 2270 | * \param this Pointer to the structure |
| 2271 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2272 | */ |
| 2273 | void bcmbal_flow_ind_data_set_default(bcmbal_flow_ind_data *this, bcmbal_presence_mask fields_present); |
| 2274 | |
| 2275 | /** Packs a bcmbal_flow_ind_data to bytes |
| 2276 | * |
| 2277 | * \param this Pointer to the object to pack |
| 2278 | * \param buf Pointer to the buffer to write to |
| 2279 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2280 | * \return TRUE if the pack was successful, FALSE otherwise |
| 2281 | */ |
| 2282 | bcmos_bool bcmbal_flow_ind_data_pack(const bcmbal_flow_ind_data *this, bcmbal_buf *buf, bcmbal_presence_mask fields_present); |
| 2283 | |
| 2284 | /** Gets the number of bytes that a bcmbal_flow_ind_data would occupy on the |
| 2285 | * wire |
| 2286 | * |
| 2287 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2288 | * \return The structure size in bytes |
| 2289 | */ |
| 2290 | uint32_t bcmbal_flow_ind_data_get_packed_length(const bcmbal_flow_ind_data *this, bcmbal_presence_mask fields_present); |
| 2291 | |
| 2292 | /** Unpacks a bcmbal_flow_ind_data from bytes |
| 2293 | * |
| 2294 | * \param this Pointer to the object to unpack |
| 2295 | * \param buf Pointer to the buffer to read from |
| 2296 | * \param extra_mem Pointer to the first location in memory to use to store |
| 2297 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 2298 | * a NULL pointer is encountered. |
| 2299 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2300 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 2301 | */ |
| 2302 | bcmos_bool bcmbal_flow_ind_data_unpack(bcmbal_flow_ind_data *this, bcmbal_buf *buf, void **extra_mem, bcmbal_presence_mask fields_present); |
| 2303 | |
| 2304 | /** Scans past a packed bcmbal_flow_ind_data struct and collects memory |
| 2305 | * requirements above and beyond sizeof() |
| 2306 | * |
| 2307 | * \param packed A stream pointing to the packed byte stream |
| 2308 | * \param extra_mem Number of additional storage bytes required |
| 2309 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2310 | * \return TRUE on success, FALSE on failure |
| 2311 | */ |
| 2312 | bcmos_bool bcmbal_flow_ind_data_scan(bcmbal_buf *packed, uint32_t *extra_mem, bcmbal_presence_mask fields_present); |
| 2313 | |
| 2314 | /** Checks if any field in the bcmbal_flow_ind_data is out of bounds |
| 2315 | * |
| 2316 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2317 | * \param failed_prop Reference to the property that was out of range (only set |
| 2318 | * on failure) |
| 2319 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 2320 | */ |
| 2321 | bcmos_bool bcmbal_flow_ind_data_bounds_check(const bcmbal_flow_ind_data *this, bcmbal_presence_mask fields_present, bcmbal_flow_ind_id *failed_prop); |
| 2322 | |
| 2323 | /** Initializes a bcmbal_group_key struct. This sets all fields to default |
| 2324 | * values. |
| 2325 | * |
| 2326 | * \param this Pointer to the structure |
| 2327 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2328 | */ |
| 2329 | void bcmbal_group_key_set_default(bcmbal_group_key *this, bcmbal_presence_mask fields_present); |
| 2330 | |
| 2331 | /** Packs a bcmbal_group_key to bytes |
| 2332 | * |
| 2333 | * \param this Pointer to the object to pack |
| 2334 | * \param buf Pointer to the buffer to write to |
| 2335 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2336 | * \return TRUE if the pack was successful, FALSE otherwise |
| 2337 | */ |
| 2338 | bcmos_bool bcmbal_group_key_pack(const bcmbal_group_key *this, bcmbal_buf *buf, bcmbal_presence_mask fields_present); |
| 2339 | |
| 2340 | /** Gets the number of bytes that a bcmbal_group_key would occupy on the wire |
| 2341 | * |
| 2342 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2343 | * \return The structure size in bytes |
| 2344 | */ |
| 2345 | uint32_t bcmbal_group_key_get_packed_length(const bcmbal_group_key *this, bcmbal_presence_mask fields_present); |
| 2346 | |
| 2347 | /** Unpacks a bcmbal_group_key from bytes |
| 2348 | * |
| 2349 | * \param this Pointer to the object to unpack |
| 2350 | * \param buf Pointer to the buffer to read from |
| 2351 | * \param extra_mem Pointer to the first location in memory to use to store |
| 2352 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 2353 | * a NULL pointer is encountered. |
| 2354 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2355 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 2356 | */ |
| 2357 | bcmos_bool bcmbal_group_key_unpack(bcmbal_group_key *this, bcmbal_buf *buf, void **extra_mem, bcmbal_presence_mask fields_present); |
| 2358 | |
| 2359 | /** Scans past a packed bcmbal_group_key struct and collects memory requirements |
| 2360 | * above and beyond sizeof() |
| 2361 | * |
| 2362 | * \param packed A stream pointing to the packed byte stream |
| 2363 | * \param extra_mem Number of additional storage bytes required |
| 2364 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2365 | * \return TRUE on success, FALSE on failure |
| 2366 | */ |
| 2367 | bcmos_bool bcmbal_group_key_scan(bcmbal_buf *packed, uint32_t *extra_mem, bcmbal_presence_mask fields_present); |
| 2368 | |
| 2369 | /** Checks if any field in the bcmbal_group_key is out of bounds |
| 2370 | * |
| 2371 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2372 | * \param failed_prop Reference to the property that was out of range (only set |
| 2373 | * on failure) |
| 2374 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 2375 | */ |
| 2376 | bcmos_bool bcmbal_group_key_bounds_check(const bcmbal_group_key *this, bcmbal_presence_mask fields_present, bcmbal_group_key_id *failed_prop); |
| 2377 | |
| 2378 | /** Initializes a bcmbal_group_cfg_data struct. This sets all fields to default |
| 2379 | * values. |
| 2380 | * |
| 2381 | * \param this Pointer to the structure |
| 2382 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2383 | */ |
| 2384 | void bcmbal_group_cfg_data_set_default(bcmbal_group_cfg_data *this, bcmbal_presence_mask fields_present); |
| 2385 | |
| 2386 | /** Packs a bcmbal_group_cfg_data to bytes |
| 2387 | * |
| 2388 | * \param this Pointer to the object to pack |
| 2389 | * \param buf Pointer to the buffer to write to |
| 2390 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2391 | * \return TRUE if the pack was successful, FALSE otherwise |
| 2392 | */ |
| 2393 | bcmos_bool bcmbal_group_cfg_data_pack(const bcmbal_group_cfg_data *this, bcmbal_buf *buf, bcmbal_presence_mask fields_present); |
| 2394 | |
| 2395 | /** Gets the number of bytes that a bcmbal_group_cfg_data would occupy on the |
| 2396 | * wire |
| 2397 | * |
| 2398 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2399 | * \return The structure size in bytes |
| 2400 | */ |
| 2401 | uint32_t bcmbal_group_cfg_data_get_packed_length(const bcmbal_group_cfg_data *this, bcmbal_presence_mask fields_present); |
| 2402 | |
| 2403 | /** Unpacks a bcmbal_group_cfg_data from bytes |
| 2404 | * |
| 2405 | * \param this Pointer to the object to unpack |
| 2406 | * \param buf Pointer to the buffer to read from |
| 2407 | * \param extra_mem Pointer to the first location in memory to use to store |
| 2408 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 2409 | * a NULL pointer is encountered. |
| 2410 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2411 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 2412 | */ |
| 2413 | bcmos_bool bcmbal_group_cfg_data_unpack(bcmbal_group_cfg_data *this, bcmbal_buf *buf, void **extra_mem, bcmbal_presence_mask fields_present); |
| 2414 | |
| 2415 | /** Scans past a packed bcmbal_group_cfg_data struct and collects memory |
| 2416 | * requirements above and beyond sizeof() |
| 2417 | * |
| 2418 | * \param packed A stream pointing to the packed byte stream |
| 2419 | * \param extra_mem Number of additional storage bytes required |
| 2420 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2421 | * \return TRUE on success, FALSE on failure |
| 2422 | */ |
| 2423 | bcmos_bool bcmbal_group_cfg_data_scan(bcmbal_buf *packed, uint32_t *extra_mem, bcmbal_presence_mask fields_present); |
| 2424 | |
| 2425 | /** Checks if any field in the bcmbal_group_cfg_data is out of bounds |
| 2426 | * |
| 2427 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2428 | * \param failed_prop Reference to the property that was out of range (only set |
| 2429 | * on failure) |
| 2430 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 2431 | */ |
| 2432 | bcmos_bool bcmbal_group_cfg_data_bounds_check(const bcmbal_group_cfg_data *this, bcmbal_presence_mask fields_present, bcmbal_group_cfg_id *failed_prop); |
| 2433 | |
| 2434 | /** Initializes a bcmbal_interface_key struct. This sets all fields to default |
| 2435 | * values. |
| 2436 | * |
| 2437 | * \param this Pointer to the structure |
| 2438 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2439 | */ |
| 2440 | void bcmbal_interface_key_set_default(bcmbal_interface_key *this, bcmbal_presence_mask fields_present); |
| 2441 | |
| 2442 | /** Packs a bcmbal_interface_key to bytes |
| 2443 | * |
| 2444 | * \param this Pointer to the object to pack |
| 2445 | * \param buf Pointer to the buffer to write to |
| 2446 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2447 | * \return TRUE if the pack was successful, FALSE otherwise |
| 2448 | */ |
| 2449 | bcmos_bool bcmbal_interface_key_pack(const bcmbal_interface_key *this, bcmbal_buf *buf, bcmbal_presence_mask fields_present); |
| 2450 | |
| 2451 | /** Gets the number of bytes that a bcmbal_interface_key would occupy on the |
| 2452 | * wire |
| 2453 | * |
| 2454 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2455 | * \return The structure size in bytes |
| 2456 | */ |
| 2457 | uint32_t bcmbal_interface_key_get_packed_length(const bcmbal_interface_key *this, bcmbal_presence_mask fields_present); |
| 2458 | |
| 2459 | /** Unpacks a bcmbal_interface_key from bytes |
| 2460 | * |
| 2461 | * \param this Pointer to the object to unpack |
| 2462 | * \param buf Pointer to the buffer to read from |
| 2463 | * \param extra_mem Pointer to the first location in memory to use to store |
| 2464 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 2465 | * a NULL pointer is encountered. |
| 2466 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2467 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 2468 | */ |
| 2469 | bcmos_bool bcmbal_interface_key_unpack(bcmbal_interface_key *this, bcmbal_buf *buf, void **extra_mem, bcmbal_presence_mask fields_present); |
| 2470 | |
| 2471 | /** Scans past a packed bcmbal_interface_key struct and collects memory |
| 2472 | * requirements above and beyond sizeof() |
| 2473 | * |
| 2474 | * \param packed A stream pointing to the packed byte stream |
| 2475 | * \param extra_mem Number of additional storage bytes required |
| 2476 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2477 | * \return TRUE on success, FALSE on failure |
| 2478 | */ |
| 2479 | bcmos_bool bcmbal_interface_key_scan(bcmbal_buf *packed, uint32_t *extra_mem, bcmbal_presence_mask fields_present); |
| 2480 | |
| 2481 | /** Checks if any field in the bcmbal_interface_key is out of bounds |
| 2482 | * |
| 2483 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2484 | * \param failed_prop Reference to the property that was out of range (only set |
| 2485 | * on failure) |
| 2486 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 2487 | */ |
| 2488 | bcmos_bool bcmbal_interface_key_bounds_check(const bcmbal_interface_key *this, bcmbal_presence_mask fields_present, bcmbal_interface_key_id *failed_prop); |
| 2489 | |
| 2490 | /** Initializes a bcmbal_interface_cfg_data struct. This sets all fields to |
| 2491 | * default values. |
| 2492 | * |
| 2493 | * \param this Pointer to the structure |
| 2494 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2495 | */ |
| 2496 | void bcmbal_interface_cfg_data_set_default(bcmbal_interface_cfg_data *this, bcmbal_presence_mask fields_present); |
| 2497 | |
| 2498 | /** Packs a bcmbal_interface_cfg_data to bytes |
| 2499 | * |
| 2500 | * \param this Pointer to the object to pack |
| 2501 | * \param buf Pointer to the buffer to write to |
| 2502 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2503 | * \return TRUE if the pack was successful, FALSE otherwise |
| 2504 | */ |
| 2505 | bcmos_bool bcmbal_interface_cfg_data_pack(const bcmbal_interface_cfg_data *this, bcmbal_buf *buf, bcmbal_presence_mask fields_present); |
| 2506 | |
| 2507 | /** Gets the number of bytes that a bcmbal_interface_cfg_data would occupy on |
| 2508 | * the wire |
| 2509 | * |
| 2510 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2511 | * \return The structure size in bytes |
| 2512 | */ |
| 2513 | uint32_t bcmbal_interface_cfg_data_get_packed_length(const bcmbal_interface_cfg_data *this, bcmbal_presence_mask fields_present); |
| 2514 | |
| 2515 | /** Unpacks a bcmbal_interface_cfg_data from bytes |
| 2516 | * |
| 2517 | * \param this Pointer to the object to unpack |
| 2518 | * \param buf Pointer to the buffer to read from |
| 2519 | * \param extra_mem Pointer to the first location in memory to use to store |
| 2520 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 2521 | * a NULL pointer is encountered. |
| 2522 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2523 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 2524 | */ |
| 2525 | bcmos_bool bcmbal_interface_cfg_data_unpack(bcmbal_interface_cfg_data *this, bcmbal_buf *buf, void **extra_mem, bcmbal_presence_mask fields_present); |
| 2526 | |
| 2527 | /** Scans past a packed bcmbal_interface_cfg_data struct and collects memory |
| 2528 | * requirements above and beyond sizeof() |
| 2529 | * |
| 2530 | * \param packed A stream pointing to the packed byte stream |
| 2531 | * \param extra_mem Number of additional storage bytes required |
| 2532 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2533 | * \return TRUE on success, FALSE on failure |
| 2534 | */ |
| 2535 | bcmos_bool bcmbal_interface_cfg_data_scan(bcmbal_buf *packed, uint32_t *extra_mem, bcmbal_presence_mask fields_present); |
| 2536 | |
| 2537 | /** Checks if any field in the bcmbal_interface_cfg_data is out of bounds |
| 2538 | * |
| 2539 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2540 | * \param failed_prop Reference to the property that was out of range (only set |
| 2541 | * on failure) |
| 2542 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 2543 | */ |
| 2544 | bcmos_bool bcmbal_interface_cfg_data_bounds_check(const bcmbal_interface_cfg_data *this, bcmbal_presence_mask fields_present, bcmbal_interface_cfg_id *failed_prop); |
| 2545 | |
| 2546 | /** Initializes a bcmbal_interface_stat_data struct. This sets all fields to |
| 2547 | * default values. |
| 2548 | * |
| 2549 | * \param this Pointer to the structure |
| 2550 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2551 | */ |
| 2552 | void bcmbal_interface_stat_data_set_default(bcmbal_interface_stat_data *this, bcmbal_presence_mask fields_present); |
| 2553 | |
| 2554 | /** Packs a bcmbal_interface_stat_data to bytes |
| 2555 | * |
| 2556 | * \param this Pointer to the object to pack |
| 2557 | * \param buf Pointer to the buffer to write to |
| 2558 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2559 | * \return TRUE if the pack was successful, FALSE otherwise |
| 2560 | */ |
| 2561 | bcmos_bool bcmbal_interface_stat_data_pack(const bcmbal_interface_stat_data *this, bcmbal_buf *buf, bcmbal_presence_mask fields_present); |
| 2562 | |
| 2563 | /** Gets the number of bytes that a bcmbal_interface_stat_data would occupy on |
| 2564 | * the wire |
| 2565 | * |
| 2566 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2567 | * \return The structure size in bytes |
| 2568 | */ |
| 2569 | uint32_t bcmbal_interface_stat_data_get_packed_length(const bcmbal_interface_stat_data *this, bcmbal_presence_mask fields_present); |
| 2570 | |
| 2571 | /** Unpacks a bcmbal_interface_stat_data from bytes |
| 2572 | * |
| 2573 | * \param this Pointer to the object to unpack |
| 2574 | * \param buf Pointer to the buffer to read from |
| 2575 | * \param extra_mem Pointer to the first location in memory to use to store |
| 2576 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 2577 | * a NULL pointer is encountered. |
| 2578 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2579 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 2580 | */ |
| 2581 | bcmos_bool bcmbal_interface_stat_data_unpack(bcmbal_interface_stat_data *this, bcmbal_buf *buf, void **extra_mem, bcmbal_presence_mask fields_present); |
| 2582 | |
| 2583 | /** Scans past a packed bcmbal_interface_stat_data struct and collects memory |
| 2584 | * requirements above and beyond sizeof() |
| 2585 | * |
| 2586 | * \param packed A stream pointing to the packed byte stream |
| 2587 | * \param extra_mem Number of additional storage bytes required |
| 2588 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2589 | * \return TRUE on success, FALSE on failure |
| 2590 | */ |
| 2591 | bcmos_bool bcmbal_interface_stat_data_scan(bcmbal_buf *packed, uint32_t *extra_mem, bcmbal_presence_mask fields_present); |
| 2592 | |
| 2593 | /** Checks if any field in the bcmbal_interface_stat_data is out of bounds |
| 2594 | * |
| 2595 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2596 | * \param failed_prop Reference to the property that was out of range (only set |
| 2597 | * on failure) |
| 2598 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 2599 | */ |
| 2600 | bcmos_bool bcmbal_interface_stat_data_bounds_check(const bcmbal_interface_stat_data *this, bcmbal_presence_mask fields_present, bcmbal_interface_stat_id *failed_prop); |
| 2601 | |
| 2602 | /** Initializes a bcmbal_interface_ind_data struct. This sets all fields to |
| 2603 | * default values. |
| 2604 | * |
| 2605 | * \param this Pointer to the structure |
| 2606 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2607 | */ |
| 2608 | void bcmbal_interface_ind_data_set_default(bcmbal_interface_ind_data *this, bcmbal_presence_mask fields_present); |
| 2609 | |
| 2610 | /** Packs a bcmbal_interface_ind_data to bytes |
| 2611 | * |
| 2612 | * \param this Pointer to the object to pack |
| 2613 | * \param buf Pointer to the buffer to write to |
| 2614 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2615 | * \return TRUE if the pack was successful, FALSE otherwise |
| 2616 | */ |
| 2617 | bcmos_bool bcmbal_interface_ind_data_pack(const bcmbal_interface_ind_data *this, bcmbal_buf *buf, bcmbal_presence_mask fields_present); |
| 2618 | |
| 2619 | /** Gets the number of bytes that a bcmbal_interface_ind_data would occupy on |
| 2620 | * the wire |
| 2621 | * |
| 2622 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2623 | * \return The structure size in bytes |
| 2624 | */ |
| 2625 | uint32_t bcmbal_interface_ind_data_get_packed_length(const bcmbal_interface_ind_data *this, bcmbal_presence_mask fields_present); |
| 2626 | |
| 2627 | /** Unpacks a bcmbal_interface_ind_data from bytes |
| 2628 | * |
| 2629 | * \param this Pointer to the object to unpack |
| 2630 | * \param buf Pointer to the buffer to read from |
| 2631 | * \param extra_mem Pointer to the first location in memory to use to store |
| 2632 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 2633 | * a NULL pointer is encountered. |
| 2634 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2635 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 2636 | */ |
| 2637 | bcmos_bool bcmbal_interface_ind_data_unpack(bcmbal_interface_ind_data *this, bcmbal_buf *buf, void **extra_mem, bcmbal_presence_mask fields_present); |
| 2638 | |
| 2639 | /** Scans past a packed bcmbal_interface_ind_data struct and collects memory |
| 2640 | * requirements above and beyond sizeof() |
| 2641 | * |
| 2642 | * \param packed A stream pointing to the packed byte stream |
| 2643 | * \param extra_mem Number of additional storage bytes required |
| 2644 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2645 | * \return TRUE on success, FALSE on failure |
| 2646 | */ |
| 2647 | bcmos_bool bcmbal_interface_ind_data_scan(bcmbal_buf *packed, uint32_t *extra_mem, bcmbal_presence_mask fields_present); |
| 2648 | |
| 2649 | /** Checks if any field in the bcmbal_interface_ind_data is out of bounds |
| 2650 | * |
| 2651 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2652 | * \param failed_prop Reference to the property that was out of range (only set |
| 2653 | * on failure) |
| 2654 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 2655 | */ |
| 2656 | bcmos_bool bcmbal_interface_ind_data_bounds_check(const bcmbal_interface_ind_data *this, bcmbal_presence_mask fields_present, bcmbal_interface_ind_id *failed_prop); |
| 2657 | |
| 2658 | /** Initializes a bcmbal_packet_key struct. This sets all fields to default |
| 2659 | * values. |
| 2660 | * |
| 2661 | * \param this Pointer to the structure |
| 2662 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2663 | */ |
| 2664 | void bcmbal_packet_key_set_default(bcmbal_packet_key *this, bcmbal_presence_mask fields_present); |
| 2665 | |
| 2666 | /** Packs a bcmbal_packet_key to bytes |
| 2667 | * |
| 2668 | * \param this Pointer to the object to pack |
| 2669 | * \param buf Pointer to the buffer to write to |
| 2670 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2671 | * \return TRUE if the pack was successful, FALSE otherwise |
| 2672 | */ |
| 2673 | bcmos_bool bcmbal_packet_key_pack(const bcmbal_packet_key *this, bcmbal_buf *buf, bcmbal_presence_mask fields_present); |
| 2674 | |
| 2675 | /** Gets the number of bytes that a bcmbal_packet_key would occupy on the wire |
| 2676 | * |
| 2677 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2678 | * \return The structure size in bytes |
| 2679 | */ |
| 2680 | uint32_t bcmbal_packet_key_get_packed_length(const bcmbal_packet_key *this, bcmbal_presence_mask fields_present); |
| 2681 | |
| 2682 | /** Unpacks a bcmbal_packet_key from bytes |
| 2683 | * |
| 2684 | * \param this Pointer to the object to unpack |
| 2685 | * \param buf Pointer to the buffer to read from |
| 2686 | * \param extra_mem Pointer to the first location in memory to use to store |
| 2687 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 2688 | * a NULL pointer is encountered. |
| 2689 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2690 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 2691 | */ |
| 2692 | bcmos_bool bcmbal_packet_key_unpack(bcmbal_packet_key *this, bcmbal_buf *buf, void **extra_mem, bcmbal_presence_mask fields_present); |
| 2693 | |
| 2694 | /** Scans past a packed bcmbal_packet_key struct and collects memory |
| 2695 | * requirements above and beyond sizeof() |
| 2696 | * |
| 2697 | * \param packed A stream pointing to the packed byte stream |
| 2698 | * \param extra_mem Number of additional storage bytes required |
| 2699 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2700 | * \return TRUE on success, FALSE on failure |
| 2701 | */ |
| 2702 | bcmos_bool bcmbal_packet_key_scan(bcmbal_buf *packed, uint32_t *extra_mem, bcmbal_presence_mask fields_present); |
| 2703 | |
| 2704 | /** Checks if any field in the bcmbal_packet_key is out of bounds |
| 2705 | * |
| 2706 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2707 | * \param failed_prop Reference to the property that was out of range (only set |
| 2708 | * on failure) |
| 2709 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 2710 | */ |
| 2711 | bcmos_bool bcmbal_packet_key_bounds_check(const bcmbal_packet_key *this, bcmbal_presence_mask fields_present, bcmbal_packet_key_id *failed_prop); |
| 2712 | |
| 2713 | /** Initializes a bcmbal_packet_cfg_data struct. This sets all fields to |
| 2714 | * default values. |
| 2715 | * |
| 2716 | * \param this Pointer to the structure |
| 2717 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2718 | */ |
| 2719 | void bcmbal_packet_cfg_data_set_default(bcmbal_packet_cfg_data *this, bcmbal_presence_mask fields_present); |
| 2720 | |
| 2721 | /** Packs a bcmbal_packet_cfg_data to bytes |
| 2722 | * |
| 2723 | * \param this Pointer to the object to pack |
| 2724 | * \param buf Pointer to the buffer to write to |
| 2725 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2726 | * \return TRUE if the pack was successful, FALSE otherwise |
| 2727 | */ |
| 2728 | bcmos_bool bcmbal_packet_cfg_data_pack(const bcmbal_packet_cfg_data *this, bcmbal_buf *buf, bcmbal_presence_mask fields_present); |
| 2729 | |
| 2730 | /** Gets the number of bytes that a bcmbal_packet_cfg_data would occupy on the |
| 2731 | * wire |
| 2732 | * |
| 2733 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2734 | * \return The structure size in bytes |
| 2735 | */ |
| 2736 | uint32_t bcmbal_packet_cfg_data_get_packed_length(const bcmbal_packet_cfg_data *this, bcmbal_presence_mask fields_present); |
| 2737 | |
| 2738 | /** Unpacks a bcmbal_packet_cfg_data from bytes |
| 2739 | * |
| 2740 | * \param this Pointer to the object to unpack |
| 2741 | * \param buf Pointer to the buffer to read from |
| 2742 | * \param extra_mem Pointer to the first location in memory to use to store |
| 2743 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 2744 | * a NULL pointer is encountered. |
| 2745 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2746 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 2747 | */ |
| 2748 | bcmos_bool bcmbal_packet_cfg_data_unpack(bcmbal_packet_cfg_data *this, bcmbal_buf *buf, void **extra_mem, bcmbal_presence_mask fields_present); |
| 2749 | |
| 2750 | /** Scans past a packed bcmbal_packet_cfg_data struct and collects memory |
| 2751 | * requirements above and beyond sizeof() |
| 2752 | * |
| 2753 | * \param packed A stream pointing to the packed byte stream |
| 2754 | * \param extra_mem Number of additional storage bytes required |
| 2755 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2756 | * \return TRUE on success, FALSE on failure |
| 2757 | */ |
| 2758 | bcmos_bool bcmbal_packet_cfg_data_scan(bcmbal_buf *packed, uint32_t *extra_mem, bcmbal_presence_mask fields_present); |
| 2759 | |
| 2760 | /** Checks if any field in the bcmbal_packet_cfg_data is out of bounds |
| 2761 | * |
| 2762 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2763 | * \param failed_prop Reference to the property that was out of range (only set |
| 2764 | * on failure) |
| 2765 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 2766 | */ |
| 2767 | bcmos_bool bcmbal_packet_cfg_data_bounds_check(const bcmbal_packet_cfg_data *this, bcmbal_presence_mask fields_present, bcmbal_packet_cfg_id *failed_prop); |
| 2768 | |
| 2769 | /** Initializes a bcmbal_packet_ind_data struct. This sets all fields to |
| 2770 | * default values. |
| 2771 | * |
| 2772 | * \param this Pointer to the structure |
| 2773 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2774 | */ |
| 2775 | void bcmbal_packet_ind_data_set_default(bcmbal_packet_ind_data *this, bcmbal_presence_mask fields_present); |
| 2776 | |
| 2777 | /** Packs a bcmbal_packet_ind_data to bytes |
| 2778 | * |
| 2779 | * \param this Pointer to the object to pack |
| 2780 | * \param buf Pointer to the buffer to write to |
| 2781 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2782 | * \return TRUE if the pack was successful, FALSE otherwise |
| 2783 | */ |
| 2784 | bcmos_bool bcmbal_packet_ind_data_pack(const bcmbal_packet_ind_data *this, bcmbal_buf *buf, bcmbal_presence_mask fields_present); |
| 2785 | |
| 2786 | /** Gets the number of bytes that a bcmbal_packet_ind_data would occupy on the |
| 2787 | * wire |
| 2788 | * |
| 2789 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2790 | * \return The structure size in bytes |
| 2791 | */ |
| 2792 | uint32_t bcmbal_packet_ind_data_get_packed_length(const bcmbal_packet_ind_data *this, bcmbal_presence_mask fields_present); |
| 2793 | |
| 2794 | /** Unpacks a bcmbal_packet_ind_data from bytes |
| 2795 | * |
| 2796 | * \param this Pointer to the object to unpack |
| 2797 | * \param buf Pointer to the buffer to read from |
| 2798 | * \param extra_mem Pointer to the first location in memory to use to store |
| 2799 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 2800 | * a NULL pointer is encountered. |
| 2801 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2802 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 2803 | */ |
| 2804 | bcmos_bool bcmbal_packet_ind_data_unpack(bcmbal_packet_ind_data *this, bcmbal_buf *buf, void **extra_mem, bcmbal_presence_mask fields_present); |
| 2805 | |
| 2806 | /** Scans past a packed bcmbal_packet_ind_data struct and collects memory |
| 2807 | * requirements above and beyond sizeof() |
| 2808 | * |
| 2809 | * \param packed A stream pointing to the packed byte stream |
| 2810 | * \param extra_mem Number of additional storage bytes required |
| 2811 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2812 | * \return TRUE on success, FALSE on failure |
| 2813 | */ |
| 2814 | bcmos_bool bcmbal_packet_ind_data_scan(bcmbal_buf *packed, uint32_t *extra_mem, bcmbal_presence_mask fields_present); |
| 2815 | |
| 2816 | /** Checks if any field in the bcmbal_packet_ind_data is out of bounds |
| 2817 | * |
| 2818 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2819 | * \param failed_prop Reference to the property that was out of range (only set |
| 2820 | * on failure) |
| 2821 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 2822 | */ |
| 2823 | bcmos_bool bcmbal_packet_ind_data_bounds_check(const bcmbal_packet_ind_data *this, bcmbal_presence_mask fields_present, bcmbal_packet_ind_id *failed_prop); |
| 2824 | |
| 2825 | /** Initializes a bcmbal_subscriber_terminal_key struct. This sets all fields |
| 2826 | * to default values. |
| 2827 | * |
| 2828 | * \param this Pointer to the structure |
| 2829 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2830 | */ |
| 2831 | void bcmbal_subscriber_terminal_key_set_default(bcmbal_subscriber_terminal_key *this, bcmbal_presence_mask fields_present); |
| 2832 | |
| 2833 | /** Packs a bcmbal_subscriber_terminal_key to bytes |
| 2834 | * |
| 2835 | * \param this Pointer to the object to pack |
| 2836 | * \param buf Pointer to the buffer to write to |
| 2837 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2838 | * \return TRUE if the pack was successful, FALSE otherwise |
| 2839 | */ |
| 2840 | bcmos_bool bcmbal_subscriber_terminal_key_pack(const bcmbal_subscriber_terminal_key *this, bcmbal_buf *buf, bcmbal_presence_mask fields_present); |
| 2841 | |
| 2842 | /** Gets the number of bytes that a bcmbal_subscriber_terminal_key would occupy |
| 2843 | * on the wire |
| 2844 | * |
| 2845 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2846 | * \return The structure size in bytes |
| 2847 | */ |
| 2848 | uint32_t bcmbal_subscriber_terminal_key_get_packed_length(const bcmbal_subscriber_terminal_key *this, bcmbal_presence_mask fields_present); |
| 2849 | |
| 2850 | /** Unpacks a bcmbal_subscriber_terminal_key from bytes |
| 2851 | * |
| 2852 | * \param this Pointer to the object to unpack |
| 2853 | * \param buf Pointer to the buffer to read from |
| 2854 | * \param extra_mem Pointer to the first location in memory to use to store |
| 2855 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 2856 | * a NULL pointer is encountered. |
| 2857 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2858 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 2859 | */ |
| 2860 | bcmos_bool bcmbal_subscriber_terminal_key_unpack(bcmbal_subscriber_terminal_key *this, bcmbal_buf *buf, void **extra_mem, bcmbal_presence_mask fields_present); |
| 2861 | |
| 2862 | /** Scans past a packed bcmbal_subscriber_terminal_key struct and collects |
| 2863 | * memory requirements above and beyond sizeof() |
| 2864 | * |
| 2865 | * \param packed A stream pointing to the packed byte stream |
| 2866 | * \param extra_mem Number of additional storage bytes required |
| 2867 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2868 | * \return TRUE on success, FALSE on failure |
| 2869 | */ |
| 2870 | bcmos_bool bcmbal_subscriber_terminal_key_scan(bcmbal_buf *packed, uint32_t *extra_mem, bcmbal_presence_mask fields_present); |
| 2871 | |
| 2872 | /** Checks if any field in the bcmbal_subscriber_terminal_key is out of bounds |
| 2873 | * |
| 2874 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2875 | * \param failed_prop Reference to the property that was out of range (only set |
| 2876 | * on failure) |
| 2877 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 2878 | */ |
| 2879 | bcmos_bool bcmbal_subscriber_terminal_key_bounds_check(const bcmbal_subscriber_terminal_key *this, bcmbal_presence_mask fields_present, bcmbal_subscriber_terminal_key_id *failed_prop); |
| 2880 | |
| 2881 | /** Initializes a bcmbal_subscriber_terminal_cfg_data struct. This sets all |
| 2882 | * fields to default values. |
| 2883 | * |
| 2884 | * \param this Pointer to the structure |
| 2885 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2886 | */ |
| 2887 | void bcmbal_subscriber_terminal_cfg_data_set_default(bcmbal_subscriber_terminal_cfg_data *this, bcmbal_presence_mask fields_present); |
| 2888 | |
| 2889 | /** Packs a bcmbal_subscriber_terminal_cfg_data to bytes |
| 2890 | * |
| 2891 | * \param this Pointer to the object to pack |
| 2892 | * \param buf Pointer to the buffer to write to |
| 2893 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2894 | * \return TRUE if the pack was successful, FALSE otherwise |
| 2895 | */ |
| 2896 | bcmos_bool bcmbal_subscriber_terminal_cfg_data_pack(const bcmbal_subscriber_terminal_cfg_data *this, bcmbal_buf *buf, bcmbal_presence_mask fields_present); |
| 2897 | |
| 2898 | /** Gets the number of bytes that a bcmbal_subscriber_terminal_cfg_data would |
| 2899 | * occupy on the wire |
| 2900 | * |
| 2901 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2902 | * \return The structure size in bytes |
| 2903 | */ |
| 2904 | uint32_t bcmbal_subscriber_terminal_cfg_data_get_packed_length(const bcmbal_subscriber_terminal_cfg_data *this, bcmbal_presence_mask fields_present); |
| 2905 | |
| 2906 | /** Unpacks a bcmbal_subscriber_terminal_cfg_data from bytes |
| 2907 | * |
| 2908 | * \param this Pointer to the object to unpack |
| 2909 | * \param buf Pointer to the buffer to read from |
| 2910 | * \param extra_mem Pointer to the first location in memory to use to store |
| 2911 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 2912 | * a NULL pointer is encountered. |
| 2913 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2914 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 2915 | */ |
| 2916 | bcmos_bool bcmbal_subscriber_terminal_cfg_data_unpack(bcmbal_subscriber_terminal_cfg_data *this, bcmbal_buf *buf, void **extra_mem, bcmbal_presence_mask fields_present); |
| 2917 | |
| 2918 | /** Scans past a packed bcmbal_subscriber_terminal_cfg_data struct and collects |
| 2919 | * memory requirements above and beyond sizeof() |
| 2920 | * |
| 2921 | * \param packed A stream pointing to the packed byte stream |
| 2922 | * \param extra_mem Number of additional storage bytes required |
| 2923 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2924 | * \return TRUE on success, FALSE on failure |
| 2925 | */ |
| 2926 | bcmos_bool bcmbal_subscriber_terminal_cfg_data_scan(bcmbal_buf *packed, uint32_t *extra_mem, bcmbal_presence_mask fields_present); |
| 2927 | |
| 2928 | /** Checks if any field in the bcmbal_subscriber_terminal_cfg_data is out of |
| 2929 | * bounds |
| 2930 | * |
| 2931 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2932 | * \param failed_prop Reference to the property that was out of range (only set |
| 2933 | * on failure) |
| 2934 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 2935 | */ |
| 2936 | bcmos_bool bcmbal_subscriber_terminal_cfg_data_bounds_check(const bcmbal_subscriber_terminal_cfg_data *this, bcmbal_presence_mask fields_present, bcmbal_subscriber_terminal_cfg_id *failed_prop); |
| 2937 | |
| 2938 | /** Initializes a bcmbal_subscriber_terminal_stat_data struct. This sets all |
| 2939 | * fields to default values. |
| 2940 | * |
| 2941 | * \param this Pointer to the structure |
| 2942 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2943 | */ |
| 2944 | void bcmbal_subscriber_terminal_stat_data_set_default(bcmbal_subscriber_terminal_stat_data *this, bcmbal_presence_mask fields_present); |
| 2945 | |
| 2946 | /** Packs a bcmbal_subscriber_terminal_stat_data to bytes |
| 2947 | * |
| 2948 | * \param this Pointer to the object to pack |
| 2949 | * \param buf Pointer to the buffer to write to |
| 2950 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2951 | * \return TRUE if the pack was successful, FALSE otherwise |
| 2952 | */ |
| 2953 | bcmos_bool bcmbal_subscriber_terminal_stat_data_pack(const bcmbal_subscriber_terminal_stat_data *this, bcmbal_buf *buf, bcmbal_presence_mask fields_present); |
| 2954 | |
| 2955 | /** Gets the number of bytes that a bcmbal_subscriber_terminal_stat_data would |
| 2956 | * occupy on the wire |
| 2957 | * |
| 2958 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2959 | * \return The structure size in bytes |
| 2960 | */ |
| 2961 | uint32_t bcmbal_subscriber_terminal_stat_data_get_packed_length(const bcmbal_subscriber_terminal_stat_data *this, bcmbal_presence_mask fields_present); |
| 2962 | |
| 2963 | /** Unpacks a bcmbal_subscriber_terminal_stat_data from bytes |
| 2964 | * |
| 2965 | * \param this Pointer to the object to unpack |
| 2966 | * \param buf Pointer to the buffer to read from |
| 2967 | * \param extra_mem Pointer to the first location in memory to use to store |
| 2968 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 2969 | * a NULL pointer is encountered. |
| 2970 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2971 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 2972 | */ |
| 2973 | bcmos_bool bcmbal_subscriber_terminal_stat_data_unpack(bcmbal_subscriber_terminal_stat_data *this, bcmbal_buf *buf, void **extra_mem, bcmbal_presence_mask fields_present); |
| 2974 | |
| 2975 | /** Scans past a packed bcmbal_subscriber_terminal_stat_data struct and collects |
| 2976 | * memory requirements above and beyond sizeof() |
| 2977 | * |
| 2978 | * \param packed A stream pointing to the packed byte stream |
| 2979 | * \param extra_mem Number of additional storage bytes required |
| 2980 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2981 | * \return TRUE on success, FALSE on failure |
| 2982 | */ |
| 2983 | bcmos_bool bcmbal_subscriber_terminal_stat_data_scan(bcmbal_buf *packed, uint32_t *extra_mem, bcmbal_presence_mask fields_present); |
| 2984 | |
| 2985 | /** Checks if any field in the bcmbal_subscriber_terminal_stat_data is out of |
| 2986 | * bounds |
| 2987 | * |
| 2988 | * \param fields_present Bitmask of which fields are present in the structure. |
| 2989 | * \param failed_prop Reference to the property that was out of range (only set |
| 2990 | * on failure) |
| 2991 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 2992 | */ |
| 2993 | bcmos_bool bcmbal_subscriber_terminal_stat_data_bounds_check(const bcmbal_subscriber_terminal_stat_data *this, bcmbal_presence_mask fields_present, bcmbal_subscriber_terminal_stat_id *failed_prop); |
| 2994 | |
| 2995 | /** Initializes a bcmbal_subscriber_terminal_ind_data struct. This sets all |
| 2996 | * fields to default values. |
| 2997 | * |
| 2998 | * \param this Pointer to the structure |
| 2999 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3000 | */ |
| 3001 | void bcmbal_subscriber_terminal_ind_data_set_default(bcmbal_subscriber_terminal_ind_data *this, bcmbal_presence_mask fields_present); |
| 3002 | |
| 3003 | /** Packs a bcmbal_subscriber_terminal_ind_data to bytes |
| 3004 | * |
| 3005 | * \param this Pointer to the object to pack |
| 3006 | * \param buf Pointer to the buffer to write to |
| 3007 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3008 | * \return TRUE if the pack was successful, FALSE otherwise |
| 3009 | */ |
| 3010 | bcmos_bool bcmbal_subscriber_terminal_ind_data_pack(const bcmbal_subscriber_terminal_ind_data *this, bcmbal_buf *buf, bcmbal_presence_mask fields_present); |
| 3011 | |
| 3012 | /** Gets the number of bytes that a bcmbal_subscriber_terminal_ind_data would |
| 3013 | * occupy on the wire |
| 3014 | * |
| 3015 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3016 | * \return The structure size in bytes |
| 3017 | */ |
| 3018 | uint32_t bcmbal_subscriber_terminal_ind_data_get_packed_length(const bcmbal_subscriber_terminal_ind_data *this, bcmbal_presence_mask fields_present); |
| 3019 | |
| 3020 | /** Unpacks a bcmbal_subscriber_terminal_ind_data from bytes |
| 3021 | * |
| 3022 | * \param this Pointer to the object to unpack |
| 3023 | * \param buf Pointer to the buffer to read from |
| 3024 | * \param extra_mem Pointer to the first location in memory to use to store |
| 3025 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 3026 | * a NULL pointer is encountered. |
| 3027 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3028 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 3029 | */ |
| 3030 | bcmos_bool bcmbal_subscriber_terminal_ind_data_unpack(bcmbal_subscriber_terminal_ind_data *this, bcmbal_buf *buf, void **extra_mem, bcmbal_presence_mask fields_present); |
| 3031 | |
| 3032 | /** Scans past a packed bcmbal_subscriber_terminal_ind_data struct and collects |
| 3033 | * memory requirements above and beyond sizeof() |
| 3034 | * |
| 3035 | * \param packed A stream pointing to the packed byte stream |
| 3036 | * \param extra_mem Number of additional storage bytes required |
| 3037 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3038 | * \return TRUE on success, FALSE on failure |
| 3039 | */ |
| 3040 | bcmos_bool bcmbal_subscriber_terminal_ind_data_scan(bcmbal_buf *packed, uint32_t *extra_mem, bcmbal_presence_mask fields_present); |
| 3041 | |
| 3042 | /** Checks if any field in the bcmbal_subscriber_terminal_ind_data is out of |
| 3043 | * bounds |
| 3044 | * |
| 3045 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3046 | * \param failed_prop Reference to the property that was out of range (only set |
| 3047 | * on failure) |
| 3048 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 3049 | */ |
| 3050 | bcmos_bool bcmbal_subscriber_terminal_ind_data_bounds_check(const bcmbal_subscriber_terminal_ind_data *this, bcmbal_presence_mask fields_present, bcmbal_subscriber_terminal_ind_id *failed_prop); |
| 3051 | |
| 3052 | /** Initializes a bcmbal_tm_queue_key struct. This sets all fields to default |
| 3053 | * values. |
| 3054 | * |
| 3055 | * \param this Pointer to the structure |
| 3056 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3057 | */ |
| 3058 | void bcmbal_tm_queue_key_set_default(bcmbal_tm_queue_key *this, bcmbal_presence_mask fields_present); |
| 3059 | |
| 3060 | /** Packs a bcmbal_tm_queue_key to bytes |
| 3061 | * |
| 3062 | * \param this Pointer to the object to pack |
| 3063 | * \param buf Pointer to the buffer to write to |
| 3064 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3065 | * \return TRUE if the pack was successful, FALSE otherwise |
| 3066 | */ |
| 3067 | bcmos_bool bcmbal_tm_queue_key_pack(const bcmbal_tm_queue_key *this, bcmbal_buf *buf, bcmbal_presence_mask fields_present); |
| 3068 | |
| 3069 | /** Gets the number of bytes that a bcmbal_tm_queue_key would occupy on the wire |
| 3070 | * |
| 3071 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3072 | * \return The structure size in bytes |
| 3073 | */ |
| 3074 | uint32_t bcmbal_tm_queue_key_get_packed_length(const bcmbal_tm_queue_key *this, bcmbal_presence_mask fields_present); |
| 3075 | |
| 3076 | /** Unpacks a bcmbal_tm_queue_key from bytes |
| 3077 | * |
| 3078 | * \param this Pointer to the object to unpack |
| 3079 | * \param buf Pointer to the buffer to read from |
| 3080 | * \param extra_mem Pointer to the first location in memory to use to store |
| 3081 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 3082 | * a NULL pointer is encountered. |
| 3083 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3084 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 3085 | */ |
| 3086 | bcmos_bool bcmbal_tm_queue_key_unpack(bcmbal_tm_queue_key *this, bcmbal_buf *buf, void **extra_mem, bcmbal_presence_mask fields_present); |
| 3087 | |
| 3088 | /** Scans past a packed bcmbal_tm_queue_key struct and collects memory |
| 3089 | * requirements above and beyond sizeof() |
| 3090 | * |
| 3091 | * \param packed A stream pointing to the packed byte stream |
| 3092 | * \param extra_mem Number of additional storage bytes required |
| 3093 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3094 | * \return TRUE on success, FALSE on failure |
| 3095 | */ |
| 3096 | bcmos_bool bcmbal_tm_queue_key_scan(bcmbal_buf *packed, uint32_t *extra_mem, bcmbal_presence_mask fields_present); |
| 3097 | |
| 3098 | /** Checks if any field in the bcmbal_tm_queue_key is out of bounds |
| 3099 | * |
| 3100 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3101 | * \param failed_prop Reference to the property that was out of range (only set |
| 3102 | * on failure) |
| 3103 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 3104 | */ |
| 3105 | bcmos_bool bcmbal_tm_queue_key_bounds_check(const bcmbal_tm_queue_key *this, bcmbal_presence_mask fields_present, bcmbal_tm_queue_key_id *failed_prop); |
| 3106 | |
| 3107 | /** Initializes a bcmbal_tm_queue_cfg_data struct. This sets all fields to |
| 3108 | * default values. |
| 3109 | * |
| 3110 | * \param this Pointer to the structure |
| 3111 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3112 | */ |
| 3113 | void bcmbal_tm_queue_cfg_data_set_default(bcmbal_tm_queue_cfg_data *this, bcmbal_presence_mask fields_present); |
| 3114 | |
| 3115 | /** Packs a bcmbal_tm_queue_cfg_data to bytes |
| 3116 | * |
| 3117 | * \param this Pointer to the object to pack |
| 3118 | * \param buf Pointer to the buffer to write to |
| 3119 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3120 | * \return TRUE if the pack was successful, FALSE otherwise |
| 3121 | */ |
| 3122 | bcmos_bool bcmbal_tm_queue_cfg_data_pack(const bcmbal_tm_queue_cfg_data *this, bcmbal_buf *buf, bcmbal_presence_mask fields_present); |
| 3123 | |
| 3124 | /** Gets the number of bytes that a bcmbal_tm_queue_cfg_data would occupy on the |
| 3125 | * wire |
| 3126 | * |
| 3127 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3128 | * \return The structure size in bytes |
| 3129 | */ |
| 3130 | uint32_t bcmbal_tm_queue_cfg_data_get_packed_length(const bcmbal_tm_queue_cfg_data *this, bcmbal_presence_mask fields_present); |
| 3131 | |
| 3132 | /** Unpacks a bcmbal_tm_queue_cfg_data from bytes |
| 3133 | * |
| 3134 | * \param this Pointer to the object to unpack |
| 3135 | * \param buf Pointer to the buffer to read from |
| 3136 | * \param extra_mem Pointer to the first location in memory to use to store |
| 3137 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 3138 | * a NULL pointer is encountered. |
| 3139 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3140 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 3141 | */ |
| 3142 | bcmos_bool bcmbal_tm_queue_cfg_data_unpack(bcmbal_tm_queue_cfg_data *this, bcmbal_buf *buf, void **extra_mem, bcmbal_presence_mask fields_present); |
| 3143 | |
| 3144 | /** Scans past a packed bcmbal_tm_queue_cfg_data struct and collects memory |
| 3145 | * requirements above and beyond sizeof() |
| 3146 | * |
| 3147 | * \param packed A stream pointing to the packed byte stream |
| 3148 | * \param extra_mem Number of additional storage bytes required |
| 3149 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3150 | * \return TRUE on success, FALSE on failure |
| 3151 | */ |
| 3152 | bcmos_bool bcmbal_tm_queue_cfg_data_scan(bcmbal_buf *packed, uint32_t *extra_mem, bcmbal_presence_mask fields_present); |
| 3153 | |
| 3154 | /** Checks if any field in the bcmbal_tm_queue_cfg_data is out of bounds |
| 3155 | * |
| 3156 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3157 | * \param failed_prop Reference to the property that was out of range (only set |
| 3158 | * on failure) |
| 3159 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 3160 | */ |
| 3161 | bcmos_bool bcmbal_tm_queue_cfg_data_bounds_check(const bcmbal_tm_queue_cfg_data *this, bcmbal_presence_mask fields_present, bcmbal_tm_queue_cfg_id *failed_prop); |
| 3162 | |
| 3163 | /** Initializes a bcmbal_tm_queue_stat_data struct. This sets all fields to |
| 3164 | * default values. |
| 3165 | * |
| 3166 | * \param this Pointer to the structure |
| 3167 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3168 | */ |
| 3169 | void bcmbal_tm_queue_stat_data_set_default(bcmbal_tm_queue_stat_data *this, bcmbal_presence_mask fields_present); |
| 3170 | |
| 3171 | /** Packs a bcmbal_tm_queue_stat_data to bytes |
| 3172 | * |
| 3173 | * \param this Pointer to the object to pack |
| 3174 | * \param buf Pointer to the buffer to write to |
| 3175 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3176 | * \return TRUE if the pack was successful, FALSE otherwise |
| 3177 | */ |
| 3178 | bcmos_bool bcmbal_tm_queue_stat_data_pack(const bcmbal_tm_queue_stat_data *this, bcmbal_buf *buf, bcmbal_presence_mask fields_present); |
| 3179 | |
| 3180 | /** Gets the number of bytes that a bcmbal_tm_queue_stat_data would occupy on |
| 3181 | * the wire |
| 3182 | * |
| 3183 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3184 | * \return The structure size in bytes |
| 3185 | */ |
| 3186 | uint32_t bcmbal_tm_queue_stat_data_get_packed_length(const bcmbal_tm_queue_stat_data *this, bcmbal_presence_mask fields_present); |
| 3187 | |
| 3188 | /** Unpacks a bcmbal_tm_queue_stat_data from bytes |
| 3189 | * |
| 3190 | * \param this Pointer to the object to unpack |
| 3191 | * \param buf Pointer to the buffer to read from |
| 3192 | * \param extra_mem Pointer to the first location in memory to use to store |
| 3193 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 3194 | * a NULL pointer is encountered. |
| 3195 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3196 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 3197 | */ |
| 3198 | bcmos_bool bcmbal_tm_queue_stat_data_unpack(bcmbal_tm_queue_stat_data *this, bcmbal_buf *buf, void **extra_mem, bcmbal_presence_mask fields_present); |
| 3199 | |
| 3200 | /** Scans past a packed bcmbal_tm_queue_stat_data struct and collects memory |
| 3201 | * requirements above and beyond sizeof() |
| 3202 | * |
| 3203 | * \param packed A stream pointing to the packed byte stream |
| 3204 | * \param extra_mem Number of additional storage bytes required |
| 3205 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3206 | * \return TRUE on success, FALSE on failure |
| 3207 | */ |
| 3208 | bcmos_bool bcmbal_tm_queue_stat_data_scan(bcmbal_buf *packed, uint32_t *extra_mem, bcmbal_presence_mask fields_present); |
| 3209 | |
| 3210 | /** Checks if any field in the bcmbal_tm_queue_stat_data is out of bounds |
| 3211 | * |
| 3212 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3213 | * \param failed_prop Reference to the property that was out of range (only set |
| 3214 | * on failure) |
| 3215 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 3216 | */ |
| 3217 | bcmos_bool bcmbal_tm_queue_stat_data_bounds_check(const bcmbal_tm_queue_stat_data *this, bcmbal_presence_mask fields_present, bcmbal_tm_queue_stat_id *failed_prop); |
| 3218 | |
| 3219 | /** Initializes a bcmbal_tm_queue_ind_data struct. This sets all fields to |
| 3220 | * default values. |
| 3221 | * |
| 3222 | * \param this Pointer to the structure |
| 3223 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3224 | */ |
| 3225 | void bcmbal_tm_queue_ind_data_set_default(bcmbal_tm_queue_ind_data *this, bcmbal_presence_mask fields_present); |
| 3226 | |
| 3227 | /** Packs a bcmbal_tm_queue_ind_data to bytes |
| 3228 | * |
| 3229 | * \param this Pointer to the object to pack |
| 3230 | * \param buf Pointer to the buffer to write to |
| 3231 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3232 | * \return TRUE if the pack was successful, FALSE otherwise |
| 3233 | */ |
| 3234 | bcmos_bool bcmbal_tm_queue_ind_data_pack(const bcmbal_tm_queue_ind_data *this, bcmbal_buf *buf, bcmbal_presence_mask fields_present); |
| 3235 | |
| 3236 | /** Gets the number of bytes that a bcmbal_tm_queue_ind_data would occupy on the |
| 3237 | * wire |
| 3238 | * |
| 3239 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3240 | * \return The structure size in bytes |
| 3241 | */ |
| 3242 | uint32_t bcmbal_tm_queue_ind_data_get_packed_length(const bcmbal_tm_queue_ind_data *this, bcmbal_presence_mask fields_present); |
| 3243 | |
| 3244 | /** Unpacks a bcmbal_tm_queue_ind_data from bytes |
| 3245 | * |
| 3246 | * \param this Pointer to the object to unpack |
| 3247 | * \param buf Pointer to the buffer to read from |
| 3248 | * \param extra_mem Pointer to the first location in memory to use to store |
| 3249 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 3250 | * a NULL pointer is encountered. |
| 3251 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3252 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 3253 | */ |
| 3254 | bcmos_bool bcmbal_tm_queue_ind_data_unpack(bcmbal_tm_queue_ind_data *this, bcmbal_buf *buf, void **extra_mem, bcmbal_presence_mask fields_present); |
| 3255 | |
| 3256 | /** Scans past a packed bcmbal_tm_queue_ind_data struct and collects memory |
| 3257 | * requirements above and beyond sizeof() |
| 3258 | * |
| 3259 | * \param packed A stream pointing to the packed byte stream |
| 3260 | * \param extra_mem Number of additional storage bytes required |
| 3261 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3262 | * \return TRUE on success, FALSE on failure |
| 3263 | */ |
| 3264 | bcmos_bool bcmbal_tm_queue_ind_data_scan(bcmbal_buf *packed, uint32_t *extra_mem, bcmbal_presence_mask fields_present); |
| 3265 | |
| 3266 | /** Checks if any field in the bcmbal_tm_queue_ind_data is out of bounds |
| 3267 | * |
| 3268 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3269 | * \param failed_prop Reference to the property that was out of range (only set |
| 3270 | * on failure) |
| 3271 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 3272 | */ |
| 3273 | bcmos_bool bcmbal_tm_queue_ind_data_bounds_check(const bcmbal_tm_queue_ind_data *this, bcmbal_presence_mask fields_present, bcmbal_tm_queue_ind_id *failed_prop); |
| 3274 | |
| 3275 | /** Initializes a bcmbal_tm_sched_key struct. This sets all fields to default |
| 3276 | * values. |
| 3277 | * |
| 3278 | * \param this Pointer to the structure |
| 3279 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3280 | */ |
| 3281 | void bcmbal_tm_sched_key_set_default(bcmbal_tm_sched_key *this, bcmbal_presence_mask fields_present); |
| 3282 | |
| 3283 | /** Packs a bcmbal_tm_sched_key to bytes |
| 3284 | * |
| 3285 | * \param this Pointer to the object to pack |
| 3286 | * \param buf Pointer to the buffer to write to |
| 3287 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3288 | * \return TRUE if the pack was successful, FALSE otherwise |
| 3289 | */ |
| 3290 | bcmos_bool bcmbal_tm_sched_key_pack(const bcmbal_tm_sched_key *this, bcmbal_buf *buf, bcmbal_presence_mask fields_present); |
| 3291 | |
| 3292 | /** Gets the number of bytes that a bcmbal_tm_sched_key would occupy on the wire |
| 3293 | * |
| 3294 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3295 | * \return The structure size in bytes |
| 3296 | */ |
| 3297 | uint32_t bcmbal_tm_sched_key_get_packed_length(const bcmbal_tm_sched_key *this, bcmbal_presence_mask fields_present); |
| 3298 | |
| 3299 | /** Unpacks a bcmbal_tm_sched_key from bytes |
| 3300 | * |
| 3301 | * \param this Pointer to the object to unpack |
| 3302 | * \param buf Pointer to the buffer to read from |
| 3303 | * \param extra_mem Pointer to the first location in memory to use to store |
| 3304 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 3305 | * a NULL pointer is encountered. |
| 3306 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3307 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 3308 | */ |
| 3309 | bcmos_bool bcmbal_tm_sched_key_unpack(bcmbal_tm_sched_key *this, bcmbal_buf *buf, void **extra_mem, bcmbal_presence_mask fields_present); |
| 3310 | |
| 3311 | /** Scans past a packed bcmbal_tm_sched_key struct and collects memory |
| 3312 | * requirements above and beyond sizeof() |
| 3313 | * |
| 3314 | * \param packed A stream pointing to the packed byte stream |
| 3315 | * \param extra_mem Number of additional storage bytes required |
| 3316 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3317 | * \return TRUE on success, FALSE on failure |
| 3318 | */ |
| 3319 | bcmos_bool bcmbal_tm_sched_key_scan(bcmbal_buf *packed, uint32_t *extra_mem, bcmbal_presence_mask fields_present); |
| 3320 | |
| 3321 | /** Checks if any field in the bcmbal_tm_sched_key is out of bounds |
| 3322 | * |
| 3323 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3324 | * \param failed_prop Reference to the property that was out of range (only set |
| 3325 | * on failure) |
| 3326 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 3327 | */ |
| 3328 | bcmos_bool bcmbal_tm_sched_key_bounds_check(const bcmbal_tm_sched_key *this, bcmbal_presence_mask fields_present, bcmbal_tm_sched_key_id *failed_prop); |
| 3329 | |
| 3330 | /** Initializes a bcmbal_tm_sched_cfg_data struct. This sets all fields to |
| 3331 | * default values. |
| 3332 | * |
| 3333 | * \param this Pointer to the structure |
| 3334 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3335 | */ |
| 3336 | void bcmbal_tm_sched_cfg_data_set_default(bcmbal_tm_sched_cfg_data *this, bcmbal_presence_mask fields_present); |
| 3337 | |
| 3338 | /** Packs a bcmbal_tm_sched_cfg_data to bytes |
| 3339 | * |
| 3340 | * \param this Pointer to the object to pack |
| 3341 | * \param buf Pointer to the buffer to write to |
| 3342 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3343 | * \return TRUE if the pack was successful, FALSE otherwise |
| 3344 | */ |
| 3345 | bcmos_bool bcmbal_tm_sched_cfg_data_pack(const bcmbal_tm_sched_cfg_data *this, bcmbal_buf *buf, bcmbal_presence_mask fields_present); |
| 3346 | |
| 3347 | /** Gets the number of bytes that a bcmbal_tm_sched_cfg_data would occupy on the |
| 3348 | * wire |
| 3349 | * |
| 3350 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3351 | * \return The structure size in bytes |
| 3352 | */ |
| 3353 | uint32_t bcmbal_tm_sched_cfg_data_get_packed_length(const bcmbal_tm_sched_cfg_data *this, bcmbal_presence_mask fields_present); |
| 3354 | |
| 3355 | /** Unpacks a bcmbal_tm_sched_cfg_data from bytes |
| 3356 | * |
| 3357 | * \param this Pointer to the object to unpack |
| 3358 | * \param buf Pointer to the buffer to read from |
| 3359 | * \param extra_mem Pointer to the first location in memory to use to store |
| 3360 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 3361 | * a NULL pointer is encountered. |
| 3362 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3363 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 3364 | */ |
| 3365 | bcmos_bool bcmbal_tm_sched_cfg_data_unpack(bcmbal_tm_sched_cfg_data *this, bcmbal_buf *buf, void **extra_mem, bcmbal_presence_mask fields_present); |
| 3366 | |
| 3367 | /** Scans past a packed bcmbal_tm_sched_cfg_data struct and collects memory |
| 3368 | * requirements above and beyond sizeof() |
| 3369 | * |
| 3370 | * \param packed A stream pointing to the packed byte stream |
| 3371 | * \param extra_mem Number of additional storage bytes required |
| 3372 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3373 | * \return TRUE on success, FALSE on failure |
| 3374 | */ |
| 3375 | bcmos_bool bcmbal_tm_sched_cfg_data_scan(bcmbal_buf *packed, uint32_t *extra_mem, bcmbal_presence_mask fields_present); |
| 3376 | |
| 3377 | /** Checks if any field in the bcmbal_tm_sched_cfg_data is out of bounds |
| 3378 | * |
| 3379 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3380 | * \param failed_prop Reference to the property that was out of range (only set |
| 3381 | * on failure) |
| 3382 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 3383 | */ |
| 3384 | bcmos_bool bcmbal_tm_sched_cfg_data_bounds_check(const bcmbal_tm_sched_cfg_data *this, bcmbal_presence_mask fields_present, bcmbal_tm_sched_cfg_id *failed_prop); |
| 3385 | |
| 3386 | /** Initializes a bcmbal_tm_sched_ind_data struct. This sets all fields to |
| 3387 | * default values. |
| 3388 | * |
| 3389 | * \param this Pointer to the structure |
| 3390 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3391 | */ |
| 3392 | void bcmbal_tm_sched_ind_data_set_default(bcmbal_tm_sched_ind_data *this, bcmbal_presence_mask fields_present); |
| 3393 | |
| 3394 | /** Packs a bcmbal_tm_sched_ind_data to bytes |
| 3395 | * |
| 3396 | * \param this Pointer to the object to pack |
| 3397 | * \param buf Pointer to the buffer to write to |
| 3398 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3399 | * \return TRUE if the pack was successful, FALSE otherwise |
| 3400 | */ |
| 3401 | bcmos_bool bcmbal_tm_sched_ind_data_pack(const bcmbal_tm_sched_ind_data *this, bcmbal_buf *buf, bcmbal_presence_mask fields_present); |
| 3402 | |
| 3403 | /** Gets the number of bytes that a bcmbal_tm_sched_ind_data would occupy on the |
| 3404 | * wire |
| 3405 | * |
| 3406 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3407 | * \return The structure size in bytes |
| 3408 | */ |
| 3409 | uint32_t bcmbal_tm_sched_ind_data_get_packed_length(const bcmbal_tm_sched_ind_data *this, bcmbal_presence_mask fields_present); |
| 3410 | |
| 3411 | /** Unpacks a bcmbal_tm_sched_ind_data from bytes |
| 3412 | * |
| 3413 | * \param this Pointer to the object to unpack |
| 3414 | * \param buf Pointer to the buffer to read from |
| 3415 | * \param extra_mem Pointer to the first location in memory to use to store |
| 3416 | * pointer fields that are NULL. Setting this to NULL will cause an error when |
| 3417 | * a NULL pointer is encountered. |
| 3418 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3419 | * \return TRUE if the unpack was successful, FALSE otherwise |
| 3420 | */ |
| 3421 | bcmos_bool bcmbal_tm_sched_ind_data_unpack(bcmbal_tm_sched_ind_data *this, bcmbal_buf *buf, void **extra_mem, bcmbal_presence_mask fields_present); |
| 3422 | |
| 3423 | /** Scans past a packed bcmbal_tm_sched_ind_data struct and collects memory |
| 3424 | * requirements above and beyond sizeof() |
| 3425 | * |
| 3426 | * \param packed A stream pointing to the packed byte stream |
| 3427 | * \param extra_mem Number of additional storage bytes required |
| 3428 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3429 | * \return TRUE on success, FALSE on failure |
| 3430 | */ |
| 3431 | bcmos_bool bcmbal_tm_sched_ind_data_scan(bcmbal_buf *packed, uint32_t *extra_mem, bcmbal_presence_mask fields_present); |
| 3432 | |
| 3433 | /** Checks if any field in the bcmbal_tm_sched_ind_data is out of bounds |
| 3434 | * |
| 3435 | * \param fields_present Bitmask of which fields are present in the structure. |
| 3436 | * \param failed_prop Reference to the property that was out of range (only set |
| 3437 | * on failure) |
| 3438 | * \return TRUE if all fields are in the correct range, FALSE otherwise |
| 3439 | */ |
| 3440 | bcmos_bool bcmbal_tm_sched_ind_data_bounds_check(const bcmbal_tm_sched_ind_data *this, bcmbal_presence_mask fields_present, bcmbal_tm_sched_ind_id *failed_prop); |
| 3441 | #endif /* BAL_MODEL_FUNCS */ |