Statistics
| Branch: | Revision:

streamers / channel.c @ 6d7e52bd

History | View | Annotate | Download (316 Bytes)

1
/*
2
 *  Copyright (c) 2010 Csaba Kiraly
3
 *
4
 *  This is free software; see gpl-3.0.txt
5
 */
6
#include <stdlib.h>
7
#include <string.h>
8

    
9
#include "channel.h"
10

    
11
static char * chname = NULL;
12

    
13
void channel_set_name(const char *ch)
14
{
15
  free(chname);
16
  chname = strdup(ch);
17
}
18

    
19
const char *channel_get_name()
20
{
21
  return chname;
22
}