Changeset dc5c303 in mainline for uspace/lib/ui/private/menudd.h


Ignore:
Timestamp:
2023-12-28T13:59:23Z (22 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/ui/private/menudd.h

    r42c2e65 rdc5c303  
    11/*
    2  * Copyright (c) 2005 Ondrej Palkovsky
     2 * Copyright (c) 2023 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 /** @addtogroup kernel_generic
     29/** @addtogroup libui
    3030 * @{
    3131 */
    32 /** @file
     32/**
     33 * @file Menu drop-down structure
     34 *
    3335 */
    3436
    35 #ifndef KERN_SYMTAB_LOOKUP_H_
    36 #define KERN_SYMTAB_LOOKUP_H_
     37#ifndef _UI_PRIVATE_MENUDD_H
     38#define _UI_PRIVATE_MENUDD_H
    3739
    38 #include <typedefs.h>
     40#include <adt/list.h>
     41#include <gfx/coord.h>
     42#include <stdbool.h>
     43#include <types/ui/menudd.h>
     44#include <types/ui/resource.h>
    3945
    40 #define MAX_SYMBOL_NAME  64
    41 
    42 struct symtab_entry {
    43         uint64_t address_le;
    44         char symbol_name[MAX_SYMBOL_NAME];
     46/** Actual structure of menu drop-down.
     47 *
     48 * This is private to libui.
     49 */
     50struct ui_menu_dd {
     51        /** Containing menu bar */
     52        struct ui_menu_bar *mbar;
     53        /** Link to @c bar->menudds */
     54        link_t lmenudds;
     55        /** Caption */
     56        char *caption;
     57        /** Popup window or @c NULL if drop-down is not currently open */
     58        struct ui_popup *popup;
     59        /** Actual menu */
     60        struct ui_menu *menu;
    4561};
    46 
    47 extern errno_t symtab_name_lookup(uintptr_t, const char **, uintptr_t *);
    48 extern const char *symtab_fmt_name_lookup(uintptr_t);
    49 extern errno_t symtab_addr_lookup(const char *, uintptr_t *);
    50 
    51 #ifdef CONFIG_SYMTAB
    52 
    53 /** Symtable linked together by build process
    54  *
    55  */
    56 extern struct symtab_entry symbol_table[];
    57 
    58 #endif /* CONFIG_SYMTAB */
    5962
    6063#endif
Note: See TracChangeset for help on using the changeset viewer.