all repos — xrxs @ c35d47c8b829529347e70f9d81d8a13fb99d3943

experimental networked application/game server with 9p

server/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;
}