server/src/attributes/iceberg.c
2019-09-13 21:35:44 +02:00

23 lines
355 B
C

#include <platform.h>
#include <kernel/config.h>
#include "iceberg.h"
#include <kernel/attrib.h>
attrib_type at_iceberg = {
"iceberg_drift",
NULL,
NULL,
NULL,
a_writeint,
a_readint,
NULL,
ATF_UNIQUE
};
attrib *make_iceberg(direction_t dir)
{
attrib *a = a_new(&at_iceberg);
a->data.i = (int)dir;
return a;
}