libfdisk: (sun) use new list() and get_part() API

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk: (gpt) remove get_partition_type()

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk: (bsd) remove get_partition_type()

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk: (dos) remove get_partition_type()

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk: (sgi) remove get_partition_type()

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk: (sun) remove get_partition_type()

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk: remove fdisk_get_partition_type()

Let's use more generic:

	fdisk_get_partition()
        fdisk_partition_get_parttype()

rather than fdisk_get_partition_type().

The patch also improves fdisk_get_partition() semantic to allocate
a new partition struct if the argument is NULL.

Signed-off-by: Karel Zak <kzak@redhat.com>