mirror of
https://github.com/obgm/libcoap.git
synced 2026-12-05 20:02:19 +03:00
include/coap2/coap_subscribe_internal.h and include/coap2/coap_session_internal.h contain the information not exposed to applications. This internal information was moved out of the respective include/coap2/subscribe.h and include/coap2/coap_session.h files comprising of the coap_subscription_t and coap_endpoint_t definitions. To ease inter .h file dependencies, a new file include/coap2/coap_forward_decls.h is added to include forward declarations for both libcoap and applications. Makefile.am: Include include/coap2/coap_*internal.h as files for distribution, but not installed for applications to use. Include include/coap2/coap_forward_decls.h, so it is installed for applications. include/coap2/coap.h.in: Include "coap_forward_decls.h" include/coap2/coap_forward_decls.h: (New) Forward declare structures and typedef the structures defined in coap_internal.h. include/coap2/coap_internal.h: (New) Includes all the required #include files that libcoap internally needs. include/coap2/coap_session_internal.h: (New) Include the coap_endpoint_t information taken from include/coap2/coap_session.h. include/coap2/coap_session.h: Remove coap_endpoint_t definition. include/coap2/lwippools.h: Add in coap_forward_decls.h and coap_internal.h to handle the LwIP memory allocations. include/coap2/resource.h: Add in "block.h" to allow things to build. include/coap2/coap_subscribe_internal.h: (New) Include the coap_subscription_t information taken from include/coap2/subscribe.h. include/coap2/subscribe.h: Remove coap_subscription_t definition. libcoap-2.map: libcoap-2.sym: Updated, removing coap_subscription_init(). src/address.c: src/asyn.c: src/block.c: src/coap_debug.c: src/coap_event.c: src/coap_gnutls.c: src/coap_hashkey.c: src/coap_io.c: src/coap_io_lwip.c: src/coap_notls.c: src/coap_openssl.c: src/coap_session.c: src/coap_time.c: src/coap_tinydtls.c: src/encode.c: src/mem.c: src/net.c: src/option.c: src/pdu.c: src/resource.c: src/str.c: src/subscribe.c: src/uri.c: Add in '#include "coap_internal.h"' to the source files. Remove other libcoap #include files. win32/libcoap.vcxproj: win32/libcoap.vcxproj.filters: Update for Windows build (not tested). examples/contiki/server.c: src/coap_io.c: Remove knowledge of endpoint from the server and update Contiki's version of coap_run_once() to do the work instead. ==== Other structures (plus some internal required #defines) will follow as separate PRs.
197 lines
4.3 KiB
Plaintext
197 lines
4.3 KiB
Plaintext
VER_2 {
|
|
global:
|
|
coap_add_attr;
|
|
coap_add_block;
|
|
coap_add_data;
|
|
coap_add_data_after;
|
|
coap_add_data_blocked_response;
|
|
coap_add_observer;
|
|
coap_add_option;
|
|
coap_add_option_later;
|
|
coap_add_optlist_pdu;
|
|
coap_add_resource;
|
|
coap_address_equals;
|
|
coap_add_token;
|
|
coap_adjust_basetime;
|
|
coap_calc_timeout;
|
|
coap_cancel_all_messages;
|
|
coap_cancel_session_messages;
|
|
coap_can_exit;
|
|
coap_check_notify;
|
|
coap_check_option;
|
|
coap_cleanup;
|
|
coap_clear_event_handler;
|
|
coap_clock_init;
|
|
coap_clone_uri;
|
|
coap_context_get_coap_fd;
|
|
coap_context_set_keepalive;
|
|
coap_context_set_pki;
|
|
coap_context_set_pki_root_cas;
|
|
coap_context_set_psk;
|
|
coap_debug_send_packet;
|
|
coap_debug_set_packet_loss;
|
|
coap_decode_var_bytes;
|
|
coap_delete_all;
|
|
coap_delete_all_resources;
|
|
coap_delete_attr;
|
|
coap_delete_node;
|
|
coap_delete_observer;
|
|
coap_delete_observers;
|
|
coap_delete_optlist;
|
|
coap_delete_pdu;
|
|
coap_delete_resource;
|
|
coap_delete_str_const;
|
|
coap_delete_string;
|
|
coap_dispatch;
|
|
coap_dtls_get_log_level;
|
|
coap_dtls_is_supported;
|
|
coap_dtls_set_log_level;
|
|
coap_encode_var_safe;
|
|
coap_endpoint_get_session;
|
|
coap_endpoint_set_default_mtu;
|
|
coap_endpoint_str;
|
|
coap_find_async;
|
|
coap_find_attr;
|
|
coap_find_observer;
|
|
coap_find_transaction;
|
|
coap_fls;
|
|
coap_flsll;
|
|
coap_free_async;
|
|
coap_free_context;
|
|
coap_free_endpoint;
|
|
coap_free_type;
|
|
coap_get_app_data;
|
|
coap_get_block;
|
|
coap_get_data;
|
|
coap_get_log_level;
|
|
coap_get_query;
|
|
coap_get_resource_from_uri_path;
|
|
coap_get_tls_library_version;
|
|
coap_get_uri_path;
|
|
coap_handle_dgram;
|
|
coap_handle_event;
|
|
coap_handle_failed_notify;
|
|
coap_hash_impl;
|
|
coap_insert_node;
|
|
coap_insert_optlist;
|
|
coap_is_mcast;
|
|
coap_join_mcast_group;
|
|
coap_log_impl;
|
|
coap_make_str_const;
|
|
coap_malloc_endpoint;
|
|
coap_malloc_type;
|
|
coap_memory_init;
|
|
coap_network_read;
|
|
coap_network_send;
|
|
coap_new_client_session;
|
|
coap_new_client_session_pki;
|
|
coap_new_client_session_psk;
|
|
coap_new_context;
|
|
coap_new_endpoint;
|
|
coap_new_error_response;
|
|
coap_new_node;
|
|
coap_new_optlist;
|
|
coap_new_pdu;
|
|
coap_new_server_session;
|
|
coap_new_str_const;
|
|
coap_new_string;
|
|
coap_new_uri;
|
|
coap_opt_block_num;
|
|
coap_opt_delta;
|
|
coap_opt_encode;
|
|
coap_opt_encode_size;
|
|
coap_option_check_critical;
|
|
coap_option_filter_get;
|
|
coap_option_filter_set;
|
|
coap_option_filter_unset;
|
|
coap_option_iterator_init;
|
|
coap_option_next;
|
|
coap_opt_length;
|
|
coap_opt_parse;
|
|
coap_opt_setheader;
|
|
coap_opt_size;
|
|
coap_opt_value;
|
|
coap_package_name;
|
|
coap_package_version;
|
|
coap_packet_get_memmapped;
|
|
coap_pdu_clear;
|
|
coap_pdu_encode_header;
|
|
coap_pdu_init;
|
|
coap_pdu_parse;
|
|
coap_pdu_parse_header;
|
|
coap_pdu_parse_header_size;
|
|
coap_pdu_parse_opt;
|
|
coap_pdu_parse_size;
|
|
coap_pdu_resize;
|
|
coap_peek_next;
|
|
coap_pop_next;
|
|
coap_print_addr;
|
|
coap_print_link;
|
|
coap_print_wellknown;
|
|
coap_read;
|
|
coap_register_async;
|
|
coap_register_event_handler;
|
|
coap_register_handler;
|
|
coap_remove_async;
|
|
coap_remove_from_queue;
|
|
coap_resource_init;
|
|
coap_resource_notify_observers;
|
|
coap_resource_set_dirty;
|
|
coap_resource_unknown_init;
|
|
coap_response_phrase;
|
|
coap_retransmit;
|
|
coap_run_once;
|
|
coap_send;
|
|
coap_send_ack;
|
|
coap_send_error;
|
|
coap_send_message_type;
|
|
coap_session_connected;
|
|
coap_session_delay_pdu;
|
|
coap_session_disconnected;
|
|
coap_session_free;
|
|
coap_session_get_ack_random_factor;
|
|
coap_session_get_ack_timeout;
|
|
coap_session_get_app_data;
|
|
coap_session_get_by_peer;
|
|
coap_session_get_max_transmit;
|
|
coap_session_max_pdu_size;
|
|
coap_session_reference;
|
|
coap_session_release;
|
|
coap_session_send;
|
|
coap_session_send_csm;
|
|
coap_session_send_pdu;
|
|
coap_session_send_ping;
|
|
coap_session_set_ack_random_factor;
|
|
coap_session_set_ack_timeout;
|
|
coap_session_set_app_data;
|
|
coap_session_set_max_retransmit;
|
|
coap_session_set_mtu;
|
|
coap_session_str;
|
|
coap_session_write;
|
|
coap_set_app_data;
|
|
coap_set_event_handler;
|
|
coap_set_log_handler;
|
|
coap_set_log_level;
|
|
coap_set_show_pdu_output;
|
|
coap_show_pdu;
|
|
coap_show_tls_version;
|
|
coap_socket_strerror;
|
|
coap_split_path;
|
|
coap_split_query;
|
|
coap_split_uri;
|
|
coap_startup;
|
|
coap_string_tls_version;
|
|
coap_ticks;
|
|
coap_ticks_from_rt_us;
|
|
coap_ticks_to_rt;
|
|
coap_ticks_to_rt_us;
|
|
coap_tls_is_supported;
|
|
coap_touch_observer;
|
|
coap_wait_ack;
|
|
coap_wellknown_response;
|
|
coap_write;
|
|
coap_write_block_opt;
|
|
local:
|
|
*;
|
|
};
|