Azure SDK for Embedded C
az_credentials.h
Go to the documentation of this file.
1 // Copyright (c) Microsoft Corporation. All rights reserved.
2 // SPDX-License-Identifier: MIT
3 
15 #ifndef _az_CREDENTIALS_H
16 #define _az_CREDENTIALS_H
17 
19 #include <azure/core/az_result.h>
20 #include <azure/core/az_span.h>
21 
22 #include <stddef.h>
23 
24 #include <azure/core/_az_cfg_prefix.h>
25 
29 #define AZ_CREDENTIAL_ANONYMOUS NULL
30 
35 typedef AZ_NODISCARD az_result (
36  *_az_credential_set_scopes_fn)(void* ref_credential, az_span scopes);
37 
42 typedef struct
43 {
44  struct
45  {
46  _az_http_policy_process_fn apply_credential_policy;
47 
49  _az_credential_set_scopes_fn set_scopes;
50  } _internal;
51 } _az_credential;
52 
53 #include <azure/core/_az_cfg_suffix.h>
54 
55 #endif // _az_CREDENTIALS_H
az_result.h
Definition of az_result and helper functions.
az_result
int32_t az_result
The type represents the various success and error conditions.
Definition: az_result.h:45
az_span.h
An az_span represents a contiguous byte buffer and is used for string manipulations,...
az_http_transport.h
Utilities to be used by HTTP transport policy implementations.
az_span
Represents a "view" over a byte buffer that represents a contiguous region of memory....
Definition: az_span.h:33