File: functions.cc

package info (click to toggle)
splay 0.9.5.2-14
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 848 kB
  • ctags: 1,479
  • sloc: cpp: 7,680; sh: 330; makefile: 35
file content (57 lines) | stat: -rw-r--r-- 883 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/* Sound Player Version

   Copyright (C) 1997 by Woo-jae Jung */

// Functions to support player
// Anyone can use MPEG Sound library under GPL

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include <stdio.h>
#include <string>

#include "xsplay.h"

bool splay_exitwhendone=false;
/*
static bool exitflag=false;
bool Getexitwhendone(void)
{
  return exitflag;
}

void Setexitwhendone(bool flag)
{
  exitflag=flag;
}
*/
static char currentpath[300]={0};
char *Getcurrentpath(void)
{
  if(currentpath[0]==0)return NULL;
  return currentpath;
}

void Setcurrentpath(char *path)
{
  strcpy(currentpath,path);
}

static char currentwildcard[300]={0};
char *Getcurrentwildcard(void)
{
  if(currentwildcard[0]==0)
  {
    currentwildcard[0]='*';
    currentwildcard[1]=0;
  }

  return currentwildcard;
}

void Setcurrentwildcard(char *wildcard)
{
  strcpy(currentwildcard,wildcard);
}