all repos — xrxs @ 2d4f1f5ec44e7056408dc1c080de2736914ea4a2

experimental networked application/game server with 9p

aux.c (raw)

1
2
3
4
5
6
7
8
9
10
11
12
#include <u.h>
#include <libc.h>
#include "aux.h"

Aux* create_aux(FileType t) {
  Aux* self = (Aux*)malloc(sizeof(Aux));
  self->type = t;
  self->data = nil;
  self->count = 0;

  return self;
}