~ubuntu-branches/ubuntu/precise/transmission/precise

« back to all changes in this revision

Viewing changes to third-party/libevent/event_rpcgen.py

  • Committer: Bazaar Package Importer
  • Author(s): Leo Costela
  • Date: 2009-05-17 19:39:51 UTC
  • mto: (1.3.4 upstream) (2.2.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 36.
  • Revision ID: james.westby@ubuntu.com-20090517193951-k8x15sqoxzf7cuyx
ImportĀ upstreamĀ versionĀ 1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
446
446
        Entry.__init__(self, type, name, tag)
447
447
 
448
448
        self._length = length
449
 
        self._ctype = 'uint32_t'
 
449
        self._ctype = 'uint8_t'
450
450
 
451
451
    def GetDeclaration(self, funcname):
452
452
        code = [ 'int %s(struct %s *, %s **);' % (
518
518
    def CodeNew(self, name):
519
519
        code  = ['memset(%s->%s_data, 0, sizeof(%s->%s_data));' % (
520
520
            name, self._name, name, self._name)]
521
 
        code.extend(Entry.CodeNew(self, name))
522
521
        return code
523
522
 
524
523
    def Verify(self):