aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node/ext
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2015-09-23 10:47:35 -0700
committerGravatar murgatroid99 <mlumish@google.com>2015-09-23 10:47:35 -0700
commitada3f61f4d4a90061cee746cae1cd8eadef3b013 (patch)
tree95d48ae6a04ea05e179e875f89a1ca3a50779775 /src/node/ext
parent41aab15c74130ae36850d88c8bea0063c83236e7 (diff)
Added function signatures for plugin wrapping
Diffstat (limited to 'src/node/ext')
-rw-r--r--src/node/ext/credentials.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/node/ext/credentials.h b/src/node/ext/credentials.h
index 62957e61c3..ecbbb96891 100644
--- a/src/node/ext/credentials.h
+++ b/src/node/ext/credentials.h
@@ -69,6 +69,7 @@ class Credentials : public ::node::ObjectWrap {
static NAN_METHOD(CreateFake);
static NAN_METHOD(CreateIam);
static NAN_METHOD(CreateInsecure);
+ static NAN_METHOD(CreateFromPlugin);
static NanCallback *constructor;
// Used for typechecking instances of this javascript class
static v8::Persistent<v8::FunctionTemplate> fun_tpl;
@@ -76,6 +77,19 @@ class Credentials : public ::node::ObjectWrap {
grpc_credentials *wrapped_credentials;
};
+/* Auth metadata plugin functionality */
+
+typedef struct plugin_state {
+ Nan::Callback *callback;
+} plugin_state;
+
+void plugin_get_metadata(void *state, const char *service_url,
+ grpc_credentials_plugin_metadata_cb cb, void *user_data);
+
+void plugin_destroy_state(void *state);
+
+static NAN_METHOD(PluginCallback);
+
} // namespace node
} // namespace grpc