-
-
Notifications
You must be signed in to change notification settings - Fork 271
Expand file tree
/
Copy pathoauthbearer.h
More file actions
30 lines (26 loc) · 1.43 KB
/
oauthbearer.h
File metadata and controls
30 lines (26 loc) · 1.43 KB
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
/*
+----------------------------------------------------------------------+
| php-rdkafka |
+----------------------------------------------------------------------+
| Copyright (c) 2025 Arnaud Le Blanc |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| http://www.php.net/license/3_01.txt |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Author: Martin Fris <rasta@lj.sk> |
+----------------------------------------------------------------------+
*/
#include "librdkafka/rdkafka.h"
void oauthbearer_set_token(rd_kafka_t *rk,
const char *token_value,
int64_t lifetime_ms,
const char *principal_name,
const HashTable *extensions_hash
);
void oauthbearer_set_token_failure(rd_kafka_t *rk, const char *errstr);
int64_t zval_to_int64(zval *zval, const char *errstr);