all repos — xrxs @ main

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