Ignore:
Timestamp:
2023-12-28T13:59:23Z (2 years 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/app/taskbar-cfg/types/smeedit.h

    r42c2e65 rdc5c303  
    11/*
    2  * Copyright (c) 2001-2004 Jakub Jermar
     2 * Copyright (c) 2023 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 /** @addtogroup kernel_generic
     29/** @addtogroup taskbar-cfg
    3030 * @{
    3131 */
    32 /** @file
     32/**
     33 * @file Start menu entry edit dialog
    3334 */
    3435
    35 #ifndef KERN_MEM_H_
    36 #define KERN_MEM_H_
     36#ifndef TYPES_SMEEDIT_H
     37#define TYPES_SMEEDIT_H
    3738
    38 #include <stddef.h>
    39 #include <stdint.h>
    40 #include <cc.h>
     39#include <ui/fixed.h>
     40#include <ui/label.h>
     41#include <ui/entry.h>
     42#include <ui/pbutton.h>
     43#include <ui/window.h>
    4144
    42 #ifdef CONFIG_LTO
    43 #define DO_NOT_DISCARD ATTRIBUTE_USED
    44 #else
    45 #define DO_NOT_DISCARD
    46 #endif
    47 
    48 #define memset(dst, val, cnt)  __builtin_memset((dst), (val), (cnt))
    49 #define memcpy(dst, src, cnt)  __builtin_memcpy((dst), (src), (cnt))
    50 #define memcmp(s1, s2, cnt)    __builtin_memcmp((s1), (s2), (cnt))
    51 
    52 extern void memsetb(void *, size_t, uint8_t)
    53     __attribute__((nonnull(1)));
    54 extern void memsetw(void *, size_t, uint16_t)
    55     __attribute__((nonnull(1)));
    56 extern void *memmove(void *, const void *, size_t)
    57     __attribute__((nonnull(1, 2))) DO_NOT_DISCARD;
     45/** Start menu entry edit dialog */
     46typedef struct smeedit {
     47        /** Containing start menu configuration tab */
     48        struct startmenu *startmenu;
     49        /** Start menu entry or @c NULL if creating a new entry */
     50        struct startmenu_entry *smentry;
     51        /** Window */
     52        ui_window_t *window;
     53        /** Fixed layout */
     54        ui_fixed_t *fixed;
     55        /** 'Caption' label */
     56        ui_label_t *lcaption;
     57        /** Caption entry */
     58        ui_entry_t *ecaption;
     59        /** 'Command' label */
     60        ui_label_t *lcmd;
     61        /** Command entry */
     62        ui_entry_t *ecmd;
     63        /** OK buttion */
     64        ui_pbutton_t *bok;
     65        /** Cancel button */
     66        ui_pbutton_t *bcancel;
     67} smeedit_t;
    5868
    5969#endif
Note: See TracChangeset for help on using the changeset viewer.