Ignore:
File:
1 edited

Legend:

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

    r5caad1d ree3b28a9  
    11/*
    2  * Copyright (c) 2025 Jiri Svoboda
     2 * Copyright (c) 2024 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    3939
    4040#include <adt/list.h>
    41 #include <loc.h>
     41#include <sif.h>
    4242#include <stdbool.h>
    4343#include <types/tbarcfg/tbarcfg.h>
     
    4545/** Taskbar configuration */
    4646struct tbarcfg {
    47         /** Configuration file path */
    48         char *cfgpath;
     47        /** Repository session */
     48        sif_sess_t *repo;
    4949        /** List of start menu entries (smenu_entry_t) */
    5050        list_t entries;
     51        /** Entries SIF node */
     52        sif_node_t *nentries;
    5153};
    5254
     
    5759        /** Link to @c smenu->entries */
    5860        link_t lentries;
     61        /** SIF node (persistent storage) */
     62        sif_node_t *nentry;
    5963        /** Is this a separator entry */
    6064        bool separator;
     
    6973/** Taskbar configuration listener */
    7074typedef struct tbarcfg_listener {
    71         /** Async port */
    72         port_id_t portid;
    73         /** Registered server */
    74         loc_srv_t *srv;
    75         /** Registered service */
    76         service_id_t svcid;
    7775        /** Notification callback */
    7876        void (*cb)(void *);
     
    8179} tbarcfg_listener_t;
    8280
     81extern errno_t smenu_entry_new(tbarcfg_t *, sif_node_t *, const char *,
     82    const char *, bool, smenu_entry_t **);
     83extern errno_t smenu_entry_sep_new(tbarcfg_t *, sif_node_t *, smenu_entry_t **);
     84extern void smenu_entry_delete(smenu_entry_t *);
     85
    8386#endif
    8487
Note: See TracChangeset for help on using the changeset viewer.