1  #include <stdlib.h>
       2  #include "moo.h"
       3  
       4  /* Define a root class. */
       5  struct root
       6  {
       7  methods:
       8    int write (root_t x, void *buf, size_t len);
       9    void do_free (root_t x);
      10  };