12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- #ifndef _pline_h
- #define _pline_h
- #include <sysrepo.h>
- #include <sysrepo/xpath.h>
- typedef struct {
- char *xpath;
- char *value;
- bool_t active;
- } pexpr_t;
- typedef enum {
- PCOMPL_NODE = 0,
- PCOMPL_TYPE = 1,
- } pcompl_type_e;
- typedef struct {
- pcompl_type_e type;
- struct lysc_node *node;
- char *xpath;
- } pcompl_t;
- typedef struct pline_s {
- faux_list_t *exprs;
- faux_list_t *compls;
- } pline_t;
- C_DECL_BEGIN
- pline_t *pline_new(void);
- void pline_free(pline_t *pline);
- pline_t *pline_parse(const struct ly_ctx *ctx, faux_argv_t *argv, uint32_t flags);
- pexpr_t *pline_current_expr(pline_t *pline);
- void pline_debug(pline_t *pline);
- C_DECL_END
- #endif
|