2010-08-08 01:06:34 -07:00
|
|
|
#include <platform.h>
|
|
|
|
#include <kernel/config.h>
|
|
|
|
#include "iceberg.h"
|
|
|
|
|
2018-09-29 11:37:17 +02:00
|
|
|
#include <kernel/attrib.h>
|
2010-08-08 01:06:34 -07:00
|
|
|
|
|
|
|
attrib_type at_iceberg = {
|
2015-01-30 20:37:14 +01:00
|
|
|
"iceberg_drift",
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
a_writeint,
|
|
|
|
a_readint,
|
2016-02-09 06:43:19 +01:00
|
|
|
NULL,
|
2015-01-30 20:37:14 +01:00
|
|
|
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
|
|
|
{
|
2015-01-30 20:37:14 +01:00
|
|
|
attrib *a = a_new(&at_iceberg);
|
|
|
|
a->data.i = (int)dir;
|
|
|
|
return a;
|
2010-08-08 01:06:34 -07:00
|
|
|
}
|