Lines Matching defs:_h

42 def _h(fmt, *args):
58 _h(fmt, *args)
80 being sent to the output via _h und _c.
269 _h('/**')
270 _h(' * @defgroup XCB_%s_API XCB %s API', _ns.ext_name, _ns.ext_name)
271 _h(' * @brief %s XCB Protocol Implementation.', _ns.ext_name)
272 _h(' * @{')
273 _h(' **/')
274 _h('')
275 _h('#ifndef __%s_H', _ns.header.upper())
276 _h('#define __%s_H', _ns.header.upper())
277 _h('')
278 _h('#include "xcb.h"')
297 _h('')
298 _h('#ifdef __cplusplus')
299 _h('extern "C" {')
300 _h('#endif')
303 _h('')
304 _h('#define XCB_%s_MAJOR_VERSION %s', _ns.ext_name.upper(), _ns.major_version)
305 _h('#define XCB_%s_MINOR_VERSION %s', _ns.ext_name.upper(), _ns.minor_version)
306 _h('') #XXX
307 _h('extern xcb_extension_t %s;', _ns.c_ext_global_name)
321 _h('')
322 _h('#ifdef __cplusplus')
323 _h('}')
324 _h('#endif')
326 _h('')
327 _h('#endif')
328 _h('')
329 _h('/**')
330 _h(' * @}')
331 _h(' */')
369 _h('')
370 _h('typedef enum %s {', tname)
381 _h(' %s%s%s%s%s', _n(name + (enam,)).upper(), equals, eval, comma, doc)
383 _h('} %s;', tname)
1368 _h("%s);" % param_str[-1].rstrip(','))
1562 _h('')
1563 _h('/**')
1564 _h(' * @brief %s', self.c_iterator_type)
1565 _h(' **/')
1566 _h('typedef struct %s {', self.c_iterator_type)
1567 _h(' %s *data;', self.c_type)
1568 _h(' int%s rem;', ' ' * (len(self.c_type) - 2))
1569 _h(' int%s index;', ' ' * (len(self.c_type) - 2))
1574 _h(' %s%s %s; /**< */',
1578 _h('} %s;', self.c_iterator_type)
1582 _h('')
1583 _h('/**')
1584 _h(' * Get the next element of the iterator')
1585 _h(' * @param i Pointer to a %s', self.c_iterator_type)
1586 _h(' *')
1587 _h(' * Get the next element in the iterator. The member rem is')
1588 _h(' * decreased by one. The member data points to the next')
1589 _h(' * element. The member index is increased by sizeof(%s)', self.c_type)
1590 _h(' */')
1593 _h('%s (%s *i);', self.c_next_name, self.c_iterator_type)
1627 _h('')
1628 _h('/**')
1629 _h(' * Return the iterator pointing to the last element')
1630 _h(' * @param i An %s', self.c_iterator_type)
1631 _h(' * @return The iterator pointing to the last element')
1632 _h(' *')
1633 _h(' * Set the current element in the iterator to the last element.')
1634 _h(' * The member rem is set to 0. The member data points to the')
1635 _h(' * last element.')
1636 _h(' */')
1639 _h('%s (%s i);', self.c_end_name, self.c_iterator_type)
1789 _h('%s (const %s *R);', field.c_accessor_name, c_type)
1807 _h('%s (const %s *R);', field.c_accessor_name, c_type)
1916 _h('%s (%s);', field.c_accessor_name, params[idx][0])
1943 _h('%sconst %s *S%s);', spacing, S_obj.c_type, add_param_str)
1946 _h('%s (const %s *R%s);', field.c_length_name, c_type, add_param_str)
1986 _h('%sconst %s *S%s);', spacing, S_obj.c_type, add_param_str)
1989 _h('%s (const %s *R%s);', field.c_end_name, c_type, add_param_str)
2025 _h('%sconst %s *S%s);', spacing, S_obj.c_type, add_param_str)
2028 _h('%s (const %s *R%s);', field.c_iterator_name, c_type, add_param_str)
2097 _h('')
2098 _h('typedef %s %s;', _t(self.name), my_name)
2109 _h('')
2110 _h('/**')
2111 _h(' * @brief %s', self.c_type)
2112 _h(' **/')
2113 _h('typedef %s %s {', self.c_container, self.c_type)
2135 _h('%s %s%s %s%s;', space, field.c_field_type, spacing, field.c_field_name, field.c_subscript)
2139 _h('%s %s%s *%s%s;', space, field.c_field_type, spacing, field.c_field_name, field.c_subscript)
2148 _h(' struct {')
2153 _h(' } %s;', b.c_field_name)
2155 _h('} %s%s;', 'XCB_PACKED ' if force_packed else '', self.c_type)
2247 _h('')
2248 _h('/**')
2251 _h(' * @brief ' + self.doc.brief)
2253 _h(' * No brief doc yet')
2255 _h(' *')
2256 _h(' * @param c The connection')
2275 _h(' * @param %s A bitmask of #%s values.', field.c_field_name, tname)
2283 _h(' * @param %s %s', field.c_field_name, "\n * ".join(desc))
2288 _h(' * @return A cookie')
2289 _h(' *')
2297 _h(' * ' + "\n * ".join(desc))
2299 _h(' * No description yet')
2301 _h(' * Delivers a request to the X server.')
2302 _h(' *')
2304 _h(' * This form can be used only if the request will not cause')
2305 _h(' * a reply to be generated. Any returned error will be')
2306 _h(' * saved for handling by xcb_request_check().')
2308 _h(' * This form can be used only if the request will cause')
2309 _h(' * a reply to be generated. Any returned error will be')
2310 _h(' * placed in the event queue.')
2311 _h(' */')
2317 _h('%s (xcb_connection_t%s *c%s', func_name, spacing, comma)
2332 _h('%s%s%s %s%s%s', func_spacing, c_field_const_type,
2547 _h('')
2548 _h('/**')
2549 _h(' * Return the reply')
2550 _h(' * @param c The connection')
2551 _h(' * @param cookie The cookie')
2552 _h(' * @param e The xcb_generic_error_t supplied')
2553 _h(' *')
2554 _h(' * Returns the reply of the request asked by')
2555 _h(' *')
2556 _h(' * The parameter @p e supplied to this function must be NULL if')
2557 _h(' * %s(). is used.', self.c_unchecked_name)
2558 _h(' * Otherwise, it stores the error if any.')
2559 _h(' *')
2560 _h(' * The returned value must be freed by the caller using free().')
2561 _h(' */')
2566 _h('%sxcb_generic_error_t%s **e);', spacing3, spacing2)
2609 _h('')
2610 _h('/**')
2611 _h(' * Return the reply fds')
2612 _h(' * @param c The connection')
2613 _h(' * @param reply The reply')
2614 _h(' *')
2615 _h(' * Returns a pointer to the array of reply fds of the reply.')
2616 _h(' *')
2617 _h(' * The returned value points into the reply and must not be free().')
2618 _h(' * The fds are not managed by xcb. You must close() them before freeing the reply.')
2619 _h(' */')
2623 _h('%s%s *reply);', spacing3, self.c_reply_type)
2637 _h('')
2638 _h('/** Opcode for %s. */', _n(name))
2639 _h('#define %s %s', _n(name).upper(), opcode)
2646 _h('')
2647 _h('/**')
2648 _h(' * @brief %s', self.c_cookie_type)
2649 _h(' **/')
2650 _h('typedef struct %s {', self.c_cookie_type)
2651 _h(' unsigned int sequence;')
2652 _h('} %s;', self.c_cookie_type)
2735 #_h('%s %s%s *%s%s; /**< */', space, field.c_field_type, spacing, field.c_field_name, field.c_subscript)
3284 _h('')
3285 _h('typedef %s %s;', _t(self.name + ('event',)), _t(name + ('event',)))
3291 _h('')
3292 _h('int')
3293 _h('%s (const void *_buffer /**< */);', _n(name + ('sizeof',)))
3319 _h('')
3320 _h('typedef %s %s;', _t(self.name + ('error',)), _t(name + ('error',)))