Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove protocol context relevant codes #274

Merged
merged 1 commit into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 0 additions & 41 deletions core/include/ten_runtime/protocol/context.h

This file was deleted.

42 changes: 0 additions & 42 deletions core/include/ten_runtime/protocol/context_store.h

This file was deleted.

4 changes: 0 additions & 4 deletions core/include/ten_runtime/protocol/protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ typedef struct ten_app_t ten_app_t;
typedef struct ten_engine_t ten_engine_t;
typedef struct ten_addon_host_t ten_addon_host_t;
typedef struct ten_runloop_t ten_runloop_t;
typedef struct ten_protocol_context_store_t ten_protocol_context_store_t;

// The protocols will be created in the following scenarios:
// - A listening protocol when the app acts as a server.
Expand Down Expand Up @@ -186,9 +185,6 @@ TEN_RUNTIME_API void ten_protocol_send_msg(ten_protocol_t *self,
TEN_RUNTIME_API ten_runloop_t *ten_protocol_get_attached_runloop(
ten_protocol_t *self);

TEN_RUNTIME_API ten_protocol_context_store_t *ten_protocol_get_context_store(
ten_protocol_t *self);

TEN_RUNTIME_API bool ten_protocol_role_is_communication(ten_protocol_t *self);

TEN_RUNTIME_API bool ten_protocol_role_is_listening(ten_protocol_t *self);
1 change: 0 additions & 1 deletion core/include/ten_runtime/ten.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,4 @@
#include "ten_runtime/msg/data/data.h" // IWYU pragma: export
#include "ten_runtime/msg/msg.h" // IWYU pragma: export
#include "ten_runtime/msg/video_frame/video_frame.h" // IWYU pragma: export
#include "ten_runtime/protocol/context_store.h" // IWYU pragma: export
#include "ten_runtime/ten_env/ten_env.h" // IWYU pragma: export
5 changes: 0 additions & 5 deletions core/include_internal/ten_runtime/app/app.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
typedef struct ten_connection_t ten_connection_t;
typedef struct ten_engine_t ten_engine_t;
typedef struct ten_protocol_t ten_protocol_t;
typedef struct ten_protocol_context_store_t ten_protocol_context_store_t;

typedef enum TEN_APP_STATE {
TEN_APP_STATE_INIT,
Expand Down Expand Up @@ -69,7 +68,6 @@ typedef struct ten_app_t {
ten_runloop_t *loop;

ten_protocol_t *endpoint_protocol;
ten_protocol_context_store_t *protocol_context_store;

ten_env_t *ten_env;

Expand Down Expand Up @@ -128,9 +126,6 @@ TEN_RUNTIME_PRIVATE_API ten_runloop_t *ten_app_get_attached_runloop(

TEN_RUNTIME_PRIVATE_API const char *ten_app_get_uri(ten_app_t *self);

TEN_RUNTIME_PRIVATE_API ten_protocol_context_store_t *
ten_app_get_protocol_context_store(ten_app_t *self);

TEN_RUNTIME_PRIVATE_API void ten_app_on_configure(ten_env_t *ten_env);

TEN_RUNTIME_PRIVATE_API void ten_app_on_init(ten_env_t *ten_env);
Expand Down
8 changes: 2 additions & 6 deletions core/include_internal/ten_runtime/app/close.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,18 +77,14 @@ typedef struct ten_app_t ten_app_t;
typedef struct ten_engine_t ten_engine_t;
typedef struct ten_connection_t ten_connection_t;
typedef struct ten_protocol_t ten_protocol_t;
typedef struct ten_protocol_context_store_t ten_protocol_context_store_t;

TEN_RUNTIME_PRIVATE_API bool ten_app_is_closing(ten_app_t *self);

TEN_RUNTIME_PRIVATE_API void ten_app_check_termination_when_engine_closed(
ten_app_t *self, ten_engine_t *engine);

TEN_RUNTIME_PRIVATE_API void ten_app_on_protocol_closed(ten_protocol_t *protocol,
void *on_closed_data);
TEN_RUNTIME_PRIVATE_API void ten_app_on_protocol_closed(
ten_protocol_t *protocol, void *on_closed_data);

TEN_RUNTIME_PRIVATE_API void ten_app_on_orphan_connection_closed(
ten_connection_t *connection, void *on_closed_data);

TEN_RUNTIME_PRIVATE_API void ten_app_on_protocol_context_store_closed(
ten_protocol_context_store_t *context_store, void *on_closed_data);
6 changes: 0 additions & 6 deletions core/include_internal/ten_runtime/app/endpoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,3 @@ typedef struct ten_protocol_t ten_protocol_t;
TEN_RUNTIME_PRIVATE_API bool ten_app_endpoint_listen(ten_app_t *self);

TEN_RUNTIME_PRIVATE_API bool ten_app_is_endpoint_closed(ten_app_t *self);

TEN_RUNTIME_PRIVATE_API void ten_app_create_protocol_context_store(
ten_app_t *self);

TEN_RUNTIME_PRIVATE_API bool ten_app_is_protocol_context_store_closed(
ten_app_t *self);
158 changes: 0 additions & 158 deletions core/include_internal/ten_runtime/protocol/context.h

This file was deleted.

Loading
Loading