diff options
author | Akira Akashi <rubenru09@aol.com> | 2021-05-23 21:34:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-23 21:34:14 +0100 |
commit | c3a9cae755efd6c2efde269c0837d2524634d592 (patch) | |
tree | 4ec97468f3963829479447e5772b19b971087b0a /include/list_menu_items.h | |
parent | b934918219cb4871c726b4e9815f0b801210865b (diff) | |
parent | 8ffb7a0c637d74d2140fefc7e20e10288b43e286 (diff) |
Merge branch 'master' into master
Diffstat (limited to 'include/list_menu_items.h')
-rw-r--r-- | include/list_menu_items.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/list_menu_items.h b/include/list_menu_items.h new file mode 100644 index 00000000..ec96d480 --- /dev/null +++ b/include/list_menu_items.h @@ -0,0 +1,21 @@ +#ifndef POKEDIAMOND_LIST_MENU_ITEMS_H +#define POKEDIAMOND_LIST_MENU_ITEMS_H + +#include "string16.h" +#include "msgdata.h" + +struct ListMenuItem +{ + struct String * text; + s32 value; +}; + +struct ListMenuItem * ListMenuItems_ctor(u32 count, u32 heap_id); +void ListMenuItems_dtor(struct ListMenuItem * items); +void ListMenuItems_AppendFromMsgData(struct ListMenuItem * items, struct MsgData * msgData, u32 msgNo, s32 value); +void ListMenuItems_AddItem(struct ListMenuItem * items, struct String * str, s32 value); +void ListMenuItems_CopyItem(struct ListMenuItem * items, struct ListMenuItem * src); +struct ListMenuItem * ListMenuItems_SeekEnd(struct ListMenuItem * items, u32 * heap_id_p); +void ListMenuItems_DestroyMenuStrings(struct ListMenuItem * items); + +#endif // POKEDIAMOND_LIST_MENU_ITEMS_H |