Functions | Variables
call_credentials.c File Reference
#include "call_credentials.h"
#include <ext/spl/spl_exceptions.h>
#include <zend_exceptions.h>
#include <grpc/support/log.h>
#include <grpc/support/string_util.h>
#include "call.h"
Include dependency graph for call_credentials.c:

Go to the source code of this file.

Functions

php_grpc_zend_object create_wrapped_grpc_call_credentials (zend_class_entry *class_type TSRMLS_DC)
 
void grpc_init_call_credentials (TSRMLS_D)
 
zval * grpc_php_wrap_call_credentials (grpc_call_credentials *wrapped TSRMLS_DC)
 
 if (p->wrapped !=NULL)
 
 PHP_METHOD (CallCredentials, createComposite)
 
 PHP_METHOD (CallCredentials, createFromPlugin)
 
void plugin_destroy_state (void *ptr)
 
int plugin_get_metadata (void *ptr, grpc_auth_metadata_context context, grpc_credentials_plugin_metadata_cb cb, void *user_data, grpc_metadata creds_md[GRPC_METADATA_CREDENTIALS_PLUGIN_SYNC_MAX], size_t *num_creds_md, grpc_status_code *status, const char **error_details)
 

Variables

static zend_function_entry call_credentials_methods []
 
zend_class_entry * grpc_ce_call_credentials
 

Function Documentation

◆ create_wrapped_grpc_call_credentials()

php_grpc_zend_object create_wrapped_grpc_call_credentials ( zend_class_entry *class_type  TSRMLS_DC)

Definition at line 46 of file call_credentials.c.

◆ grpc_init_call_credentials()

void grpc_init_call_credentials ( TSRMLS_D  )

Definition at line 245 of file call_credentials.c.

◆ grpc_php_wrap_call_credentials()

zval* grpc_php_wrap_call_credentials ( grpc_call_credentials *wrapped  TSRMLS_DC)

Definition at line 55 of file call_credentials.c.

◆ if()

if ( p->wrapped = NULL)

Definition at line 39 of file call_credentials.c.

◆ PHP_METHOD() [1/2]

PHP_METHOD ( CallCredentials  ,
createComposite   
)

Create composite credentials from two existing credentials.

Parameters
CallCredentials$cred1_objThe first credential
CallCredentials$cred2_objThe second credential
Returns
CallCredentials The new composite credentials object

Definition at line 73 of file call_credentials.c.

◆ PHP_METHOD() [2/2]

PHP_METHOD ( CallCredentials  ,
createFromPlugin   
)

Create a call credentials object from the plugin API

Parameters
function$fciThe callback function
Returns
CallCredentials The new call credentials object

Definition at line 102 of file call_credentials.c.

◆ plugin_destroy_state()

void plugin_destroy_state ( void *  ptr)

Definition at line 221 of file call_credentials.c.

◆ plugin_get_metadata()

int plugin_get_metadata ( void *  ptr,
grpc_auth_metadata_context  context,
grpc_credentials_plugin_metadata_cb  cb,
void *  user_data,
grpc_metadata  creds_md[GRPC_METADATA_CREDENTIALS_PLUGIN_SYNC_MAX],
size_t *  num_creds_md,
grpc_status_code status,
const char **  error_details 
)

Definition at line 143 of file call_credentials.c.

Variable Documentation

◆ call_credentials_methods

zend_function_entry call_credentials_methods[]
static
Initial value:
= {
PHP_ME(CallCredentials, createComposite, arginfo_createComposite,
ZEND_ACC_PUBLIC | ZEND_ACC_STATIC)
PHP_ME(CallCredentials, createFromPlugin, arginfo_createFromPlugin,
ZEND_ACC_PUBLIC | ZEND_ACC_STATIC)
PHP_FE_END
}

Definition at line 237 of file call_credentials.c.

◆ grpc_ce_call_credentials

zend_class_entry* grpc_ce_call_credentials
grpc.beta.implementations.CallCredentials
CallCredentials
Definition: implementations.py:35


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:05