Skip to content
This repository has been archived by the owner on Oct 28, 2019. It is now read-only.

Commit

Permalink
Support IL2CPP
Browse files Browse the repository at this point in the history
  • Loading branch information
jsmouret committed Jul 13, 2018
1 parent 1ac26bf commit f2e0067
Show file tree
Hide file tree
Showing 2 changed files with 192 additions and 0 deletions.
99 changes: 99 additions & 0 deletions Plugins/Grpc.Core/runtimes/grpc_csharp_ext_stub.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@

// When using IL2CPP, Unity still tries to link with the static grpc library even if the DLL will be used.
// This file creates dummy functions just to please the linker.

void grpcsharp_init() {}
void grpcsharp_shutdown() {}
void grpcsharp_version_string() {}
void grpcsharp_batch_context_create() {}
void grpcsharp_batch_context_recv_initial_metadata() {}
void grpcsharp_batch_context_recv_message_length() {}
void grpcsharp_batch_context_recv_message_to_buffer() {}
void grpcsharp_batch_context_recv_status_on_client_status() {}
void grpcsharp_batch_context_recv_status_on_client_details() {}
void grpcsharp_batch_context_recv_status_on_client_trailing_metadata() {}
void grpcsharp_batch_context_recv_close_on_server_cancelled() {}
void grpcsharp_batch_context_reset() {}
void grpcsharp_batch_context_destroy() {}
void grpcsharp_request_call_context_create() {}
void grpcsharp_request_call_context_call() {}
void grpcsharp_request_call_context_method() {}
void grpcsharp_request_call_context_host() {}
void grpcsharp_request_call_context_deadline() {}
void grpcsharp_request_call_context_request_metadata() {}
void grpcsharp_request_call_context_reset() {}
void grpcsharp_request_call_context_destroy() {}
void grpcsharp_composite_call_credentials_create() {}
void grpcsharp_call_credentials_release() {}
void grpcsharp_call_cancel() {}
void grpcsharp_call_cancel_with_status() {}
void grpcsharp_call_start_unary() {}
void grpcsharp_call_start_client_streaming() {}
void grpcsharp_call_start_server_streaming() {}
void grpcsharp_call_start_duplex_streaming() {}
void grpcsharp_call_send_message() {}
void grpcsharp_call_send_close_from_client() {}
void grpcsharp_call_send_status_from_server() {}
void grpcsharp_call_recv_message() {}
void grpcsharp_call_recv_initial_metadata() {}
void grpcsharp_call_start_serverside() {}
void grpcsharp_call_send_initial_metadata() {}
void grpcsharp_call_set_credentials() {}
void grpcsharp_call_get_peer() {}
void grpcsharp_call_destroy() {}
void grpcsharp_channel_args_create() {}
void grpcsharp_channel_args_set_string() {}
void grpcsharp_channel_args_set_integer() {}
void grpcsharp_channel_args_destroy() {}
void grpcsharp_override_default_ssl_roots() {}
void grpcsharp_ssl_credentials_create() {}
void grpcsharp_composite_channel_credentials_create() {}
void grpcsharp_channel_credentials_release() {}
void grpcsharp_insecure_channel_create() {}
void grpcsharp_secure_channel_create() {}
void grpcsharp_channel_create_call() {}
void grpcsharp_channel_check_connectivity_state() {}
void grpcsharp_channel_watch_connectivity_state() {}
void grpcsharp_channel_get_target() {}
void grpcsharp_channel_destroy() {}
void grpcsharp_sizeof_grpc_event() {}
void grpcsharp_completion_queue_create_async() {}
void grpcsharp_completion_queue_create_sync() {}
void grpcsharp_completion_queue_shutdown() {}
void grpcsharp_completion_queue_next() {}
void grpcsharp_completion_queue_pluck() {}
void grpcsharp_completion_queue_destroy() {}
void gprsharp_free() {}
void grpcsharp_metadata_array_create() {}
void grpcsharp_metadata_array_add() {}
void grpcsharp_metadata_array_count() {}
void grpcsharp_metadata_array_get_key() {}
void grpcsharp_metadata_array_get_value() {}
void grpcsharp_metadata_array_destroy_full() {}
void grpcsharp_redirect_log() {}
void grpcsharp_metadata_credentials_create_from_plugin() {}
void grpcsharp_metadata_credentials_notify_from_plugin() {}
void grpcsharp_ssl_server_credentials_create() {}
void grpcsharp_server_credentials_release() {}
void grpcsharp_server_create() {}
void grpcsharp_server_register_completion_queue() {}
void grpcsharp_server_add_insecure_http2_port() {}
void grpcsharp_server_add_secure_http2_port() {}
void grpcsharp_server_start() {}
void grpcsharp_server_request_call() {}
void grpcsharp_server_cancel_all_calls() {}
void grpcsharp_server_shutdown_and_notify_callback() {}
void grpcsharp_server_destroy() {}
void grpcsharp_call_auth_context() {}
void grpcsharp_auth_context_peer_identity_property_name() {}
void grpcsharp_auth_context_property_iterator() {}
void grpcsharp_auth_property_iterator_next() {}
void grpcsharp_auth_context_release() {}
void gprsharp_now() {}
void gprsharp_inf_future() {}
void gprsharp_inf_past() {}
void gprsharp_convert_clock_type() {}
void gprsharp_sizeof_timespec() {}
void grpcsharp_test_callback() {}
void grpcsharp_test_nop() {}
void grpcsharp_test_override_method() {}
93 changes: 93 additions & 0 deletions Plugins/Grpc.Core/runtimes/grpc_csharp_ext_stub.c.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f2e0067

Please sign in to comment.