summaryrefslogtreecommitdiffstats
path: root/parttype.c
diff options
context:
space:
mode:
Diffstat (limited to 'parttype.c')
-rw-r--r--parttype.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/parttype.c b/parttype.c
index e3c6238..cbdae82 100644
--- a/parttype.c
+++ b/parttype.c
@@ -9,6 +9,7 @@
* Author: Jose M. Guisado <jguisado@soleta.eu>
*/
+
#include "fdisk.h"
static PyMemberDef PartType_members[] = {
@@ -28,10 +29,12 @@ static PyObject *PartType_get_name(PartTypeObject *self)
{
return PyObjectResultStr(fdisk_parttype_get_name(self->type));
}
+
static PyObject *PartType_get_code(PartTypeObject *self)
{
return PyLong_FromUnsignedLong(fdisk_parttype_get_code(self->type));
}
+
static PyGetSetDef PartType_getseters[] = {
{"name", (getter)PartType_get_name, NULL, "parttype human readable name", NULL},
{"code", (getter)PartType_get_code, NULL, "parttype DOS code", NULL},