/haiku/src/system/boot/platform/bios_ia32/ |
H A D | menu.cpp | 40 MenuItem* item; local 44 item = new(std::nothrow) MenuItem("Select screen resolution", 46 if (item != NULL) { 47 menu->AddItem(item); 48 item->SetTarget(video_mode_hook); 49 item->SetShortcut('v'); 56 item = new(std::nothrow) MenuItem("Use fail-safe graphics driver"); 57 if (item != NULL) { 58 menu->AddItem(item); 59 item 103 platform_update_menu_item(Menu* menu, MenuItem* item) argument 117 platform_get_user_input_text(Menu* menu, MenuItem* item, char* buffer, size_t bufferSize) argument [all...] |
/haiku/src/add-ons/kernel/bus_managers/scsi/ |
H A D | dl_list.h | 13 #define REMOVE_DL_LIST( item, head, prefix ) \ 15 if( item->prefix##prev ) \ 16 item->prefix##prev->prefix##next = item->prefix##next; \ 18 head = item->prefix##next; \ 20 if( item->prefix##next ) \ 21 item->prefix##next->prefix##prev = item->prefix##prev; \ 24 #define ADD_DL_LIST_HEAD( item, head, prefix ) \ 26 item [all...] |
/haiku/src/add-ons/kernel/generic/locked_pool/ |
H A D | dl_list.h | 13 #define REMOVE_DL_LIST( item, head, prefix ) \ 15 if( item->prefix##prev ) \ 16 item->prefix##prev->prefix##next = item->prefix##next; \ 18 head = item->prefix##next; \ 20 if( item->prefix##next ) \ 21 item->prefix##next->prefix##prev = item->prefix##prev; \ 24 #define ADD_DL_LIST_HEAD( item, head, prefix ) \ 26 item [all...] |
/haiku/src/add-ons/kernel/generic/scsi_periph/ |
H A D | dl_list.h | 13 #define REMOVE_DL_LIST( item, head, prefix ) \ 15 if( item->prefix##prev ) \ 16 item->prefix##prev->prefix##next = item->prefix##next; \ 18 head = item->prefix##next; \ 20 if( item->prefix##next ) \ 21 item->prefix##next->prefix##prev = item->prefix##prev; \ 24 #define ADD_DL_LIST_HEAD( item, head, prefix ) \ 26 item [all...] |
/haiku/src/system/libroot/posix/locale/ |
H A D | nl_langinfo.cpp | 21 nl_langinfo(nl_item item) argument 23 if (item < 0 || item >= _NL_LANGINFO_LAST) 27 return const_cast<char*>(GetCurrentLocaleBackend()->GetLanginfo(item)); 29 return const_cast<char*>(gPosixLanginfo[item]); 34 nl_langinfo_l(nl_item item, locale_t locale) argument 36 if (item < 0 || item >= _NL_LANGINFO_LAST) 42 return const_cast<char*>(backend->GetLanginfo(item)); 44 return const_cast<char*>(gPosixLanginfo[item]); [all...] |
/haiku/src/system/boot/platform/efi/ |
H A D | menu.cpp | 19 MenuItem *item; local 23 item = new(std::nothrow)MenuItem("Select video mode", video_mode_menu()); 24 if (item != NULL) { 25 menu->AddItem(item); 26 item->SetTarget(video_mode_hook); 27 item->SetShortcut('v'); 33 item = new(std::nothrow) MenuItem("Use fail-safe graphics driver"); 34 if (item != NULL) { 35 menu->AddItem(item); 36 item 62 platform_update_menu_item(Menu *menu, MenuItem *item) argument 76 platform_get_user_input_text(Menu *menu, MenuItem *item, char *buffer, size_t bufferSize) argument [all...] |
/haiku/src/system/boot/platform/atari_m68k/ |
H A D | menu.cpp | 19 MenuItem *item; local 23 menu->AddItem(item = new(nothrow) MenuItem("Select screen resolution", video_mode_menu())); 24 item->SetTarget(video_mode_hook); 27 menu->AddItem(item = new(nothrow) MenuItem("Use fail-safe graphics driver")); 28 item->SetType(MENU_ITEM_MARKABLE); 29 item->SetData(B_SAFEMODE_FAIL_SAFE_VIDEO_MODE); 30 item->SetHelpText("The system will use VESA mode and won't try to open any video graphics driver"); 35 menu->AddItem(item = new(nothrow) MenuItem("Don't call the BIOS")); 36 item->SetType(MENU_ITEM_MARKABLE); 38 menu->AddItem(item 56 platform_update_menu_item(Menu *menu, MenuItem *item) argument 70 platform_get_user_input_text(Menu *menu, MenuItem *item, char *buffer, size_t bufferSize) argument [all...] |
/haiku/src/system/boot/platform/amiga_m68k/ |
H A D | menu.cpp | 18 MenuItem *item; local 22 menu->AddItem(item = new(nothrow) MenuItem("Select screen resolution", video_mode_menu())); 23 item->SetTarget(video_mode_hook); 26 menu->AddItem(item = new(nothrow) MenuItem("Use fail-safe graphics driver")); 27 item->SetType(MENU_ITEM_MARKABLE); 28 item->SetData(B_SAFEMODE_FAIL_SAFE_VIDEO_MODE); 29 item->SetHelpText("The system will use VESA mode and won't try to open any video graphics driver"); 34 menu->AddItem(item = new(nothrow) MenuItem("Don't call the BIOS")); 35 item->SetType(MENU_ITEM_MARKABLE); 37 menu->AddItem(item 55 platform_update_menu_item(Menu *menu, MenuItem *item) argument 68 platform_get_user_input_text(Menu *menu, MenuItem *item, char *buffer, size_t bufferSize) argument [all...] |
/haiku/src/add-ons/translators/gif/ |
H A D | SFHash.cpp | 44 HashItem* item = main_array[x]; local 45 while (item != NULL) { 46 HashItem* t = item->next; 47 delete item; 48 item = t; 56 SFHash::AddItem(HashItem* item) { argument 57 item->next = NULL; 58 int pos = item->key % size; 61 main_array[pos] = item; 65 temp->next = item; 74 HashItem* item = main_array[pos]; local 90 HashItem* item = main_array[x]; local 108 HashItem* item; local [all...] |
/haiku/src/system/boot/platform/openfirmware/ |
H A D | menu.cpp | 14 of_exit_hook(Menu *menu, MenuItem *item) argument 24 MenuItem* item; local 28 item = new(std::nothrow) MenuItem("Exit to OpenFirmware"); 29 if (item != NULL) { 30 menu->AddItem(item); 31 item->SetTarget(of_exit_hook); 32 item->SetShortcut('q'); 44 platform_update_menu_item(Menu *menu, MenuItem *item) argument 46 platform_generic_update_text_menu_item(menu, item); 58 platform_get_user_input_text(Menu *menu, MenuItem *item, cha argument [all...] |
/haiku/src/tests/system/boot/loader/ |
H A D | platform_menu.cpp | 28 print_item_at(int32 line, MenuItem *item, bool clearHelp = true) argument 30 if (!item->IsEnabled()) 35 if (item->Type() == MENU_ITEM_MARKABLE) { 37 printf("%c", item->IsMarked() ? 'x' : ' '); 42 printf(item->Label()); 44 if (item->Submenu() && item->Submenu()->Type() == CHOICE_MENU) { 46 Menu *subMenu = item->Submenu(); 60 if (!item->IsEnabled()) 77 MenuItem *item; local 97 dump_devices_hook(Menu *menu, MenuItem *item) argument 130 MenuItem *item; local 144 platform_update_menu_item(Menu *menu, MenuItem *item) argument 154 MenuItem *item = menu->FindSelected(&selected); local 204 platform_get_user_input_text(Menu* menu, MenuItem* item, char* buffer, size_t bufferSize) argument [all...] |
/haiku/src/system/boot/platform/u-boot/ |
H A D | menu.cpp | 18 MenuItem *item; local 22 menu->AddItem(item = new(nothrow) MenuItem("Select fail-safe video mode", video_mode_menu())); 23 item->SetTarget(video_mode_hook); 26 menu->AddItem(item = new(nothrow) MenuItem("Use fail-safe video mode")); 27 item->SetType(MENU_ITEM_MARKABLE); 28 item->SetData(B_SAFEMODE_FAIL_SAFE_VIDEO_MODE); 29 item->SetHelpText("The system will use VESA mode " 34 menu->AddItem(item = new(nothrow) MenuItem("Don't call the BIOS")); 35 item->SetHelpText("Stops the system from calling BIOS functions."); 36 item 64 platform_update_menu_item(Menu *menu, MenuItem *item) argument 78 platform_get_user_input_text(Menu *menu, MenuItem *item, char *buffer, size_t bufferSize) argument [all...] |
/haiku/src/system/boot/platform/riscv/ |
H A D | menu.cpp | 18 MenuItem* item; local 22 menu->AddItem(item = new(nothrow) MenuItem( 24 item->SetTarget(video_mode_hook); 27 menu->AddItem(item = new(nothrow) MenuItem( 29 item->SetType(MENU_ITEM_MARKABLE); 30 item->SetData(B_SAFEMODE_FAIL_SAFE_VIDEO_MODE); 31 item->SetHelpText("The system will use VESA mode and won't try to " 37 menu->AddItem(item = new(nothrow) MenuItem("Disable ACPI")); 38 item->SetType(MENU_ITEM_MARKABLE); 39 item 51 platform_update_menu_item(Menu* menu, MenuItem* item) argument 65 platform_get_user_input_text(Menu* menu, MenuItem* item, char* buffer, size_t bufferSize) argument [all...] |
/haiku/src/apps/glteapot/ |
H A D | TeapotWindow.cpp | 49 BMenuItem* item; local 51 menu->AddItem(item = new BMenuItem(B_TRANSLATE("Add a teapot"), 53 item->SetTarget(fObjectView); 55 menu->AddItem(item = new BMenuItem(B_TRANSLATE("Quit"), 57 item->SetTarget(be_app); 60 menu->AddItem(item = new BMenuItem(B_TRANSLATE("Perspective"), 62 item->SetTarget(fObjectView); 63 item->SetMarked(false); 64 menu->AddItem(item = new BMenuItem(B_TRANSLATE("FPS display"), 66 item [all...] |
/haiku/src/add-ons/kernel/file_systems/websearchfs/ |
H A D | lists2.h | 13 typedef int (*sll_compare_func)(const void *item, void *id); 16 extern status_t sll_insert_head(long nextoff, void **head, void *item); 17 extern status_t sll_insert_tail(long nextoff, void **head, void *item); 19 extern status_t sll_remove(long nextoff, void **head, void *item); 20 extern void *sll_next(long nextoff, void *item); 22 #define SLLPTROFF(type,item,nextp) ((typeof(item))(((char *)(item)) + offsetof(item, nextp))) 23 #define SLLITEM2PTR(type,item,next [all...] |
H A D | lists.c | 9 void slist_init(struct _slist_entry *item) argument 11 item->next = NULL; 14 void slist_uninit(struct _slist_entry *item) argument 16 item->next = NULL; 32 status_t slist_insert_head(struct _slist_entry **head, struct _slist_entry *item) argument 35 if (head == NULL || item == NULL) 39 item->next = next; 40 *head = item; 60 status_t slist_remove(struct _slist_entry **head, struct _slist_entry *item) argument 64 if (head == NULL || *head == NULL || item 80 slist_next(struct _slist_entry *item) argument [all...] |
/haiku/src/add-ons/kernel/drivers/network/ether/wb840/ |
H A D | driver.c | 27 probe(pci_info* item) argument 29 if ((item->vendor_id == WB_VENDORID && item->device_id == WB_DEVICEID_840F) 30 || (item->vendor_id == CP_VENDORID && item->device_id == CP_DEVICEID_RL100)) 47 struct pci_info* item = NULL; local 63 item = (pci_info*)malloc(sizeof(pci_info)); 64 if (item == NULL) { 69 while (gPci->get_nth_pci_info(index, item) == B_OK) { 70 if (probe(item)) { 131 char* item; local [all...] |
/haiku/src/preferences/time/ |
H A D | TimeZoneListView.cpp | 43 TimeZoneListItem* item = static_cast<TimeZoneListItem*>( local 45 if (item == NULL || !item->HasTimeZone()) 51 &item->TimeZone()); 55 &item->TimeZone()); 57 BString toolTip = item->Text(); 58 toolTip << '\n' << item->TimeZone().ShortName() << " / " 59 << item->TimeZone().ShortDaylightSavingName()
|
/haiku/src/tests/add-ons/print/ppd/ui/ |
H A D | UIUtils.cpp | 14 BListItem* item; local 15 while ((item = list->RemoveItem((int32)0)) != NULL) { 16 delete item;
|
/haiku/src/add-ons/kernel/network/ppp/shared/libkernelppp/ |
H A D | KPPPConfigurePacket.cpp | 50 // there are no items (or one corrupted item) 53 ppp_configure_item *item; local 56 item = (ppp_configure_item*) (header.data + position); 57 if (item->length < 2) 59 // found a corrupted item 61 position += item->length; 62 AddItem(item); 89 /*! \brief Adds a new configure item to this packet. 91 Make sure all values are correct because the item will be copied. If the item' 102 AddItem(const ppp_configure_item *item, int32 index) argument 126 RemoveItem(ppp_configure_item *item) argument 142 ppp_configure_item *item = fItems.ItemAt(index); local 155 ppp_configure_item *item; local 197 ppp_configure_item *item; local [all...] |
/haiku/src/servers/app/ |
H A D | ScreenManager.cpp | 102 screen_item* item = fScreenList.ItemAt(index); local 103 if (item != NULL) 104 return item->screen.Get(); 130 screen_item* item = fScreenList.ItemAt(i); local 132 if (item->owner == NULL && list.AddItem(item->screen.Get())) { 133 item->owner = owner; 149 screen_item* item = _AddHWInterface(interface); local 150 if (item != NULL && list.AddItem(item 167 screen_item* item = fScreenList.ItemAt(i); local 185 screen_item* item = fScreenList.ItemAt(i); local 229 screen_item* item = new(nothrow) screen_item; local [all...] |
/haiku/src/system/boot/platform/next_m68k/ |
H A D | menu.cpp | 19 MenuItem *item; local 33 platform_update_menu_item(Menu *menu, MenuItem *item) argument 35 platform_generic_update_text_menu_item(menu, item); 47 platform_get_user_input_text(Menu *menu, MenuItem *item, char *buffer, argument 50 return platform_generic_get_user_input_text(menu, item, buffer,
|
/haiku/src/kits/tracker/ |
H A D | VirtualDirectoryWindow.cpp | 135 BMenuItem* item; local 137 item = new BMenuItem(B_TRANSLATE("Resize to fit"), 139 item->SetTarget(this); 140 menu->AddItem(item); 142 item = new BMenuItem(B_TRANSLATE("Select" B_UTF8_ELLIPSIS), 144 item->SetTarget(PoseView()); 145 menu->AddItem(item); 147 item = new BMenuItem(B_TRANSLATE("Select all"), 149 item->SetTarget(this); 150 menu->AddItem(item); [all...] |
/haiku/src/apps/processcontroller/ |
H A D | TeamBarMenu.cpp | 74 TeamBarMenuItem *item; local 76 for (k = 1; (item = (TeamBarMenuItem*)ItemAt(k)) != NULL; k++) { 77 item->BarUpdate(); 78 if (item->fKernel < 0) { 85 fRecycleList[lastRecycle++].item = item; 92 total += item->fUser + item->fKernel; 96 // Look new teams that have appeared. Create an item for them, or recycle from the list. 99 item [all...] |
/haiku/src/kits/storage/ |
H A D | ResourcesContainer.cpp | 34 // Returns false, if item is NULL or memory is insufficient, true otherwise. 36 ResourcesContainer::AddResource(ResourceItem *item, int32 index, argument 40 if (item) { 41 // replace an item with the same type and id 43 delete RemoveResource(IndexOf(item->Type(), item->ID())); 47 result = fResources.AddItem(item, index); 57 ResourceItem* item = (ResourceItem*)fResources.RemoveItem(index); local 58 if (item) 60 return item; 65 RemoveResource(ResourceItem *item) argument 87 ResourceItem *item = container.ResourceAt(i); local 130 ResourceItem *item = ResourceAt(i); local 144 ResourceItem *item = ResourceAt(i); local 162 ResourceItem *item = ResourceAt(i); local [all...] |