@@ -480,24 +480,25 @@ _Bool z_str_array_is_empty(const z_str_array_t *a);
480480_OWNED_TYPE_PTR (z_str_array_t , str_array )
481481_LOANED_TYPE (z_str_array_t , str_array )
482482
483- typedef void (* _z_dropper_handler_t )(void * arg );
484- typedef void (* _z_owned_sample_handler_t )(z_owned_sample_t * sample , void * arg );
483+ typedef void (* z_dropper_handler_t )(void * arg );
484+ typedef void (* z_owned_sample_handler_t )(z_owned_sample_t * sample , void * arg );
485+ typedef _z_data_handler_t z_data_handler_t ;
485486
486487/**
487488 * Represents the sample closure.
488489 *
489490 * A closure is a structure that contains all the elements for stateful, memory-leak-free callbacks.
490491 *
491492 * Members:
492- * _z_data_handler_t call: `void *call(const struct z_sample_t*, const void *context)` is the callback function.
493- * _z_dropper_handler_t drop: `void *drop(void*)` allows the callback's state to be freed.
493+ * z_data_handler_t call: `void *call(const struct z_sample_t*, const void *context)` is the callback function.
494+ * z_dropper_handler_t drop: `void *drop(void*)` allows the callback's state to be freed.
494495 * void *context: a pointer to an arbitrary state.
495496 */
496497// TODO(sashacmc):
497498typedef struct {
498499 void * context ;
499- _z_data_handler_t call ;
500- _z_dropper_handler_t drop ;
500+ z_data_handler_t call ;
501+ z_dropper_handler_t drop ;
501502} z_owned_closure_sample_t ;
502503
503504void z_closure_sample_call (const z_owned_closure_sample_t * closure , const z_loaned_sample_t * sample );
@@ -508,20 +509,22 @@ void z_closure_sample_call(const z_owned_closure_sample_t *closure, const z_loan
508509 * A closure is a structure that contains all the elements for stateful, memory-leak-free callbacks.
509510 *
510511 * Members:
511- * _z_owned_sample_handler_t call: `void *call(const struct z_owned_sample_t*, const void *context)` is the callback
512+ * z_owned_sample_handler_t call: `void *call(const struct z_owned_sample_t*, const void *context)` is the callback
512513 * function.
513- * _z_dropper_handler_t drop: `void *drop(void*)` allows the callback's state to be freed. void *context: a
514+ * z_dropper_handler_t drop: `void *drop(void*)` allows the callback's state to be freed. void *context: a
514515 * pointer to an arbitrary state.
515516 */
516517// TODO(sashacmc):
517518typedef struct {
518519 void * context ;
519- _z_owned_sample_handler_t call ;
520- _z_dropper_handler_t drop ;
520+ z_owned_sample_handler_t call ;
521+ z_dropper_handler_t drop ;
521522} z_owned_closure_owned_sample_t ;
522523
523524void z_closure_owned_sample_call (const z_owned_closure_owned_sample_t * closure , z_owned_sample_t * sample );
524525
526+ typedef _z_queryable_handler_t z_queryable_handler_t ;
527+
525528/**
526529 * Represents the query callback closure.
527530 *
@@ -530,58 +533,59 @@ void z_closure_owned_sample_call(const z_owned_closure_owned_sample_t *closure,
530533 * Members:
531534 * _z_queryable_handler_t call: `void (*_z_queryable_handler_t)(z_query_t *query, void *arg)` is the
532535 * callback function.
533- * _z_dropper_handler_t drop: `void *drop(void*)` allows the callback's state to be freed.
536+ * z_dropper_handler_t drop: `void *drop(void*)` allows the callback's state to be freed.
534537 * void *context: a pointer to an arbitrary state.
535538 */
536539// TODO(sashacmc):
537540typedef struct {
538541 void * context ;
539- _z_queryable_handler_t call ;
540- _z_dropper_handler_t drop ;
542+ z_queryable_handler_t call ;
543+ z_dropper_handler_t drop ;
541544} z_owned_closure_query_t ;
542545
543546void z_closure_query_call (const z_owned_closure_query_t * closure , const z_loaned_query_t * query );
544547
545- typedef void (* _z_owned_query_handler_t )(z_owned_query_t * query , void * arg );
548+ typedef void (* z_owned_query_handler_t )(z_owned_query_t * query , void * arg );
546549
547550/**
548551 * Represents the owned query closure.
549552 *
550553 * A closure is a structure that contains all the elements for stateful, memory-leak-free callbacks.
551554 *
552555 * Members:
553- * _z_owned_query_handler_t call: `void *call(const struct z_owned_query_t*, const void *context)` is the callback
556+ * z_owned_query_handler_t call: `void *call(const struct z_owned_query_t*, const void *context)` is the callback
554557 * function.
555- * _z_dropper_handler_t drop: `void *drop(void*)` allows the callback's state to be freed. void *context: a
558+ * z_dropper_handler_t drop: `void *drop(void*)` allows the callback's state to be freed. void *context: a
556559 * pointer to an arbitrary state.
557560 */
558561// TODO(sashacmc):
559562typedef struct {
560563 void * context ;
561- _z_owned_query_handler_t call ;
562- _z_dropper_handler_t drop ;
564+ z_owned_query_handler_t call ;
565+ z_dropper_handler_t drop ;
563566} z_owned_closure_owned_query_t ;
564567
565568void z_closure_owned_query_call (const z_owned_closure_owned_query_t * closure , z_owned_query_t * query );
566569
567570typedef void (* z_owned_reply_handler_t )(z_owned_reply_t * reply , void * arg );
571+ typedef _z_reply_handler_t z_reply_handler_t ;
568572
569573/**
570574 * Represents the query reply callback closure.
571575 *
572576 * A closure is a structure that contains all the elements for stateful, memory-leak-free callbacks.
573577 *
574578 * Members:
575- * _z_reply_handler_t call: `void (*_z_reply_handler_t)(_z_reply_t *reply, void *arg)` is the
579+ * z_reply_handler_t call: `void (*_z_reply_handler_t)(_z_reply_t *reply, void *arg)` is the
576580 * callback function.
577- * _z_dropper_handler_t drop: `void *drop(void*)` allows the callback's state to be freed.
581+ * z_dropper_handler_t drop: `void *drop(void*)` allows the callback's state to be freed.
578582 * void *context: a pointer to an arbitrary state.
579583 */
580584// TODO(sashacmc):
581585typedef struct {
582586 void * context ;
583- _z_reply_handler_t call ;
584- _z_dropper_handler_t drop ;
587+ z_reply_handler_t call ;
588+ z_dropper_handler_t drop ;
585589} z_owned_closure_reply_t ;
586590
587591void z_closure_reply_call (const z_owned_closure_reply_t * closure , const z_loaned_reply_t * reply );
@@ -594,14 +598,14 @@ void z_closure_reply_call(const z_owned_closure_reply_t *closure, const z_loaned
594598 * Members:
595599 * z_owned_reply_handler_t call: `void (*z_owned_reply_handler_t)(const z_owned_reply_t *reply, void *arg)` is the
596600 * callback function.
597- * _z_dropper_handler_t drop: `void *drop(void*)` allows the callback's state to be freed.
601+ * z_dropper_handler_t drop: `void *drop(void*)` allows the callback's state to be freed.
598602 * void *context: a pointer to an arbitrary state.
599603 */
600604// TODO(sashacmc):
601605typedef struct {
602606 void * context ;
603607 z_owned_reply_handler_t call ;
604- _z_dropper_handler_t drop ;
608+ z_dropper_handler_t drop ;
605609} z_owned_closure_owned_reply_t ;
606610
607611void z_closure_owned_reply_call (const z_owned_closure_owned_reply_t * closure , z_owned_reply_t * reply );
@@ -616,14 +620,14 @@ typedef void (*z_owned_hello_handler_t)(z_owned_hello_t *hello, void *arg);
616620 * Members:
617621 * z_owned_hello_handler_t call: `void (*z_owned_hello_handler_t)(const z_owned_hello_t *hello, void *arg)` is the
618622 * callback function.
619- * _z_dropper_handler_t drop: `void *drop(void*)` allows the callback's state to be freed.
623+ * z_dropper_handler_t drop: `void *drop(void*)` allows the callback's state to be freed.
620624 * void *context: a pointer to an arbitrary state.
621625 */
622626// TODO(sashacmc):
623627typedef struct {
624628 void * context ;
625629 z_owned_hello_handler_t call ;
626- _z_dropper_handler_t drop ;
630+ z_dropper_handler_t drop ;
627631} z_owned_closure_hello_t ;
628632
629633void z_closure_hello_call (const z_owned_closure_hello_t * closure , z_owned_hello_t * hello );
@@ -637,14 +641,14 @@ typedef void (*z_id_handler_t)(const z_id_t *id, void *arg);
637641 *
638642 * Members:
639643 * z_id_handler_t call: `void (*z_id_handler_t)(const z_id_t *id, void *arg)` is the callback function.
640- * _z_dropper_handler_t drop: `void *drop(void*)` allows the callback's state to be freed.
644+ * z_dropper_handler_t drop: `void *drop(void*)` allows the callback's state to be freed.
641645 * void *context: a pointer to an arbitrary state.
642646 */
643647// TODO(sashacmc):
644648typedef struct {
645649 void * context ;
646650 z_id_handler_t call ;
647- _z_dropper_handler_t drop ;
651+ z_dropper_handler_t drop ;
648652} z_owned_closure_zid_t ;
649653
650654void z_closure_zid_call (const z_owned_closure_zid_t * closure , const z_id_t * id );
0 commit comments