Home | History | Annotate | Download | only in bootctl

Lines Matching defs:module

60             "HAL module version:  %d.%d\n",
68 static int do_get_number_slots(boot_control_module_t *module)
70 int num_slots = module->getNumberSlots(module);
75 static int do_get_current_slot(boot_control_module_t *module)
77 int cur_slot = module->getCurrentSlot(module);
82 static int do_mark_boot_successful(boot_control_module_t *module)
84 int ret = module->markBootSuccessful(module);
92 static int do_set_active_boot_slot(boot_control_module_t *module,
95 int ret = module->setActiveBootSlot(module, slot_number);
102 static int do_set_slot_as_unbootable(boot_control_module_t *module,
105 int ret = module->setSlotAsUnbootable(module, slot_number);
113 static int do_is_slot_bootable(boot_control_module_t *module, int slot_number)
115 int ret = module->isSlotBootable(module, slot_number);
127 static int do_get_suffix(boot_control_module_t *module, int slot_number)
129 const char* suffix = module->getSuffix(module, slot_number);
134 static int do_is_slot_marked_successful(boot_control_module_t *module,
137 if (module->isSlotMarkedSuccessful == NULL) {
141 int ret = module->isSlotMarkedSuccessful(module, slot_number);
172 boot_control_module_t *module;
182 fprintf(stderr, "Error getting bootctrl module.\n");
185 module = (boot_control_module_t*) hw_module;
186 module->init(module);
191 return do_get_number_slots(module);
193 return do_get_current_slot(module);
195 return do_mark_boot_successful(module);
197 return do_set_active_boot_slot(module, parse_slot(2, argc, argv));
199 return do_set_slot_as_unbootable(module, parse_slot(2, argc, argv));
201 return do_is_slot_bootable(module, parse_slot(2, argc, argv));
203 return do_get_suffix(module, parse_slot(2, argc, argv));
205 return do_is_slot_marked_successful(module, parse_slot(2, argc, argv));