resource_manager.h File Reference

Embedded resource management. More...

#include "compiler_port.h"
#include "error.h"

Go to the source code of this file.

Data Structures

struct  DirEntry


enum  ResType { RES_TYPE_DIR = 1 , RES_TYPE_FILE = 2 }
 Resource type. More...


error_t resGetData (const char_t *path, const uint8_t **data, size_t *length)
error_t resSearchFile (const char_t *path, DirEntry *dirEntry)


typedef __packed_struct
 Resource entry. More...
uint32_t dataStart
uint32_t dataLength
uint8_t nameLength
char_t name []
ResRootEntry rootEntry

Detailed Description

Embedded resource management.


SPDX-License-Identifier: GPL-2.0-or-later

Copyright (C) 2010-2024 Oryx Embedded SARL. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Oryx Embedded SARL (

Definition in file resource_manager.h.

Enumeration Type Documentation

◆ ResType

enum ResType

Resource type.


Definition at line 46 of file resource_manager.h.

Function Documentation

◆ resGetData()

error_t resGetData ( const char_t path,
const uint8_t **  data,
size_t *  length 

Definition at line 40 of file resource_manager.c.

◆ resSearchFile()

error_t resSearchFile ( const char_t path,
DirEntry dirEntry 

Definition at line 143 of file resource_manager.c.

Variable Documentation

◆ __packed_struct

typedef __packed_struct
Initial value:
uint8_t type
Definition: coap_common.h:176
char char_t
Definition: compiler_port.h:48

Resource entry.

EAP-TLS packet.

EAP response.

EAP request.

EAP packet.

Encrypted Fragment payload.

EAP message.

EAP payload.

Configuration attribute.

Configuration payload.

Encrypted payload.

Traffic selector.

Traffic Selector payload.

Vendor ID payload.

Delete payload.

Notify payload.

Nonce payload.

Authentication data for digital signatures.

Authentication payload.

Certificate Request payload.

Certificate payload.

Identification payload.

Key Exchange payload.

Transform attribute.

Transform substructure.

Proposal substructure.

Security Association payload.

Generic payload header.

ESP trailer.

SSH_FXP_DATA packet header.

Session ticket.

KeyUpdate message.

NewSessionTicket message (TLS 1.3)

EncryptedExtensions message.

HelloRetryRequest message.

Digitally-signed element (TLS 1.3)

Certificate request context.

List of PSK binders.

PSK binder.

List of PSK identities.

List of PSK key exchange modes.

List of key shares.

Key share entry.

Session state information.

Alert message.

ChangeCipherSpec message.

NewSessionTicket message.

CertificateRequest message.

ServerHello message.

ClientHello message.

TLS handshake message.

TLS record.

Digitally-signed element (TLS 1.2)

Digitally-signed element (TLS 1.0 and TLS 1.1)

PSK identity hint.

PSK identity.

Renegotiated connection.

List of supported certificate types.

List of supported EC point formats.

List of supported groups.

List of protocol names.

Protocol name.

List of server names.

Server name.

List of TLS extensions.

TLS extension.

List of certificate authorities.

List of certificates.

List of signature schemes.

Compression methods.

Cipher suites.

HelloVerifyRequest message.

DTLS handshake message.

DTLS record.

List of supported versions.


Error packet (ERROR)

Acknowledgment packet (ACK)

Data packet (DATA)

Write request packet (WRQ)

NTP authenticator.

NTP packet header.

LCP/NCP option.

PPP Discard-Request packet.

Echo-Request and Echo-Reply packet.

Protocol-Reject packet.

Code-Reject packet.

Terminate-Request and Terminate-Ack packet.

Authenticate-Nak packet.

Authenticate-Ack packet.

Address-and-Control-Field-Compression option.

Protocol-Field-Compression option.

Magic-Number option.

Quality-Protocol option.

Authentication-Protocol option.

Async-Control-Character-Map option.

IPv6-Compression-Protocol option.

Secondary-NBNS-Server-Address option.

Secondary-DNS-Server-Address option.

Primary-NBNS-Server-Address option.

Primary-DNS-Server-Address option.

IP-Address option.

IP-Compression-Protocol option.

Failure packet.

Success packet.

Response packet.

NBNS address entry.





UNSUBACK message.


SUBACK message.

SUBSCRIBE message.

PUBCOMP message.

PUBREL message.

PUBREC message.

PUBACK message.

PUBLISH message.

REGACK message.

REGISTER message.

WILLTOPIC message.

CONNACK message.

CONNECT message.

GWINFO message.

SEARCHGW message.

ADVERTISE message.

Extended message header.

Message header.

UTF-8 encoded string.

Exception response PDU.

Read/Write Multiple Registers response PDU.

Read/Write Multiple Registers request PDU.

Mask Write Register response PDU.

Mask Write Register request PDU.

Write Multiple Registers response PDU.

Write Multiple Registers request PDU.

Write Multiple Coils response PDU.

Write Multiple Coils request PDU.

Write Single Register response PDU.

Write Single Register request PDU.

Write Single Coil response PDU.

Write Single Coil request PDU.

Read Holding Input response PDU.

Read Holding Input request PDU.

Read Holding Registers response PDU.

Read Holding Registers request PDU.

Read Discrete Inputs response PDU.

Read Discrete Inputs request PDU.

Read Coils response PDU.

Read Coils request PDU.

Organizationally Specific TLV.

Management Address TLV (part 2)

Management Address TLV (part 1)

System Capabilities TLV.

Time To Live TLV.

Port ID TLV.

Chassis ID TLV.

Extended Power-Via-MDI TLV.

Location Identification TLV.

Network Policy TLV.

Type 3 and Type 4 extension.

DLL Classification extension.

Power Via MDI Measurements TLV.

Maximum Frame Size TLV.

Link Aggregation TLV.

Power Via MDI TLV.

Protocol Identity TLV.


Port And Protocol VLAN ID TLV.

6LoWPAN Context option (6CO)

DNS Search List option (DNSSL)

Recursive DNS Server option (RDNSS)

Route Information option (RIO)

MTU option.

Redirected Header option (RHO)

Prefix Information option (PIO)

Source/Target Link-Layer Address option.

Neighbor Discovery option general format.

Redirect message.

Neighbor Advertisement message.

Neighbor Solicitation message.

Router Advertisement message.

IPv6 option.

IPv6 Encapsulating Security Payload header.

IPv6 Authentication header.

IPv6 Type 0 Routing header.

IPv6 Destination Options header.

IPv6 Hop-by-Hop Options header.

ICMPv6 Echo Request and Echo Reply messages.

ICMPv6 Parameter Problem message.

ICMPv6 Time Exceeded message.

ICMPv6 Packet Too Big message.

ICMPv6 Destination Unreachable message.

ICMPv6 Error message.

ICMP Echo Request and Echo Reply messages.

ICMP Parameter Problem message.

ICMP Time Exceeded message.

ICMP Destination Unreachable message.

ICMP Error message.

Configuration descriptors.

CDC union functional descriptor.

CDC abstract control management functional descriptor.

CDC call management functional descriptor.

CDC header functional descriptor.

String descriptor.

Endpoint descriptor.

Interface descriptor.

Configuration descriptor.

RX packet header.

SRV resource record format.

AAAA resource record format.

A resource record format.

Resource record format.

Question format.

Fully Qualified Domain Name option.

IA_PD Prefix option.

Identity Association for Prefix Delegation Option.

Domain Search List option.

DNS Recursive Name Server option.

Reconfigure Message option.

Status Code option.

Server Unicast option.

Authentication option.

Elapsed Time option.

Preference option.

Option Request option.

IA Address option.

Identity Association for Temporary Addresses option.

Identity Association for Non-temporary Addresses option.

DHCPv6 option.

DHCPv6 relay agent message.

DHCPv6 message.

DUID-LL structure.

DUID-EN structure.

DHCP option.

TCP option.

VLAN tag.

LLC header.

Ethernet frame header.

EUI-64 identifier.

CoAP option format.

Resource header.

Root entry.

A Destination Unreachable message is generated in response to a packet that cannot be delivered to its destination address for reasons other than congestion

A Packet Too Big message is sent by a router in response to a packet that it cannot forward because the packet is larger than the MTU of the outgoing link

A Time Exceeded message is sent by a router when it receives a packet with a Hop Limit of zero

A Parameter Problem message is sent by an IPv6 node when it finds a problem with a field in the IPv6 header or extension headers such that it cannot complete processing the packet

Every node must implement an ICMPv6 Echo responder function that receives Echo Requests and sends corresponding Echo Replies

Protocol version

Definition at line 65 of file resource_manager.h.

◆ dataLength

uint32_t dataLength

Definition at line 69 of file resource_manager.h.

◆ dataStart

uint32_t dataStart

Definition at line 68 of file resource_manager.h.

◆ name

char_t name[]

Definition at line 71 of file resource_manager.h.

◆ nameLength

uint8_t nameLength

Definition at line 70 of file resource_manager.h.

◆ ResEntry


Definition at line 72 of file resource_manager.h.

◆ ResHeader


Definition at line 96 of file resource_manager.h.

◆ ResRootEntry


Definition at line 85 of file resource_manager.h.

◆ rootEntry

ResRootEntry rootEntry

Definition at line 95 of file resource_manager.h.