Searched refs:item (Results 1 - 25 of 606) sorted by relevance

1234567891011>>

/haiku/src/system/boot/platform/bios_ia32/
H A Dmenu.cpp40 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 Ddl_list.h13 #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 Ddl_list.h13 #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 Ddl_list.h13 #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/boot/platform/efi/
H A Dmenu.cpp19 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 Dmenu.cpp19 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 Dmenu.cpp18 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/system/libroot/posix/locale/
H A Dnl_langinfo.cpp19 nl_langinfo(nl_item item) argument
21 if (item < 0 || item >= _NL_LANGINFO_LAST)
25 return const_cast<char*>(gLocaleBackend->GetLanginfo(item));
27 return const_cast<char*>(gPosixLanginfo[item]);
/haiku/src/add-ons/translators/gif/
H A DSFHash.cpp44 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/tests/system/boot/loader/
H A Dplatform_menu.cpp28 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 Dmenu.cpp18 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/apps/glteapot/
H A DTeapotWindow.cpp49 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/googlefs/
H A Dlists2.c28 status_t sll_insert_head(long nextoff, void **head, void *item) argument
31 if (head == NULL || item == NULL)
35 *(void **)(((char *)item)+nextoff) = next;
36 *head = item;
40 status_t sll_insert_tail(long nextoff, void **head, void *item) argument
43 if (head == NULL || item == NULL)
46 if (*(void **)(((char *)item)+nextoff)) {
47 dprintf("sll_insert_tail: WARNING: %p->next NOT NULL\n", item);
48 *(void **)(((char *)item)+nextoff) = NULL;
53 *head = item;
78 sll_remove(long nextoff, void **head, void *item) argument
98 sll_next(long nextoff, void *item) argument
[all...]
H A Dlists2.h9 typedef int (*sll_compare_func)(const void *item, void *id);
12 extern status_t sll_insert_head(long nextoff, void **head, void *item);
13 extern status_t sll_insert_tail(long nextoff, void **head, void *item);
15 extern status_t sll_remove(long nextoff, void **head, void *item);
16 extern void *sll_next(long nextoff, void *item);
18 #define SLLPTROFF(type,item,nextp) ((typeof(item))(((char *)(item)) + offsetof(item, nextp)))
19 #define SLLITEM2PTR(type,item,next
[all...]
H A Dlists.c9 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/wb840/
H A Ddriver.c27 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/servers/app/
H A DScreenManager.cpp86 screen_item* item = fScreenList.ItemAt(i); local
88 delete item->screen;
89 delete item->listener;
90 delete item;
101 screen_item* item = fScreenList.ItemAt(index); local
102 if (item != NULL)
103 return item->screen;
129 screen_item* item = fScreenList.ItemAt(i); local
131 if (item->owner == NULL && list.AddItem(item
148 screen_item* item = _AddHWInterface(interface); local
167 screen_item* item = fScreenList.ItemAt(i); local
185 screen_item* item = fScreenList.ItemAt(i); local
233 screen_item* item = new(nothrow) screen_item; local
[all...]
/haiku/src/preferences/time/
H A DTimeZoneListView.cpp43 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 DUIUtils.cpp14 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 DKPPPConfigurePacket.cpp50 // 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...]
H A D_KPPPMRUHandler.cpp22 status_t ParseRequestedItem(mru_item *item, KPPPInterface& interface);
39 mru_item item;
40 item.type = kMRUType;
41 item.length = 4;
42 item.MRU = htons(fLocalMRU);
43 return request.AddItem((ppp_configure_item*) &item) ? B_OK : B_ERROR;
50 mru_item *item = (mru_item*) nak.ItemWithType(kMRUType); local
51 if (!item || item->length != 4)
54 uint16 MRU = ntohs(item
76 mru_item *item = (mru_item*) ack.ItemWithType(kMRUType); local
110 ParseRequestedItem(mru_item *item, KPPPInterface& interface) argument
[all...]
/haiku/src/apps/processcontroller/
H A DTeamBarMenu.cpp88 TeamBarMenuItem *item; local
90 for (k = 1; (item = (TeamBarMenuItem*)ItemAt(k)) != NULL; k++) {
91 item->BarUpdate();
92 if (item->fKernel < 0) {
99 fRecycleList[lastRecycle++].item = item;
106 total += item->fUser + item->fKernel;
110 // Look new teams that have appeared. Create an item for them, or recycle from the list.
113 item
[all...]
/haiku/src/kits/storage/
H A DResourcesContainer.cpp34 // 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...]
/haiku/src/system/kernel/
H A Dboot_item.cpp33 boot_item *item = new(nothrow) boot_item; local
34 if (item == NULL)
37 item->name = name;
38 item->data = data;
39 item->size = size;
41 sItemList.Add(item);
52 // search item
54 boot_item *item = it.Next(); local
56 if (!strcmp(name, item->name)) {
58 *_size = item
[all...]
/haiku/headers/os/support/
H A DList.h23 bool AddItem(void* item, int32 index);
24 bool AddItem(void* item);
28 bool RemoveItem(void* item);
31 bool ReplaceItem(int32 index, void* item);
51 bool HasItem(void* item) const;
52 bool HasItem(const void* item) const;
53 int32 IndexOf(void* item) const;
54 int32 IndexOf(const void* item) const;
59 void DoForEach(bool (*func)(void* item));
60 void DoForEach(bool (*func)(void* item,
[all...]

Completed in 498 milliseconds

1234567891011>>