1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2024-11-13 11:04:27 -05:00

Add switch cases

This commit is contained in:
Alex Kotov 2020-11-29 02:39:04 +05:00
parent 7e83431095
commit 47cf118fef
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
2 changed files with 63 additions and 1 deletions

View file

@ -1,6 +1,6 @@
SUBDIRS = include
AM_CFLAGS = -std=c99 -I$(top_srcdir)/include
AM_CFLAGS = -std=c99 -Wall -Wextra -I$(top_srcdir)/include
lib_LIBRARIES = libkernaux.a

View file

@ -104,6 +104,8 @@ void KernAux_Multiboot2_TagBase_print(
print(" size: %u\n", tag_base->size);
switch (tag_base->type) {
case KERNAUX_MULTIBOOT2_TAGTYPE_NONE:
break;
case KERNAUX_MULTIBOOT2_TAGTYPE_BOOT_CMD_LINE:
print(
" cmdline: %s\n",
@ -145,6 +147,66 @@ void KernAux_Multiboot2_TagBase_print(
print(" sub_partition: %u\n", tag_bbd->sub_partition);
}
break;
case KERNAUX_MULTIBOOT2_TAGTYPE_MEMORY_MAP:
{
}
break;
case KERNAUX_MULTIBOOT2_TAGTYPE_VBE_INFO:
{
}
break;
case KERNAUX_MULTIBOOT2_TAGTYPE_FRAMEBUFFER_INFO:
{
}
break;
case KERNAUX_MULTIBOOT2_TAGTYPE_ELF_SYMBOLS:
{
}
break;
case KERNAUX_MULTIBOOT2_TAGTYPE_APM_TABLE:
{
}
break;
case KERNAUX_MULTIBOOT2_TAGTYPE_EFI_32BIT_SYSTEM_TABLE_PTR:
{
}
break;
case KERNAUX_MULTIBOOT2_TAGTYPE_EFI_64BIT_SYSTEM_TABLE_PTR:
{
}
break;
case KERNAUX_MULTIBOOT2_TAGTYPE_SMBIOS_TABLES:
{
}
break;
case KERNAUX_MULTIBOOT2_TAGTYPE_ACPI_OLD_RSDP:
{
}
break;
case KERNAUX_MULTIBOOT2_TAGTYPE_ACPI_NEW_RSDP:
{
}
break;
case KERNAUX_MULTIBOOT2_TAGTYPE_NETWORKING_INFO:
{
}
break;
case KERNAUX_MULTIBOOT2_TAGTYPE_EFI_MEMORY_MAP:
{
}
break;
case KERNAUX_MULTIBOOT2_TAGTYPE_EFI_BOOT_SERVICES_NOT_TERMINATED:
{
}
break;
case KERNAUX_MULTIBOOT2_TAGTYPE_EFI_32BIT_IMAGE_HANDLE_PTR:
{
}
break;
case KERNAUX_MULTIBOOT2_TAGTYPE_EFI_64BIT_IMAGE_HANDLE_PTR:
{
}
break;
case KERNAUX_MULTIBOOT2_TAGTYPE_IMAGE_LOAD_BASE_PHYS_ADDR:
print(
" load base addr: %u\n",