Lines Matching refs:table

65 void printGPT(struct GPT_entry_table *table);
66 void addGPT(struct GPT_entry_table *table, const char *arg, const char *guid, const char *tguid);
67 void deleteGPT(struct GPT_entry_table *table, const char *name);
68 void configPrintGPT(struct GPT_entry_table *table);
152 struct GPT_entry_table *table = GPT_get_device(path, gpt_location);
153 if (table == NULL) {
154 fprintf(stderr, "unable to get GPT table from %s\n", path);
159 addGPT(table, new_partition, partition_guid, type_guid);
161 deleteGPT(table, old_partition);
163 printGPT(table);
165 configPrintGPT(table);
167 GPT_sync(table);
169 GPT_release_device(table);
174 void printGPT(struct GPT_entry_table *table) {
175 struct GPT_entry_raw *entry = table->entries;
182 for (n = 0; n < table->header->entries_count; n++, entry++) {
194 void configPrintGPT(struct GPT_entry_table *table) {
195 struct GPT_entry_raw *entry = table->entries;
201 printf("header_lba %"PRId64"\n", table->header->current_lba);
202 printf("backup_lba %"PRId64"\n", table->header->backup_lba);
203 printf("first_lba %"PRId64"\n", table->header->first_usable_lba);
204 printf("last_lba %"PRId64"\n", table->header->last_usable_lba);
205 printf("entries_lba %"PRId64"\n", table->header->entries_lba);
206 snprintf(temp_guid, 17, "%s", table->header->disk_guid);
211 for (n = 0; n < table->header->entries_count; n++, entry++) {
239 void addGPT(struct GPT_entry_table *table, const char *str , const char *guid, const char *tguid) {
283 GPT_add_entry(table, &data);
287 void deleteGPT(struct GPT_entry_table *table, const char *name) {
295 entry = GPT_get_pointer_by_name(table, name);
301 GPT_delete_entry(table, entry);