generate projects

reviewable/pr17308/r1
yang-g 6 years ago
parent 684643ff0a
commit 233406d450
  1. 1
      grpc.def
  2. 2
      src/ruby/ext/grpc/rb_grpc_imports.generated.c
  3. 3
      src/ruby/ext/grpc/rb_grpc_imports.generated.h
  4. 1
      test/core/surface/public_headers_must_be_c89.c

@ -16,6 +16,7 @@ EXPORTS
grpc_init grpc_init
grpc_shutdown grpc_shutdown
grpc_is_initialized grpc_is_initialized
grpc_maybe_wait_for_async_shutdown
grpc_version_string grpc_version_string
grpc_g_stands_for grpc_g_stands_for
grpc_completion_queue_factory_lookup grpc_completion_queue_factory_lookup

@ -39,6 +39,7 @@ grpc_register_plugin_type grpc_register_plugin_import;
grpc_init_type grpc_init_import; grpc_init_type grpc_init_import;
grpc_shutdown_type grpc_shutdown_import; grpc_shutdown_type grpc_shutdown_import;
grpc_is_initialized_type grpc_is_initialized_import; grpc_is_initialized_type grpc_is_initialized_import;
grpc_maybe_wait_for_async_shutdown_type grpc_maybe_wait_for_async_shutdown_import;
grpc_version_string_type grpc_version_string_import; grpc_version_string_type grpc_version_string_import;
grpc_g_stands_for_type grpc_g_stands_for_import; grpc_g_stands_for_type grpc_g_stands_for_import;
grpc_completion_queue_factory_lookup_type grpc_completion_queue_factory_lookup_import; grpc_completion_queue_factory_lookup_type grpc_completion_queue_factory_lookup_import;
@ -306,6 +307,7 @@ void grpc_rb_load_imports(HMODULE library) {
grpc_init_import = (grpc_init_type) GetProcAddress(library, "grpc_init"); grpc_init_import = (grpc_init_type) GetProcAddress(library, "grpc_init");
grpc_shutdown_import = (grpc_shutdown_type) GetProcAddress(library, "grpc_shutdown"); grpc_shutdown_import = (grpc_shutdown_type) GetProcAddress(library, "grpc_shutdown");
grpc_is_initialized_import = (grpc_is_initialized_type) GetProcAddress(library, "grpc_is_initialized"); grpc_is_initialized_import = (grpc_is_initialized_type) GetProcAddress(library, "grpc_is_initialized");
grpc_maybe_wait_for_async_shutdown_import = (grpc_maybe_wait_for_async_shutdown_type) GetProcAddress(library, "grpc_maybe_wait_for_async_shutdown");
grpc_version_string_import = (grpc_version_string_type) GetProcAddress(library, "grpc_version_string"); grpc_version_string_import = (grpc_version_string_type) GetProcAddress(library, "grpc_version_string");
grpc_g_stands_for_import = (grpc_g_stands_for_type) GetProcAddress(library, "grpc_g_stands_for"); grpc_g_stands_for_import = (grpc_g_stands_for_type) GetProcAddress(library, "grpc_g_stands_for");
grpc_completion_queue_factory_lookup_import = (grpc_completion_queue_factory_lookup_type) GetProcAddress(library, "grpc_completion_queue_factory_lookup"); grpc_completion_queue_factory_lookup_import = (grpc_completion_queue_factory_lookup_type) GetProcAddress(library, "grpc_completion_queue_factory_lookup");

@ -92,6 +92,9 @@ extern grpc_shutdown_type grpc_shutdown_import;
typedef int(*grpc_is_initialized_type)(void); typedef int(*grpc_is_initialized_type)(void);
extern grpc_is_initialized_type grpc_is_initialized_import; extern grpc_is_initialized_type grpc_is_initialized_import;
#define grpc_is_initialized grpc_is_initialized_import #define grpc_is_initialized grpc_is_initialized_import
typedef void(*grpc_maybe_wait_for_async_shutdown_type)(void);
extern grpc_maybe_wait_for_async_shutdown_type grpc_maybe_wait_for_async_shutdown_import;
#define grpc_maybe_wait_for_async_shutdown grpc_maybe_wait_for_async_shutdown_import
typedef const char*(*grpc_version_string_type)(void); typedef const char*(*grpc_version_string_type)(void);
extern grpc_version_string_type grpc_version_string_import; extern grpc_version_string_type grpc_version_string_import;
#define grpc_version_string grpc_version_string_import #define grpc_version_string grpc_version_string_import

@ -78,6 +78,7 @@ int main(int argc, char **argv) {
printf("%lx", (unsigned long) grpc_init); printf("%lx", (unsigned long) grpc_init);
printf("%lx", (unsigned long) grpc_shutdown); printf("%lx", (unsigned long) grpc_shutdown);
printf("%lx", (unsigned long) grpc_is_initialized); printf("%lx", (unsigned long) grpc_is_initialized);
printf("%lx", (unsigned long) grpc_maybe_wait_for_async_shutdown);
printf("%lx", (unsigned long) grpc_version_string); printf("%lx", (unsigned long) grpc_version_string);
printf("%lx", (unsigned long) grpc_g_stands_for); printf("%lx", (unsigned long) grpc_g_stands_for);
printf("%lx", (unsigned long) grpc_completion_queue_factory_lookup); printf("%lx", (unsigned long) grpc_completion_queue_factory_lookup);

Loading…
Cancel
Save