/*
// Copyright (c) 2019 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
*/

#ifndef OC_CLOCK_UTIL_H
#define OC_CLOCK_UTIL_H

#include "oc_config.h"
size_t oc_clock_time_rfc3339(char *out_buf, size_t out_buf_len);

size_t oc_clock_encode_time_rfc3339(oc_clock_time_t time, char *out_buf,
                                    size_t out_buf_len);

oc_clock_time_t oc_clock_parse_time_rfc3339(const char *in_buf,
                                            size_t in_buf_len);

#endif /* OC_CLOCK_UTIL_H */

/*
// Copyright (c) 2019 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
*/

#ifndef OC_CLOCK_UTIL_H
#define OC_CLOCK_UTIL_H

#include "oc_config.h"
#include <stddef.h>

size_t oc_clock_time_rfc3339(char *out_buf, size_t out_buf_len);

size_t oc_clock_encode_time_rfc3339(oc_clock_time_t time, char *out_buf,
                                    size_t out_buf_len);

oc_clock_time_t oc_clock_parse_time_rfc3339(const char *in_buf,
                                            size_t in_buf_len);

#endif /* OC_CLOCK_UTIL_H */

Fix unknown type name 'size_t' error
Fix unknown type name 'size_t' error

freertos build fails complaining that size_t is an unknown type.
'size_t' is defined in stddef.h so is is included in the
oc_clock_util header file to resolve the error.

Change-Id: I9cfe5daa7850ca33f920be6b276609ee659584c1
Signed-off-by: George Nash <acbdc39d528a4315fe0b532d55c50ae46f5c1667@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/27890
Tested-by: IoTivity Jenkins <6267f6022d49a8a37a7fe97da24aebfab797522c@iotivity.org>
Reviewed-by: Kishen Maloor <c62ddea3cd661a9268bff15f07fc2229cdc9ac02@intel.com>
