hsw-nbt 1.2.0
OPTIGA Authenticate NBT Host Library for C
ifx-record-uri.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) 2024-2026 Infineon Technologies AG
2// SPDX-License-Identifier: MIT
3
10#ifndef IFX_RECORD_URI_H
11#define IFX_RECORD_URI_H
12
13#include <stddef.h>
14#include <stdint.h>
15#include "infineon/ifx-error.h"
16#include "infineon/ifx-utils.h"
18
19#ifdef __cplusplus
20extern "C" {
21#endif /* __cplusplus */
22
23/* Macro definitions */
24/* Definitions of function identifiers */
25
29#define IFX_RECORD_URI_SET UINT8_C(0x01)
30
34#define IFX_RECORD_URI_GET UINT8_C(0x02)
35
39#define IFX_RECORD_URI_RELEASE_MEMORY UINT8_C(0x03)
43#define IFX_RECORD_URI_TYPE {UINT8_C(0x55)}
44
48#define IFX_RECORD_IDENTIFIER_CODE_MAX UINT8_C(0x24)
49
50/* enum definitions */
51
96
97/* public functions */
98
110
124 ifx_blob_t *identifier);
125
137 const ifx_record_handle_t *handle, uint8_t *identifier_code);
138
151 ifx_blob_t *uri);
152
169 const ifx_record_handle_t *handle, ifx_blob_t *uri_with_identifier);
170
188 const ifx_blob_t *identifier);
189
200 uint8_t identifier_code);
201
214 const ifx_blob_t *uri);
215
216#ifdef __cplusplus
217}
218
219#endif /* __cplusplus */
220#endif /* IFX_RECORD_URI_H */
Infineon specific error code creation and parsing.
uint32_t ifx_status_t
Custom return code type used by all Infineon host software libraries.
Definition ifx-error.h:91
Model interface to create record types and set/get record fields.
ifx_status_t ifx_record_uri_get_identifier_code(const ifx_record_handle_t *handle, uint8_t *identifier_code)
Gets the identifier code from the URI record details.
ifx_status_t ifx_record_uri_set_uri(ifx_record_handle_t *handle, const ifx_blob_t *uri)
Sets the URI value in the URI record details.
ifx_status_t ifx_record_uri_get_uri(const ifx_record_handle_t *handle, ifx_blob_t *uri)
Gets the URI value field from the URI record.
ifx_status_t ifx_record_uri_get_identifier(const ifx_record_handle_t *handle, ifx_blob_t *identifier)
Gets the identifier bytes from the URI record.
ifx_status_t ifx_record_uri_get_uri_with_identifier(const ifx_record_handle_t *handle, ifx_blob_t *uri_with_identifier)
Gets the URI value along with the identifier from the URI record.
ifx_status_t ifx_record_uri_new(ifx_record_handle_t *handle)
Creates a new URI record and handle of the created record. This handle holds the values of the record...
ifx_status_t ifx_record_uri_set_identifier_code(ifx_record_handle_t *handle, uint8_t identifier_code)
Sets the identifier code in the URI record details.
ifx_status_t ifx_record_uri_set_identifier(ifx_record_handle_t *handle, const ifx_blob_t *identifier)
Sets an identifier code value of the record handle from the identifier bytes.
ifx_record_uri_identifier
URI identifiers for URI records identifier code.
@ IFX_URI_POP
@ IFX_URI_BTSPP
@ IFX_URI_FTP
@ IFX_URI_HTTP_WWW
@ IFX_URI_HTTP
@ IFX_URI_URN
@ IFX_URI_RTSP
@ IFX_URI_FTP_ANONYMOUS_ANONYMOUS
@ IFX_URI_DAV
@ IFX_URI_HTTPS
@ IFX_URI_URN_EPC
@ IFX_URI_NEWS
@ IFX_URI_TELNET
@ IFX_URI_TEL
@ IFX_URI_URN_NFC
@ IFX_URI_MAILTO
@ IFX_URI_SIPS
@ IFX_URI_BT12CAP
@ IFX_URI_IRDAOBEX
@ IFX_URI_IMAP
@ IFX_URI_URN_EPC_ID
@ IFX_URI_TCPOBEX
@ IFX_URI_FILE
@ IFX_URI_SIP
@ IFX_URI_URN_EPC_RAW
@ IFX_URI_TFTP
@ IFX_URI_FTP_FTP
@ IFX_URI_HTTPS_WWW
@ IFX_URI_NA
@ IFX_URI_SFTP
@ IFX_URI_FTPS
@ IFX_URI_BTGOEP
@ IFX_URI_SMB
@ IFX_URI_NFS
@ IFX_URI_URN_EPC_TAG
@ IFX_URI_URN_EPC_PAT
Provides utility functions and macros.
Data storage for data and data length where both are required as parameters.
Definition ifx-utils.h:189
Defines the handle for specific record type.