33 #include <epan/packet.h>
34 #include <epan/ptvcursor.h>
39 static int proto_uavo = -1;
50 void proto_reg_handoff_op_uavobjects_$(
NAMELC)(
void);
52 static int dissect_uavo(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
void *
data _U_)
56 col_append_str(pinfo->cinfo, COL_INFO,
"($(NAME))");
59 proto_tree *uavo_tree = NULL;
61 proto_item *ti = NULL;
64 ti = proto_tree_add_item(tree, proto_uavo, tvb, 0, -1, ENC_NA);
67 uavo_tree = proto_item_add_subtree(ti, ett_uavo);
70 cursor = ptvcursor_new(uavo_tree, tvb, 0);
75 offset += ptvcursor_current_offset(cursor);
77 ptvcursor_free(cursor);
85 void proto_register_op_objects_$(
NAMELC)(
void)
91 static gint *ett[] = {
96 proto_uavo = proto_register_protocol(
"UAVO $(NAME)",
101 proto_register_subtree_array(ett, array_length(ett));
102 proto_register_field_array(proto_uavo, hf, array_length(hf));
105 void proto_reg_handoff_op_uavobjects_$(
NAMELC)(
void)
107 dissector_handle_t uavo_handle;
108 uavo_handle = new_create_dissector_handle(dissect_uavo, proto_uavo);
111 dissector_add_uint(
"uavtalk.objid", $(OBJIDHEX), uavo_handle);
SUBTREESTATICS(FIELDHANDLES)
void proto_register_op_objects_() NAMELC(void)