Lines Matching +full:- +full:- +full:with +full:- +full:coroutine
5 Copyright (C) 2014-2018 Red Hat, Inc.
13 See the COPYING file in the top-level directory.
45 coroutine: bool) -> str:
50 coroutine_fn='coroutine_fn ' if coroutine else '',
59 gen_tracing: bool) -> str:
87 trace_qmp_enter_%(name)s(req_json->str);
128 trace_qmp_exit_%(name)s(ret_json->str, true);
142 def gen_marshal_output(ret_type: QAPISchemaType) -> str:
164 coroutine: bool) -> str:
166 'coroutine_fn': 'coroutine_fn ' if coroutine else '',
173 coroutine: bool) -> str:
177 proto=build_marshal_proto(name, coroutine))
180 def gen_trace(name: str) -> str:
193 coroutine: bool) -> str:
207 proto=build_marshal_proto(name, coroutine))
283 coroutine: bool) -> str:
292 if coroutine:
308 prefix, 'qapi-commands',
309 ' * Schema-defined QAPI/QMP commands', None, __doc__,
314 def _begin_user_module(self, name: str) -> None:
316 commands = self._module_basename('qapi-commands', name)
317 types = self._module_basename('qapi-types', name)
318 visit = self._module_basename('qapi-visit', name)
321 #include "qapi/compat-policy.h"
324 #include "qapi/dealloc-visitor.h"
331 if self._gen_tracing and commands != 'qapi-commands':
334 #include "trace/trace-%(nm)s_trace_events.h"
337 # We use c_name(commands, protect=False) to turn '-' into '_', to
346 def visit_begin(self, schema: QAPISchema) -> None:
349 #include "qapi/qmp-registry.h"
356 #include "%(prefix)sqapi-commands.h"
357 #include "%(prefix)sqapi-init-commands.h"
358 #include "%(prefix)sqapi-features.h"
368 def visit_end(self) -> None:
369 with self._temp_module('./init'):
386 coroutine: bool) -> None:
389 # FIXME: If T is a user-defined type, the user is responsible
391 # conjunction of the T-returning commands' conditions. If T
392 # is a built-in type, this isn't possible: the
396 with ifcontext(ret_type.ifcond,
399 with ifcontext(ifcond, self._genh, self._genc):
401 ret_type, coroutine))
402 self._genh.add(gen_marshal_decl(name, coroutine))
404 self._gen_tracing, coroutine))
407 with self._temp_module('./init'):
408 with ifcontext(ifcond, self._genh, self._genc):
411 allow_preconfig, coroutine))
417 gen_tracing: bool) -> None: