Changeset dc5c303 in mainline for uspace/lib/ofw/include/ofw.h
- Timestamp:
- 2023-12-28T13:59:23Z (14 months ago)
- Children:
- 6b66de6b
- Parents:
- 42c2e65 (diff), f87ff8e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- boba-buba <120932204+boba-buba@…> (2023-12-28 13:59:23)
- git-committer:
- GitHub <noreply@…> (2023-12-28 13:59:23)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ofw/include/ofw.h
r42c2e65 rdc5c303 1 1 /* 2 * Copyright (c) 2001-2004 Jakub Jermar 3 * Copyright (c) 2005 Martin Decky 4 * Copyright (c) 2011 Oleg Romanenko 2 * Copyright (c) 2023 Jiri Svoboda 5 3 * All rights reserved. 6 4 * … … 29 27 */ 30 28 31 /** @file 29 /** @addtogroup libofw 30 * @{ 31 */ 32 /** 33 * @file OpenFirmware device tree access 32 34 */ 33 35 34 #ifndef BOOT_STR_H_35 #define BOOT_STR_H_36 #ifndef _OFW_H 37 #define _OFW_H 36 38 37 39 #include <errno.h> 38 40 #include <stdbool.h> 39 41 #include <stddef.h> 40 #include < uchar.h>42 #include <types/ofw.h> 41 43 42 /* Common Unicode characters */ 43 #define U_SPECIAL '?' 44 extern errno_t ofw_child_it_first(ofw_child_it_t *, const char *); 45 extern void ofw_child_it_next(ofw_child_it_t *); 46 extern bool ofw_child_it_end(ofw_child_it_t *); 47 extern const char *ofw_child_it_get_name(ofw_child_it_t *); 48 extern errno_t ofw_child_it_get_path(ofw_child_it_t *, char **); 49 extern void ofw_child_it_fini(ofw_child_it_t *); 44 50 45 /** No size limit constant */ 46 #define STR_NO_LIMIT ((size_t) -1) 47 48 extern char32_t str_decode(const char *str, size_t *offset, size_t sz); 49 extern errno_t chr_encode(char32_t ch, char *str, size_t *offset, size_t sz); 50 51 extern size_t str_size(const char *str); 52 extern size_t str_lsize(const char *str, size_t max_len); 53 extern size_t str_length(const char *str); 54 55 extern bool ascii_check(char32_t ch); 56 extern bool chr_check(char32_t ch); 57 58 extern int str_cmp(const char *s1, const char *s2); 59 extern void str_cpy(char *dest, size_t size, const char *src); 51 extern errno_t ofw_prop_it_first(ofw_prop_it_t *, const char *); 52 extern void ofw_prop_it_next(ofw_prop_it_t *); 53 extern bool ofw_prop_it_end(ofw_prop_it_t *); 54 extern const char *ofw_prop_it_get_name(ofw_prop_it_t *); 55 extern const void *ofw_prop_it_get_data(ofw_prop_it_t *, size_t *); 56 extern void ofw_prop_it_fini(ofw_prop_it_t *); 60 57 61 58 #endif
Note:
See TracChangeset
for help on using the changeset viewer.