Changeset 7b87e1d in mainline for uspace/lib/sif/private/sif.h


Ignore:
Timestamp:
2018-08-02T11:39:22Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
233a3a06
Parents:
1c398db2
git-author:
Jiri Svoboda <jiri@…> (2018-08-01 17:38:51)
git-committer:
Jiri Svoboda <jiri@…> (2018-08-02 11:39:22)
Message:

Implement SIF attributes.

File:
1 edited

Legend:

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

    r1c398db2 r7b87e1d  
    3939
    4040#include <adt/list.h>
     41#include <adt/odict.h>
    4142#include <stdio.h>
    4243
     
    5455};
    5556
     57/** SIF attribute */
     58typedef struct {
     59        /** Node to which this attribute belongs */
     60        struct sif_node *node;
     61        /** Link to @c node->attrs */
     62        odlink_t lattrs;
     63        /** Attribute name */
     64        char *aname;
     65        /** Attribute value */
     66        char *avalue;
     67} sif_attr_t;
     68
    5669/** SIF node */
    5770struct sif_node {
     
    6275        /** Node type */
    6376        char *ntype;
     77        /** Attributes (of sif_attr_t) */
     78        odict_t attrs;
    6479        /** Child nodes */
    6580        list_t children;
Note: See TracChangeset for help on using the changeset viewer.