Changeset dc5c303 in mainline for uspace/lib/ofw/include/ofw.h


Ignore:
Timestamp:
2023-12-28T13:59:23Z (14 months ago)
Author:
GitHub <noreply@…>
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)
Message:

Merge branch 'master' into topic/packet-capture

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/ofw/include/ofw.h

    r42c2e65 rdc5c303  
    11/*
    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
    53 * All rights reserved.
    64 *
     
    2927 */
    3028
    31 /** @file
     29/** @addtogroup libofw
     30 * @{
     31 */
     32/**
     33 * @file OpenFirmware device tree access
    3234 */
    3335
    34 #ifndef BOOT_STR_H_
    35 #define BOOT_STR_H_
     36#ifndef _OFW_H
     37#define _OFW_H
    3638
    3739#include <errno.h>
    3840#include <stdbool.h>
    3941#include <stddef.h>
    40 #include <uchar.h>
     42#include <types/ofw.h>
    4143
    42 /* Common Unicode characters */
    43 #define U_SPECIAL  '?'
     44extern errno_t ofw_child_it_first(ofw_child_it_t *, const char *);
     45extern void ofw_child_it_next(ofw_child_it_t *);
     46extern bool ofw_child_it_end(ofw_child_it_t *);
     47extern const char *ofw_child_it_get_name(ofw_child_it_t *);
     48extern errno_t ofw_child_it_get_path(ofw_child_it_t *, char **);
     49extern void ofw_child_it_fini(ofw_child_it_t *);
    4450
    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);
     51extern errno_t ofw_prop_it_first(ofw_prop_it_t *, const char *);
     52extern void ofw_prop_it_next(ofw_prop_it_t *);
     53extern bool ofw_prop_it_end(ofw_prop_it_t *);
     54extern const char *ofw_prop_it_get_name(ofw_prop_it_t *);
     55extern const void *ofw_prop_it_get_data(ofw_prop_it_t *, size_t *);
     56extern void ofw_prop_it_fini(ofw_prop_it_t *);
    6057
    6158#endif
Note: See TracChangeset for help on using the changeset viewer.