@@ -33,7 +33,7 @@
#include "rb_byte_buffer.h"
-#include <ruby.h>
+#include <ruby/ruby.h>
#include <grpc/grpc.h>
#include <grpc/support/slice.h>
@@ -34,8 +34,9 @@
#ifndef GRPC_RB_BYTE_BUFFER_H_
#define GRPC_RB_BYTE_BUFFER_H_
+
/* Converts a char* with a length to a grpc_byte_buffer */
grpc_byte_buffer *grpc_rb_s_to_byte_buffer(char *string, size_t length);
#include "rb_call.h"
#include <grpc/support/alloc.h>
#ifndef GRPC_RB_CALL_H_
#define GRPC_RB_CALL_H_
/* Gets the wrapped call from a VALUE. */
grpc_call* grpc_rb_get_wrapped_call(VALUE v);
#include "rb_channel.h"
#include <grpc/grpc_security.h>
@@ -34,7 +34,8 @@
#ifndef GRPC_RB_CHANNEL_H_
#define GRPC_RB_CHANNEL_H_
/* Initializes the Channel class. */
@@ -33,7 +33,8 @@
#include "rb_channel_args.h"
#include "rb_grpc.h"
#ifndef GRPC_RB_CHANNEL_ARGS_H_
#define GRPC_RB_CHANNEL_ARGS_H_
/* Converts a hash object containing channel args to a channel args instance.
#ifndef GRPC_RB_COMPLETION_QUEUE_H_
#define GRPC_RB_COMPLETION_QUEUE_H_
/* Gets the wrapped completion queue from the ruby wrapper */
grpc_completion_queue *grpc_rb_get_wrapped_completion_queue(VALUE v);
#include "rb_credentials.h"
#ifndef GRPC_RB_CREDENTIALS_H_
#define GRPC_RB_CREDENTIALS_H_
/* Initializes the ruby Credentials class. */
@@ -35,7 +35,8 @@
#define GRPC_RB_H_
#include <sys/time.h>
#include <grpc/support/time.h>
/* grpc_rb_mGrpcCore is the module containing the ruby wrapper GRPC classes. */
#include "rb_server.h"
#ifndef GRPC_RB_SERVER_H_
#define GRPC_RB_SERVER_H_
/* Initializes the Server class. */
#include "rb_server_credentials.h"
#ifndef GRPC_RB_SERVER_CREDENTIALS_H_
#define GRPC_RB_SERVER_CREDENTIALS_H_
/* Initializes the ruby ServerCredentials class. */