Lines Matching refs:tag

62                 'Entry "%s" duplicates tag number %d from "%s" '
90 """Prints the tag definitions for a structure."""
253 ' ev_uint32_t tag;\n'
255 ' if (evtag_peek(evbuf, &tag) == -1)\n'
257 ' switch (tag) {\n'
316 ' ev_uint32_t tag;\n'
321 ' if (evtag_unmarshal(evbuf, &tag, tmp) == -1'
322 ' || tag != need_tag)\n'
338 'evtag_marshal_%(name)s(struct evbuffer *evbuf, ev_uint32_t tag, '
344 ' evtag_marshal_buffer(evbuf, tag, buf_);\n '
349 def __init__(self, type, name, tag):
352 self._tag = int(tag)
505 def __init__(self, type, name, tag, length):
507 Entry.__init__(self, type, name, tag)
566 code = [ 'if (evtag_unmarshal_fixed(%(buf)s, %(tag)s, '
577 'tag' : tag_name }))
605 def __init__(self, type, name, tag, bits=32):
607 Entry.__init__(self, type, name, tag)
634 'if (evtag_unmarshal_%(ma)s(%(buf)s, %(tag)s, &%(var)s) == -1) {',
641 'tag' : tag_name,
661 def __init__(self, type, name, tag):
663 Entry.__init__(self, type, name, tag)
727 code = ['if (evtag_unmarshal_string(%(buf)s, %(tag)s, &%(var)s) == -1) {',
734 'tag' : tag_name,
769 def __init__(self, type, name, tag, refname):
771 Entry.__init__(self, type, name, tag)
897 'if (evtag_unmarshal_%(refname)s(%(buf)s, %(tag)s, '
905 'tag' : tag_name,
942 def __init__(self, type, name, tag):
944 Entry.__init__(self, type, name, tag)
1011 'if (evtag_unmarshal_fixed(%(buf)s, %(tag)s, %(var)s, '
1019 'tag' : tag_name,
1210 'tag' : tag_name,
1316 tag = ''
1361 raise RpcGenError('Expected tag number: \"%s\"' % entry)
1362 tag = int(token, 0)
1368 raise RpcGenError('Need tag number: \"%s\"' % entry)
1373 newentry = factory.EntryBytes(entry_type, name, tag, fixed_length)
1375 newentry = factory.EntryVarBytes(entry_type, name, tag)
1377 newentry = factory.EntryInt(entry_type, name, tag)
1379 newentry = factory.EntryInt(entry_type, name, tag, bits=64)
1381 newentry = factory.EntryString(entry_type, name, tag)
1386 newentry = factory.EntryStruct(entry_type, name, tag, res.group(1))
1587 '#include <event2/tag.h>\n\n'
1612 def EntryBytes(self, entry_type, name, tag, fixed_length):
1613 return EntryBytes(entry_type, name, tag, fixed_length)
1615 def EntryVarBytes(self, entry_type, name, tag):
1616 return EntryVarBytes(entry_type, name, tag)
1618 def EntryInt(self, entry_type, name, tag, bits=32):
1619 return EntryInt(entry_type, name, tag, bits)
1621 def EntryString(self, entry_type, name, tag):
1622 return EntryString(entry_type, name, tag)
1624 def EntryStruct(self, entry_type, name, tag, struct_name):
1625 return EntryStruct(entry_type, name, tag, struct_name)