A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd

zxbox: make source files include their header file and make function static where possible

Change-Id: I0c87563ee29f46948e3a559c27b1b22d4404cec1

+7 -5
+1
apps/plugins/zxbox/interf.c
··· 19 19 */ 20 20 21 21 #include "zxconfig.h" 22 + #include "zxmisc.h" 22 23 #include "interf.h" 23 24 24 25 #include <stdio.h>
+1 -1
apps/plugins/zxbox/spconf.h
··· 30 30 extern int spcf_init_tapefile_type; 31 31 32 32 33 - /*extern int spcf_read_conf_file(const char *filename);*/ 33 + extern int spcf_read_conf_file(const char *filename); 34 34 extern void spcf_read_command_line(const void* parameter); 35 35 extern void spcf_read_xresources(void); 36 36 extern int spcf_find_file_type(char *filename, int *ftp, int *ftsubp);
-1
apps/plugins/zxbox/spscr.h
··· 23 23 24 24 #include "z80_type.h" 25 25 26 - extern int scrmul; 27 26 extern volatile int screen_visible; 28 27 29 28 extern void init_spect_scr(void);
+2 -2
apps/plugins/zxbox/spsound.c
··· 189 189 } 190 190 #endif 191 191 } 192 - void get_more(unsigned char** start, size_t* size) 192 + static void get_more(unsigned char** start, size_t* size) 193 193 { 194 194 doneplay = 1; 195 195 rb->pcm_play_stop(); ··· 199 199 200 200 /* sp_sound_buf is Unsigned 8 bit, Rate 8000 Hz, Mono */ 201 201 202 - void write_buf(void){ 202 + static void write_buf(void){ 203 203 int i,j; 204 204 205 205 /* still not sure what is the best way to do this */
+1 -1
apps/plugins/zxbox/zxbox.c
··· 21 21 22 22 #include "zxconfig.h" 23 23 #include "spkey_p.h" 24 + #include "spkey.h" 24 25 25 26 spkeyboard kb_mkey; 26 27 bool exit_requested=false; ··· 28 29 extern bool zxbox_menu(void); 29 30 30 31 /* DUMMIES ... to clean */ 31 - unsigned int scrmul=0; 32 32 int privatemap; 33 33 int use_shm = 0; 34 34 int small_screen,pause_on_iconify;
+1
apps/plugins/zxbox/zxbox_keyb.c
··· 1 1 #include "zxconfig.h" 2 + #include "zxbox_keyb.h" 2 3 3 4 //#define ZX_WRITE_OUT_TEXT 4 5
+1
apps/plugins/zxbox/zxvid_com.h
··· 7 7 #endif 8 8 9 9 #include "spscr_p.h" 10 + #include "spscr.h" 10 11 #include "spmain.h" 11 12 #include "spperif.h" 12 13