summaryrefslogtreecommitdiffstats
path: root/parttype.c
diff options
context:
space:
mode:
authorJose M. Guisado <jguisado@soleta.eu>2022-12-15 13:12:32 +0100
committerJose M. Guisado <jguisado@soleta.eu>2022-12-15 17:37:07 +0100
commit975acaf5498223318ed2c61bf896dc982c1801f4 (patch)
treea50ba8c48ed685e21d9b17faa35fea0d24154511 /parttype.c
parenteaf98290cf111f1427d1c3adeea688b90452802a (diff)
coding style: line breaks
Only two line breaks separate copyright notice from source. For the rest of the source file any function declaration or similar block is separated with a line break from any other block. Except when a python function definition is previously followed by a docstring #define block.
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},