SCTC
the soundcloud.com terminal client
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
src
_hard_config.h
Go to the documentation of this file.
1
/*
2
SCTC - the soundcloud.com client
3
Copyright (C) 2015 Christian Eichler
4
5
This program is free software: you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation, either version 3 of the License, or
8
(at your option) any later version.
9
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License
16
along with this program. If not, see <http://www.gnu.org/licenses/>
17
*/
18
23
#ifndef __HARD_CONFIG_H
24
#define __HARD_CONFIG_H
25
26
#define BOOKMARK_FILE ".bookmarks.jspf"
27
28
#define SERVER_PORT 443
29
#define SERVER_NAME "api.soundcloud.com"
30
31
#define USERLIST_FOLDER "custom_lists"
32
#define USERLIST_EXT ".jspf"
33
34
#define MAX_LISTS 16
35
37
#define MAX_REDIRECT_STEPS 20
38
44
#define CACHE_DEFAULT_PATH "./cache/"
45
49
#define CACHE_STREAM_FOLDER "streams"
50
56
#define CACHE_STREAM_EXT ".mp3"
57
64
#define CACHE_LIST_FOLDER "lists"
65
70
#define CACHE_LIST_EXT ".jspf"
71
80
#define CLIENTID "848ee866ea93c21373f6a8b61772b412"
81
82
#define CERT_BRAIN_FOLDER "./remembered_certs/"
83
84
#define BENCH_START(ID) \
85
struct timespec bench_start##ID; \
86
clock_gettime(CLOCK_MONOTONIC, &bench_start##ID);
87
88
#define BENCH_STOP(ID, DESC) { \
89
struct timespec bench_end; \
90
clock_gettime(CLOCK_MONOTONIC, &bench_end); \
91
_log("%s took %dms", DESC, (bench_end.tv_sec - bench_start##ID.tv_sec) * 1000 + (bench_end.tv_nsec - bench_start##ID.tv_nsec) / (1000 * 1000)); \
92
}
93
94
#endif
Generated on Fri May 29 2015 21:13:44 for SCTC by
1.8.9.1