BVB Source Codes

cmus Show misc.h Source code

Return Download cmus: download misc.h Source code - Download cmus Source code - Type:.h
  1. /*
  2.  * Copyright 2008-2013 Various Authors
  3.  * Copyright 2004 Timo Hirvonen
  4.  *
  5.  * This program is free software; you can redistribute it and/or
  6.  * modify it under the terms of the GNU General Public License as
  7.  * published by the Free Software Foundation; either version 2 of the
  8.  * License, or (at your option) any later version.
  9.  *
  10.  * This program is distributed in the hope that it will be useful, but
  11.  * WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  13.  * 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.  
  19. #ifndef CMUS_MISC_H
  20. #define CMUS_MISC_H
  21.  
  22. #include <stddef.h>
  23.  
  24. extern const char *cmus_config_dir;
  25. extern const char *cmus_playlist_dir;
  26. extern const char *cmus_socket_path;
  27. extern const char *cmus_data_dir;
  28. extern const char *cmus_lib_dir;
  29. extern const char *home_dir;
  30. extern const char *user_name;
  31.  
  32. char **get_words(const char *text);
  33. int strptrcmp(const void *a, const void *b);
  34. int strptrcoll(const void *a, const void *b);
  35. int misc_init(void);
  36. const char *escape(const char *str);
  37. const char *unescape(const char *str);
  38. const char *get_filename(const char *path);
  39.  
  40. /*
  41.  * @field   contains Replay Gain data format in bit representation
  42.  * @gain    pointer where to store gain value * 10
  43.  *
  44.  * Returns 0 if @field doesn't contain a valid gain value,
  45.  *         1 for track (= radio) adjustment
  46.  *         2 for album (= audiophile) adjustment
  47.  *
  48.  * http://replaygain.hydrogenaudio.org/rg_data_format.html
  49.  */
  50. int replaygain_decode(unsigned int field, int *gain);
  51.  
  52. char *expand_filename(const char *name);
  53. void shuffle_array(void *array, size_t n, size_t size);
  54.  
  55. #endif
  56.  
downloadmisc.h Source code - Download cmus Source code
Related Source Codes/Software:
Ink - An HTML5/CSS3 framework used at SAPO for fast and ... 2017-04-22
memory-stats.js - minimal monitor for JS Heap Size via performance.m... 2017-04-22
LayoutKit - LayoutKit is a fast view layout library for iOS, m... 2017-04-22
Cpp-Primer - C++ Primer 5 answer 2017-04-22
RBBAnimation - Block-based animations made easy, comes with easin... 2017-04-22
phpDocumentor2 - Documentation Generator for PHP ... 2017-04-22
flexboxfroggy - A game for learning CSS flexbox ... 2017-04-22
wicked - Use wicked to turn your controller into a wizard ... 2017-04-22
Begin-Latex-in-minutes - Brief Intro to LaTeX for beginners that helps you ... 2017-04-22
guard-livereload - Guard::LiveReload automatically reload your browse... 2017-04-22
swifter - Tiny http server engine written in Swift programmi... 2017-04-29
Chartbuilder - A front-end charting application that facilitates ... 2017-04-29
offline-first - 2017-04-29
plotly.py - An interactive, browser-based graphing library for... 2017-04-29
statsmodels - Statsmodels: statistical modeling and econometrics... 2017-04-29
android-maps-utils - Handy extensions to the Google Maps Android API. 2017-04-29
enyo - A JavaScript application framework emphasizing mod... 2017-04-29
darkforestGo - DarkForest, the Facebook Go engine. 2017-04-29
erpnext - ERP made Simple http://erpn... 2017-04-29
SwiftInFlux - An attempt to gather all that is in flux in Swift. 2017-04-29

 Back to top