SCTC
the soundcloud.com terminal client
Macros
_hard_config.h File Reference

Basic configuration of SCTC (compile time). More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BOOKMARK_FILE   ".bookmarks.jspf"
 
#define SERVER_PORT   443
 
#define SERVER_NAME   "api.soundcloud.com"
 
#define USERLIST_FOLDER   "custom_lists"
 
#define USERLIST_EXT   ".jspf"
 
#define MAX_LISTS   16
 
#define MAX_REDIRECT_STEPS   20
 The maximum number of allowed HTTP redirects. More...
 
#define CACHE_DEFAULT_PATH   "./cache/"
 The default cache path. More...
 
#define CACHE_STREAM_FOLDER   "streams"
 Folder holding the cached streams. More...
 
#define CACHE_STREAM_EXT   ".mp3"
 The file extension used for caching lists. More...
 
#define CACHE_LIST_FOLDER   "lists"
 Folder holding the cached lists. More...
 
#define CACHE_LIST_EXT   ".jspf"
 The file extension used for caching lists. More...
 
#define CLIENTID   "848ee866ea93c21373f6a8b61772b412"
 The soundcloud.com API key. More...
 
#define CERT_BRAIN_FOLDER   "./remembered_certs/"
 Folder containing the fingerprints of the certificates used by the servers in one of the previous connections. More...
 
#define BENCH_START(ID)
 
#define BENCH_STOP(ID, DESC)
 

Detailed Description

Basic configuration of SCTC (compile time).

Macro Definition Documentation

#define BENCH_START (   ID)
Value:
struct timespec bench_start##ID; \
clock_gettime(CLOCK_MONOTONIC, &bench_start##ID);
#define BENCH_STOP (   ID,
  DESC 
)
Value:
{ \
struct timespec bench_end; \
clock_gettime(CLOCK_MONOTONIC, &bench_end); \
_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)); \
}
#define _log(...)
Definition: log.h:48
#define BOOKMARK_FILE   ".bookmarks.jspf"
#define CACHE_DEFAULT_PATH   "./cache/"

The default cache path.

Keep in mind: this is a default value, which can be modified by the user. Do not use this constant directly.

#define CACHE_LIST_EXT   ".jspf"

The file extension used for caching lists.

As we use JSPF as format, we'll just use .jspf as extension.

#define CACHE_LIST_FOLDER   "lists"

Folder holding the cached lists.

The folder specified here is relative to the config option cache_path

See also
config.c
#define CACHE_STREAM_EXT   ".mp3"

The file extension used for caching lists.

As MP3 is the format provided by soundcloud.com and we directly save cache the data from the server, we use .mp3 too.

#define CACHE_STREAM_FOLDER   "streams"

Folder holding the cached streams.

#define CERT_BRAIN_FOLDER   "./remembered_certs/"

Folder containing the fingerprints of the certificates used by the servers in one of the previous connections.

#define CLIENTID   "848ee866ea93c21373f6a8b61772b412"

The soundcloud.com API key.

This key is required to access api.soundcloud.com and is appended to every request sent.

See also
https://developers.soundcloud.com/
http://soundcloud.com/you/apps/new
#define MAX_LISTS   16
#define MAX_REDIRECT_STEPS   20

The maximum number of allowed HTTP redirects.

#define SERVER_NAME   "api.soundcloud.com"
#define SERVER_PORT   443
#define USERLIST_EXT   ".jspf"
#define USERLIST_FOLDER   "custom_lists"