server/src/attributes/iceberg.c

24 lines
355 B
C
Raw Normal View History

2010-08-08 01:06:34 -07:00
#include <platform.h>
#include <kernel/config.h>
#include "iceberg.h"
#include <kernel/attrib.h>
2010-08-08 01:06:34 -07:00
attrib_type at_iceberg = {
"iceberg_drift",
NULL,
NULL,
NULL,
a_writeint,
a_readint,
NULL,
ATF_UNIQUE
2010-08-08 01:06:34 -07:00
};
2011-03-07 08:02:35 +01:00
attrib *make_iceberg(direction_t dir)
2010-08-08 01:06:34 -07:00
{
attrib *a = a_new(&at_iceberg);
a->data.i = (int)dir;
return a;
2010-08-08 01:06:34 -07:00
}