aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/php/ext/grpc/credentials.h
blob: ba2aa898e724464bd4b805f7145a8cec27d7a615 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef NET_GRPC_PHP_GRPC_CREDENTIALS_H_
#define NET_GRPC_PHP_GRPC_CREDENTIALS_H_

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include "php.h"
#include "php_ini.h"
#include "ext/standard/info.h"
#include "php_grpc.h"

#include "grpc/grpc.h"
#include "grpc/grpc_security.h"

/* Class entry for the Credentials PHP class */
zend_class_entry *grpc_ce_credentials;

/* Wrapper struct for grpc_credentials that can be associated with a PHP
 * object */
typedef struct wrapped_grpc_credentials {
  zend_object std;

  grpc_credentials *wrapped;
} wrapped_grpc_credentials;

/* Initializes the Credentials PHP class */
void grpc_init_credentials(TSRMLS_D);

#endif /* NET_GRPC_PHP_GRPC_CREDENTIALS_H_ */