Changeset ebb1489 in mainline for uspace/lib/sif/include/sif.h


Ignore:
Timestamp:
2024-10-13T08:23:40Z (2 months ago)
Author:
GitHub <noreply@…>
Children:
0472cf17
Parents:
2a0c827c (diff), b3b79981 (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@…> (2024-10-13 08:23:40)
git-committer:
GitHub <noreply@…> (2024-10-13 08:23:40)
Message:

Merge branch 'HelenOS:master' into topic/packet-capture

File:
1 edited

Legend:

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

    r2a0c827c rebb1489  
    11/*
    2  * Copyright (c) 2018 Jiri Svoboda
     2 * Copyright (c) 2024 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    4141
    4242struct sif_sess;
    43 typedef struct sif_sess sif_sess_t;
    44 
    45 struct sif_trans;
    46 typedef struct sif_trans sif_trans_t;
     43typedef struct sif_sess sif_doc_t;
    4744
    4845struct sif_node;
    4946typedef struct sif_node sif_node_t;
    5047
    51 errno_t sif_create(const char *, sif_sess_t **);
    52 errno_t sif_open(const char *, sif_sess_t **);
    53 errno_t sif_close(sif_sess_t *);
    54 sif_node_t *sif_get_root(sif_sess_t *);
     48errno_t sif_new(sif_doc_t **);
     49errno_t sif_load(const char *, sif_doc_t **);
     50errno_t sif_save(sif_doc_t *, const char *);
     51void sif_delete(sif_doc_t *);
     52sif_node_t *sif_get_root(sif_doc_t *);
    5553
    5654sif_node_t *sif_node_first_child(sif_node_t *);
     
    5957const char *sif_node_get_attr(sif_node_t *, const char *);
    6058
    61 errno_t sif_trans_begin(sif_sess_t *, sif_trans_t **);
    62 void sif_trans_abort(sif_trans_t *);
    63 errno_t sif_trans_end(sif_trans_t *);
    64 
    65 errno_t sif_node_prepend_child(sif_trans_t *, sif_node_t *, const char *,
    66     sif_node_t **);
    67 errno_t sif_node_append_child(sif_trans_t *, sif_node_t *, const char *,
    68     sif_node_t **);
    69 errno_t sif_node_insert_before(sif_trans_t *, sif_node_t *, const char *,
    70     sif_node_t **);
    71 errno_t sif_node_insert_after(sif_trans_t *, sif_node_t *, const char *,
    72     sif_node_t **);
    73 void sif_node_destroy(sif_trans_t *, sif_node_t *);
    74 errno_t sif_node_set_attr(sif_trans_t *, sif_node_t *, const char *,
     59errno_t sif_node_prepend_child(sif_node_t *, const char *, sif_node_t **);
     60errno_t sif_node_append_child(sif_node_t *, const char *, sif_node_t **);
     61errno_t sif_node_insert_before(sif_node_t *, const char *, sif_node_t **);
     62errno_t sif_node_insert_after(sif_node_t *, const char *, sif_node_t **);
     63void sif_node_destroy(sif_node_t *);
     64errno_t sif_node_set_attr(sif_node_t *, const char *,
    7565    const char *);
    76 void sif_node_unset_attr(sif_trans_t *, sif_node_t *, const char *);
     66void sif_node_unset_attr(sif_node_t *, const char *);
    7767
    7868#endif
Note: See TracChangeset for help on using the changeset viewer.