Lines Matching full:out
34 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
488 struct lwm2m_output_context out; member
533 int (*put_begin)(struct lwm2m_output_context *out,
535 int (*put_end)(struct lwm2m_output_context *out,
537 int (*put_begin_oi)(struct lwm2m_output_context *out,
539 int (*put_end_oi)(struct lwm2m_output_context *out,
541 int (*put_begin_r)(struct lwm2m_output_context *out,
543 int (*put_end_r)(struct lwm2m_output_context *out,
545 int (*put_begin_ri)(struct lwm2m_output_context *out,
547 int (*put_end_ri)(struct lwm2m_output_context *out,
549 int (*put_data_timestamp)(struct lwm2m_output_context *out,
551 int (*put_s8)(struct lwm2m_output_context *out,
553 int (*put_s16)(struct lwm2m_output_context *out,
555 int (*put_s32)(struct lwm2m_output_context *out,
557 int (*put_s64)(struct lwm2m_output_context *out,
559 int (*put_time)(struct lwm2m_output_context *out,
561 int (*put_string)(struct lwm2m_output_context *out,
564 int (*put_float)(struct lwm2m_output_context *out,
566 int (*put_bool)(struct lwm2m_output_context *out,
568 int (*put_opaque)(struct lwm2m_output_context *out,
571 int (*put_objlnk)(struct lwm2m_output_context *out,
574 int (*put_corelink)(struct lwm2m_output_context *out,
595 static inline void engine_set_out_user_data(struct lwm2m_output_context *out, in engine_set_out_user_data() argument
598 out->user_data = user_data; in engine_set_out_user_data()
601 static inline void *engine_get_out_user_data(struct lwm2m_output_context *out) in engine_get_out_user_data() argument
603 return out->user_data; in engine_get_out_user_data()
607 engine_clear_out_user_data(struct lwm2m_output_context *out) in engine_clear_out_user_data() argument
609 out->user_data = NULL; in engine_clear_out_user_data()
631 static inline int engine_put_begin(struct lwm2m_output_context *out, in engine_put_begin() argument
634 if (out->writer->put_begin) { in engine_put_begin()
635 return out->writer->put_begin(out, path); in engine_put_begin()
641 static inline int engine_put_end(struct lwm2m_output_context *out, in engine_put_end() argument
644 if (out->writer->put_end) { in engine_put_end()
645 return out->writer->put_end(out, path); in engine_put_end()
651 static inline int engine_put_begin_oi(struct lwm2m_output_context *out, in engine_put_begin_oi() argument
654 if (out->writer->put_begin_oi) { in engine_put_begin_oi()
655 return out->writer->put_begin_oi(out, path); in engine_put_begin_oi()
661 static inline int engine_put_end_oi(struct lwm2m_output_context *out, in engine_put_end_oi() argument
664 if (out->writer->put_end_oi) { in engine_put_end_oi()
665 return out->writer->put_end_oi(out, path); in engine_put_end_oi()
671 static inline int engine_put_begin_r(struct lwm2m_output_context *out, in engine_put_begin_r() argument
674 if (out->writer->put_begin_r) { in engine_put_begin_r()
675 return out->writer->put_begin_r(out, path); in engine_put_begin_r()
681 static inline int engine_put_end_r(struct lwm2m_output_context *out, in engine_put_end_r() argument
684 if (out->writer->put_end_r) { in engine_put_end_r()
685 return out->writer->put_end_r(out, path); in engine_put_end_r()
691 static inline int engine_put_begin_ri(struct lwm2m_output_context *out, in engine_put_begin_ri() argument
694 if (out->writer->put_begin_ri) { in engine_put_begin_ri()
695 return out->writer->put_begin_ri(out, path); in engine_put_begin_ri()
701 static inline int engine_put_end_ri(struct lwm2m_output_context *out, in engine_put_end_ri() argument
704 if (out->writer->put_end_ri) { in engine_put_end_ri()
705 return out->writer->put_end_ri(out, path); in engine_put_end_ri()
711 static inline int engine_put_s8(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, in engine_put_s8() argument
714 if (out->writer->put_s8) { in engine_put_s8()
715 return out->writer->put_s8(out, path, value); in engine_put_s8()
720 static inline int engine_put_s16(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, in engine_put_s16() argument
723 if (out->writer->put_s16) { in engine_put_s16()
724 return out->writer->put_s16(out, path, value); in engine_put_s16()
729 static inline int engine_put_s32(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, in engine_put_s32() argument
732 if (out->writer->put_s32) { in engine_put_s32()
733 return out->writer->put_s32(out, path, value); in engine_put_s32()
738 static inline int engine_put_s64(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, in engine_put_s64() argument
741 if (out->writer->put_s64) { in engine_put_s64()
742 return out->writer->put_s64(out, path, value); in engine_put_s64()
747 static inline int engine_put_string(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, in engine_put_string() argument
750 if (out->writer->put_string) { in engine_put_string()
751 return out->writer->put_string(out, path, buf, buflen); in engine_put_string()
756 static inline int engine_put_float(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, in engine_put_float() argument
759 if (out->writer->put_float) { in engine_put_float()
760 return out->writer->put_float(out, path, value); in engine_put_float()
765 static inline int engine_put_time(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, in engine_put_time() argument
768 if (out->writer->put_time) { in engine_put_time()
769 return out->writer->put_time(out, path, value); in engine_put_time()
774 static inline int engine_put_bool(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, in engine_put_bool() argument
777 if (out->writer->put_bool) { in engine_put_bool()
778 return out->writer->put_bool(out, path, value); in engine_put_bool()
783 static inline int engine_put_opaque(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, in engine_put_opaque() argument
786 if (out->writer->put_opaque) { in engine_put_opaque()
787 return out->writer->put_opaque(out, path, buf, buflen); in engine_put_opaque()
793 static inline int engine_put_objlnk(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, in engine_put_objlnk() argument
796 if (out->writer->put_objlnk) { in engine_put_objlnk()
797 return out->writer->put_objlnk(out, path, value); in engine_put_objlnk()
802 static inline int engine_put_corelink(struct lwm2m_output_context *out, in engine_put_corelink() argument
805 if (out->writer->put_corelink) { in engine_put_corelink()
806 return out->writer->put_corelink(out, path); in engine_put_corelink()
812 static inline int engine_put_timestamp(struct lwm2m_output_context *out, time_t timestamp) in engine_put_timestamp() argument
814 if (out->writer->put_data_timestamp) { in engine_put_timestamp()
815 return out->writer->put_data_timestamp(out, timestamp); in engine_put_timestamp()