source: roaraudio/roarclients/roartypes.c @ 47:ff404ae5d6e0

Last change on this file since 47:ff404ae5d6e0 was 47:ff404ae5d6e0, checked in by phi, 16 years ago

added roartypes.c

File size: 739 bytes
Line 
1//roartypes.c:
2
3#include <roaraudio.h>
4#include "../roard/include/roard.h"
5
6int main (void) {
7 struct { char * name; int len; } types[] = {
8  { "roar_buffer",        sizeof(struct roar_buffer)        },
9  { "roar_stream",        sizeof(struct roar_stream)        },
10  { "roar_stream_server", sizeof(struct roar_stream_server) },
11  { "roar_sample",        sizeof(struct roar_sample)        },
12  { "roar_client",        sizeof(struct roar_client)        },
13  { "roar_connection",    sizeof(struct roar_connection)    },
14  { "roar_audio_info",    sizeof(struct roar_audio_info)    },
15  { NULL, 0 }
16 }, * c = types - 1;
17
18 while ((++c)->name != NULL)
19  printf("%-20s = %3i Bytes = %4i Bits\n", c->name, c->len, c->len * 8);
20
21 return 0;
22}
23
24//ll
Note: See TracBrowser for help on using the repository browser.