Statistics
| Branch: | Revision:

streamers / channel.c @ 913146ae

History | View | Annotate | Download (316 Bytes)

1 7f591208 Csaba Kiraly
/*
2
 *  Copyright (c) 2010 Csaba Kiraly
3
 *
4
 *  This is free software; see gpl-3.0.txt
5
 */
6 5950e362 Csaba Kiraly
#include <stdlib.h>
7 d6c9d366 Csaba Kiraly
#include <string.h>
8 5950e362 Csaba Kiraly
9
#include "channel.h"
10
11 d6c9d366 Csaba Kiraly
static char * chname = NULL;
12 5950e362 Csaba Kiraly
13 23442a5b ArpadBakay
void channel_set_name(const char *ch)
14 5950e362 Csaba Kiraly
{
15
  free(chname);
16
  chname = strdup(ch);
17
}
18
19
const char *channel_get_name()
20
{
21
  return chname;
22
}