From: EunBong Song Date: Wed, 9 Aug 2017 04:20:56 +0000 (-0700) Subject: lwm2m: remove unused header files. X-Git-Tag: 1.1_Public_Release~318^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d59498fee766584fda101e431435ee1936002faf;p=rtos%2Ftinyara.git lwm2m: remove unused header files. apps/include/netutils/commandline.h and apps/include/netutils/connection.h are not used anymore. Remove this. Change-Id: Ie1831be7bbda0570c21426f267ce6d5fb31a80b7 Signed-off-by: EunBong Song --- diff --git a/apps/include/netutils/commandline.h b/apps/include/netutils/commandline.h deleted file mode 100644 index 17ecd4e..0000000 --- a/apps/include/netutils/commandline.h +++ /dev/null @@ -1,72 +0,0 @@ -/**************************************************************************** - * - * Copyright 2016 Samsung Electronics All Rights Reserved. - * - * 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. - * - ****************************************************************************/ -/******************************************************************************* - * - * Copyright (c) 2013 Intel Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * and Eclipse Distribution License v1.0 which accompany this distribution. - * - * The Eclipse Public License is available at - * http://www.eclipse.org/legal/epl-v10.html - * The Eclipse Distribution License is available at - * http://www.eclipse.org/org/documents/edl-v10.php. - * - * Contributors: - * David Navarro, Intel Corporation - initial API and implementation - * - *******************************************************************************/ - -#include - - -#ifdef __cplusplus -#define EXTERN extern "C" -extern "C" -{ -#else -#define EXTERN extern -#endif - -#define COMMAND_END_LIST {NULL, NULL, NULL, NULL, NULL} - -typedef void (*command_handler_t)(char *args, void *user_data); - -typedef struct { - char *name; - char *shortDesc; - char *longDesc; - command_handler_t callback; - void *userData; -} command_desc_t; - -void handle_command(command_desc_t *commandArray, char *buffer); -char *get_end_of_arg(char *buffer); -char *get_next_arg(char *buffer, char **end); -int check_end_of_args(char *buffer); - -void output_buffer(FILE *stream, uint8_t *buffer, int length, int indent); -void output_tlv(FILE *stream, uint8_t *buffer, size_t buffer_len, int indent); -void dump_tlv(FILE *stream, int size, lwm2m_data_t *dataP, int indent); -void output_data(FILE *stream, lwm2m_media_type_t format, uint8_t *buffer, int length, int indent); -void print_status(FILE *stream, uint8_t status); - -#undef EXTERN -#ifdef __cplusplus -} -#endif diff --git a/apps/include/netutils/connection.h b/apps/include/netutils/connection.h deleted file mode 100644 index 391597d..0000000 --- a/apps/include/netutils/connection.h +++ /dev/null @@ -1,78 +0,0 @@ -/**************************************************************************** - * - * Copyright 2016 Samsung Electronics All Rights Reserved. - * - * 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. - * - ****************************************************************************/ -/******************************************************************************* - * - * Copyright (c) 2013, 2014 Intel Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * and Eclipse Distribution License v1.0 which accompany this distribution. - * - * The Eclipse Public License is available at - * http://www.eclipse.org/legal/epl-v10.html - * The Eclipse Distribution License is available at - * http://www.eclipse.org/org/documents/edl-v10.php. - * - * Contributors: - * David Navarro, Intel Corporation - initial API and implementation - * - *******************************************************************************/ - -#ifndef CONNECTION_H_ -#define CONNECTION_H_ - -#include -#include -#include -#include -#include -#include -#include - -#ifdef __cplusplus -#define EXTERN extern "C" -extern "C" { -#else -#define EXTERN extern -#endif - -#define LWM2M_STANDARD_PORT_STR "5683" -#define LWM2M_STANDARD_PORT 5683 - -typedef struct _connection_t { - struct _connection_t *next; - int sock; - struct sockaddr_in6 addr; - size_t addrLen; -} connection_t; - -int create_socket(const char *portStr); - -connection_t *connection_find(connection_t *connList, struct sockaddr_storage *addr, size_t addrLen); -connection_t *connection_new_incoming(connection_t *connList, int sock, struct sockaddr *addr, size_t addrLen); -connection_t *connection_create(connection_t *connList, int sock, char *host, char *port); - -void connection_free(connection_t *connList); - -int connection_send(connection_t *connP, uint8_t *buffer, size_t length); - -#undef EXTERN -#ifdef __cplusplus -} -#endif - -#endif