rebranding
This commit is contained in:
19 files changed
+89
-90
No files matched your search
+3
-3
@@ -1,5 +1,5 @@
|
||||
#ifndef KEYVIBE_CLI_H
|
||||
#define KEYVIBE_CLI_H
|
||||
#ifndef VBX_CLI_H
|
||||
#define VBX_CLI_H
|
||||
|
||||
typedef struct {
|
||||
char *sound;
|
||||
@@ -20,6 +20,6 @@ typedef struct {
|
||||
void print_usage(const char *program_name);
|
||||
int parse_cli(int argc, char **argv, CliOptions *out);
|
||||
|
||||
#endif // KEYVIBE_CLI_H
|
||||
#endif // VBX_CLI_H
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef KEYVIBE_PROCESS_H
|
||||
#define KEYVIBE_PROCESS_H
|
||||
#ifndef VBX_PROCESS_H
|
||||
#define VBX_PROCESS_H
|
||||
|
||||
#include <signal.h>
|
||||
#include <sys/types.h>
|
||||
@@ -20,4 +20,4 @@ int start_children(const char *sound_dir, const char *config_path, int volume,
|
||||
int keyboard_mute, int mouse_mute, int keyboard_enabled, int mouse_enabled);
|
||||
void handle_sighup(int sig);
|
||||
|
||||
#endif // KEYVIBE_PROCESS_H
|
||||
#endif // VBX_PROCESS_H
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef KEYVIBE_RELOAD_H
|
||||
#define KEYVIBE_RELOAD_H
|
||||
#ifndef VBX_RELOAD_H
|
||||
#define VBX_RELOAD_H
|
||||
|
||||
int handle_reload(const char *user_cfg_path,
|
||||
char *current_sound_name, char *current_mouse_sound_name,
|
||||
@@ -10,6 +10,6 @@ int handle_reload(const char *user_cfg_path,
|
||||
int current_mouse_volume_arg, int current_keyboard_mute,
|
||||
int current_mouse_mute, int *current_keyboard_enabled, int *current_mouse_enabled);
|
||||
|
||||
#endif // KEYVIBE_RELOAD_H
|
||||
#endif // VBX_RELOAD_H
|
||||
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
#ifndef KEYVIBE_WATCH_H
|
||||
#define KEYVIBE_WATCH_H
|
||||
#ifndef VBX_WATCH_H
|
||||
#define VBX_WATCH_H
|
||||
|
||||
int start_config_watcher(const char *path);
|
||||
|
||||
#endif // KEYVIBE_WATCH_H
|
||||
#endif // VBX_WATCH_H
|
||||
@@ -1,10 +1,10 @@
|
||||
#ifndef KEYVIBE_AUDIO_PLAYBACK_H
|
||||
#define KEYVIBE_AUDIO_PLAYBACK_H
|
||||
#ifndef VBX_AUDIO_PLAYBACK_H
|
||||
#define VBX_AUDIO_PLAYBACK_H
|
||||
|
||||
int init_audio(void);
|
||||
int parse_keyboard_event(const char *json_line, int *key_code, int *is_pressed);
|
||||
void play_sound_segment(int key_code, int is_pressed);
|
||||
|
||||
#endif // KEYVIBE_AUDIO_PLAYBACK_H
|
||||
#endif // VBX_AUDIO_PLAYBACK_H
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef KEYVIBE_AUDIO_TYPES_H
|
||||
#define KEYVIBE_AUDIO_TYPES_H
|
||||
#ifndef VBX_AUDIO_TYPES_H
|
||||
#define VBX_AUDIO_TYPES_H
|
||||
|
||||
#include <sndfile.h>
|
||||
|
||||
@@ -42,4 +42,4 @@ extern int g_mouse_mute;
|
||||
extern int g_keyboard_enabled;
|
||||
extern int g_mouse_enabled;
|
||||
|
||||
#endif // KEYVIBE_AUDIO_TYPES_H
|
||||
#endif // VBX_AUDIO_TYPES_H
|
||||
@@ -1,9 +1,9 @@
|
||||
#ifndef KEYVIBE_MUTE_H
|
||||
#define KEYVIBE_MUTE_H
|
||||
#ifndef VBX_MUTE_H
|
||||
#define VBX_MUTE_H
|
||||
|
||||
int read_runtime_mute_file(void);
|
||||
void write_runtime_mute_file(int mute);
|
||||
void write_runtime_keyboard_mute_file(int mute);
|
||||
void write_runtime_mouse_mute_file(int mute);
|
||||
|
||||
#endif // KEYVIBE_MUTE_H
|
||||
#endif // VBX_MUTE_H
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef KEYVIBE_UTILS_H
|
||||
#define KEYVIBE_UTILS_H
|
||||
#ifndef VBX_UTILS_H
|
||||
#define VBX_UTILS_H
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
@@ -45,4 +45,4 @@ void *safe_memcpy(void *dest, const void *src, size_t n);
|
||||
void *safe_memmove(void *dest, const void *src, size_t n);
|
||||
void *safe_memset(void *s, int c, size_t n);
|
||||
|
||||
#endif // KEYVIBE_UTILS_H
|
||||
#endif // VBX_UTILS_H
|
||||
+4
-4
@@ -2,7 +2,7 @@
|
||||
#define __CONFIG_H__
|
||||
|
||||
#define PROJECT_VERSION "1.1.0"
|
||||
#define GETTEXT_PACKAGE "keyvibe"
|
||||
#define GETTEXT_PACKAGE "vbx"
|
||||
#define PKEXEC_PATH "/usr/bin/pkexec"
|
||||
|
||||
// Prefix macro should be defined by compiler flags, fallback to /usr
|
||||
@@ -13,8 +13,8 @@
|
||||
#define PACKAGE_BINDIR PACKAGE_PREFIX "/bin"
|
||||
#define PACKAGE_LOCALEDIR PACKAGE_PREFIX "/share/locale"
|
||||
|
||||
// KeyVibe specific paths relative to prefix
|
||||
#define KeyVibe_DATA_DIR PACKAGE_PREFIX "/share/keyvibe"
|
||||
#define KeyVibe_BIN_DIR PACKAGE_PREFIX "/bin"
|
||||
// VBX specific paths relative to prefix
|
||||
#define VBX_DATA_DIR PACKAGE_PREFIX "/share/vbx"
|
||||
#define VBX_BIN_DIR PACKAGE_PREFIX "/bin"
|
||||
|
||||
#endif
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef KEYVIBE_SOUNDPACKS_H
|
||||
#define KEYVIBE_SOUNDPACKS_H
|
||||
#ifndef VBX_SOUNDPACKS_H
|
||||
#define VBX_SOUNDPACKS_H
|
||||
#include <stddef.h>
|
||||
|
||||
int resolve_keyboard_sound_base_dir(const char *sound_name, char *out_basedir,
|
||||
@@ -16,4 +16,4 @@ int validate_keyboard_sound_pack(const char *sound_name);
|
||||
int validate_mouse_sound_pack(const char *sound_name);
|
||||
int list_sound_packs(void);
|
||||
|
||||
#endif // KEYVIBE_SOUNDPACKS_H
|
||||
#endif // VBX_SOUNDPACKS_H
|
||||
@@ -1,18 +1,18 @@
|
||||
#ifndef KEYVIBE_CONFIG_IO_H
|
||||
#define KEYVIBE_CONFIG_IO_H
|
||||
#ifndef VBX_CONFIG_IO_H
|
||||
#define VBX_CONFIG_IO_H
|
||||
#include <stddef.h>
|
||||
|
||||
// Resolve user config path: returns buffer on success, NULL on failure
|
||||
char *get_user_config_path(char *buffer, size_t buflen);
|
||||
|
||||
// Write ~/.keyvibe.json in new format
|
||||
// Write ~/.vbx.json in new format
|
||||
int write_user_config(const char *path, const char *keyboard_sound,
|
||||
const char *mouse_sound, int keyboard_volume,
|
||||
int mouse_volume, int keyboard_enabled, int mouse_enabled);
|
||||
|
||||
// Read ~/.keyvibe.json supporting new and legacy formats
|
||||
// Read ~/.vbx.json supporting new and legacy formats
|
||||
int read_user_config(const char *path, char **out_keyboard_sound,
|
||||
char **out_mouse_sound, int *out_keyboard_volume,
|
||||
int *out_mouse_volume, int *out_keyboard_enabled, int *out_mouse_enabled);
|
||||
|
||||
#endif // KEYVIBE_CONFIG_IO_H
|
||||
#endif // VBX_CONFIG_IO_H
|
||||
Reference in new issue
Block a user