Lines Matching +full:time +full:- +full:of +full:- +full:flight

3  * Copyright (c) 2018-2019 Foundries.io
5 * SPDX-License-Identifier: Apache-2.0
15 * 1. Redistributions of source code must retain the above copyright
16 * notice, this list of conditions and the following disclaimer.
18 * notice, this list of conditions and the following disclaimer in the
20 * 3. Neither the name of the copyright holder nor the names of its
26 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
30 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
31 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
34 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
35 * OF THE POSSIBILITY OF SUCH DAMAGE.
56 #include <time.h>
107 #define LWM2M_HAS_PERM(of, p) (((of)->permissions & p) == p) argument
128 /* remember that we have already output a value - can be between two block's */
145 #define CPKT_BUF_WRITE(cpkt) (cpkt)->data, &(cpkt)->offset, (cpkt)->max_len
146 #define CPKT_BUF_READ(cpkt) (cpkt)->data, (cpkt)->max_len
147 #define CPKT_BUF_W_PTR(cpkt) ((cpkt)->data + (cpkt)->offset)
148 #define CPKT_BUF_W_SIZE(cpkt) ((cpkt)->max_len - (cpkt)->offset)
153 #define ICTX_BUF_R_LEFT_SZ(i_ctx) ((i_ctx)->in_cpkt->max_len - (i_ctx)->offset)
154 #define ICTX_BUF_R_PTR(i_ctx) ((i_ctx)->in_cpkt->data + (i_ctx)->offset)
479 /* Internal LwM2M message structure to track in-flight messages. */
527 /** Indicate that this is part of outgoing block transfer. */
598 out->user_data = user_data; in engine_set_out_user_data()
603 return out->user_data; in engine_get_out_user_data()
609 out->user_data = NULL; in engine_clear_out_user_data()
615 in->user_data = user_data; in engine_set_in_user_data()
620 return in->user_data; in engine_get_in_user_data()
626 in->user_data = NULL; in engine_clear_in_user_data()
629 /* inline multi-format write / read functions */
634 if (out->writer->put_begin) { in engine_put_begin()
635 return out->writer->put_begin(out, path); in engine_put_begin()
644 if (out->writer->put_end) { in engine_put_end()
645 return out->writer->put_end(out, path); in engine_put_end()
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()
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()
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()
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()
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()
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()
714 if (out->writer->put_s8) { in engine_put_s8()
715 return out->writer->put_s8(out, path, value); in engine_put_s8()
717 return -ENOTSUP; in engine_put_s8()
723 if (out->writer->put_s16) { in engine_put_s16()
724 return out->writer->put_s16(out, path, value); in engine_put_s16()
726 return -ENOTSUP; in engine_put_s16()
732 if (out->writer->put_s32) { in engine_put_s32()
733 return out->writer->put_s32(out, path, value); in engine_put_s32()
735 return -ENOTSUP; in engine_put_s32()
741 if (out->writer->put_s64) { in engine_put_s64()
742 return out->writer->put_s64(out, path, value); in engine_put_s64()
744 return -ENOTSUP; in engine_put_s64()
750 if (out->writer->put_string) { in engine_put_string()
751 return out->writer->put_string(out, path, buf, buflen); in engine_put_string()
753 return -ENOTSUP; in engine_put_string()
759 if (out->writer->put_float) { in engine_put_float()
760 return out->writer->put_float(out, path, value); in engine_put_float()
762 return -ENOTSUP; in engine_put_float()
768 if (out->writer->put_time) { in engine_put_time()
769 return out->writer->put_time(out, path, value); in engine_put_time()
771 return -ENOTSUP; in engine_put_time()
777 if (out->writer->put_bool) { in engine_put_bool()
778 return out->writer->put_bool(out, path, value); in engine_put_bool()
780 return -ENOTSUP; in engine_put_bool()
786 if (out->writer->put_opaque) { in engine_put_opaque()
787 return out->writer->put_opaque(out, path, buf, buflen); in engine_put_opaque()
790 return -ENOTSUP; in engine_put_opaque()
796 if (out->writer->put_objlnk) { in engine_put_objlnk()
797 return out->writer->put_objlnk(out, path, value); in engine_put_objlnk()
799 return -ENOTSUP; in engine_put_objlnk()
805 if (out->writer->put_corelink) { in engine_put_corelink()
806 return out->writer->put_corelink(out, path); in engine_put_corelink()
809 return -ENOTSUP; in engine_put_corelink()
814 if (out->writer->put_data_timestamp) { in engine_put_timestamp()
815 return out->writer->put_data_timestamp(out, timestamp); in engine_put_timestamp()
818 return -ENOTSUP; in engine_put_timestamp()
823 if (in->reader->get_s32) { in engine_get_s32()
824 return in->reader->get_s32(in, value); in engine_get_s32()
826 return -ENOTSUP; in engine_get_s32()
831 if (in->reader->get_s64) { in engine_get_s64()
832 return in->reader->get_s64(in, value); in engine_get_s64()
834 return -ENOTSUP; in engine_get_s64()
839 if (in->reader->get_string) { in engine_get_string()
840 return in->reader->get_string(in, buf, buflen); in engine_get_string()
842 return -ENOTSUP; in engine_get_string()
847 if (in->reader->get_time) { in engine_get_time()
848 return in->reader->get_time(in, value); in engine_get_time()
850 return -ENOTSUP; in engine_get_time()
855 if (in->reader->get_float) { in engine_get_float()
856 return in->reader->get_float(in, value); in engine_get_float()
858 return -ENOTSUP; in engine_get_float()
863 if (in->reader->get_bool) { in engine_get_bool()
864 return in->reader->get_bool(in, value); in engine_get_bool()
866 return -ENOTSUP; in engine_get_bool()
872 if (in->reader->get_opaque) { in engine_get_opaque()
873 return in->reader->get_opaque(in, buf, buflen, opaque, last_block); in engine_get_opaque()
876 return -ENOTSUP; in engine_get_opaque()
881 if (in->reader->get_objlnk) { in engine_get_objlnk()
882 return in->reader->get_objlnk(in, value); in engine_get_objlnk()
884 return -ENOTSUP; in engine_get_objlnk()