diff options
| author | dec05eba <dec05eba@protonmail.com> | 2026-08-02 00:17:18 +0200 |
|---|---|---|
| committer | dec05eba <dec05eba@protonmail.com> | 2026-08-02 00:17:18 +0200 |
| commit | 208c907c355689c0432966f0d9e32ffce9d55882 (patch) | |
| tree | 007cbcc22d51f63ba060ed1ffe76a99349a3042a /include | |
| parent | 06be2c8a12cd021083670d304a72f93907c8b22e (diff) | |
Fix indentation and spacing of the code moved out of main.cpp
Diffstat (limited to 'include')
| -rw-r--r-- | include/ffmpeg_utils.h | 8 | ||||
| -rw-r--r-- | include/log.h | 8 | ||||
| -rw-r--r-- | include/recorder/error.h | 8 | ||||
| -rw-r--r-- | include/recorder/recording_clock.h | 8 | ||||
| -rw-r--r-- | include/recorder/settings.h | 8 | ||||
| -rw-r--r-- | include/sound.h | 8 |
6 files changed, 0 insertions, 48 deletions
diff --git a/include/ffmpeg_utils.h b/include/ffmpeg_utils.h index 373122c..35524c2 100644 --- a/include/ffmpeg_utils.h +++ b/include/ffmpeg_utils.h @@ -1,14 +1,6 @@ #ifndef GSR_FFMPEG_UTILS_H #define GSR_FFMPEG_UTILS_H -#ifdef __cplusplus -extern "C" { -#endif - const char* gsr_av_error_to_string(int err); -#ifdef __cplusplus -} -#endif - #endif /* GSR_FFMPEG_UTILS_H */ diff --git a/include/log.h b/include/log.h index 71be585..e92ac99 100644 --- a/include/log.h +++ b/include/log.h @@ -1,10 +1,6 @@ #ifndef GSR_LOG_H #define GSR_LOG_H -#ifdef __cplusplus -extern "C" { -#endif - typedef enum { GSR_LOG_LEVEL_DEBUG, GSR_LOG_LEVEL_INFO, @@ -21,8 +17,4 @@ void gsr_log_set_level(gsr_log_level level); /* A NULL |handler| restores the default handler which prints "gsr <level>: <message>" to stderr */ void gsr_log_set_handler(gsr_log_handler handler, void *userdata); -#ifdef __cplusplus -} -#endif - #endif /* GSR_LOG_H */ diff --git a/include/recorder/error.h b/include/recorder/error.h index cfa83cd..ba2ae1d 100644 --- a/include/recorder/error.h +++ b/include/recorder/error.h @@ -1,10 +1,6 @@ #ifndef GSR_RECORDER_ERROR_H #define GSR_RECORDER_ERROR_H -#ifdef __cplusplus -extern "C" { -#endif - /* The negated value of each error is the exit code that gpu-screen-recorder exits with */ typedef enum { GSR_ERROR_OK = 0, @@ -24,8 +20,4 @@ static inline int gsr_error_to_exit_code(int error) { return error < 0 ? -error : 0; } -#ifdef __cplusplus -} -#endif - #endif /* GSR_RECORDER_ERROR_H */ diff --git a/include/recorder/recording_clock.h b/include/recorder/recording_clock.h index 4e302b6..b99e936 100644 --- a/include/recorder/recording_clock.h +++ b/include/recorder/recording_clock.h @@ -3,10 +3,6 @@ #include <stdbool.h> -#ifdef __cplusplus -extern "C" { -#endif - /* Monotonic clock that excludes the time the recording has been paused. Safe to use from multiple threads */ typedef struct gsr_recording_clock gsr_recording_clock; @@ -22,8 +18,4 @@ double gsr_recording_clock_get_time(const gsr_recording_clock *self); void gsr_recording_clock_set_paused(gsr_recording_clock *self, bool paused); bool gsr_recording_clock_is_paused(const gsr_recording_clock *self); -#ifdef __cplusplus -} -#endif - #endif /* GSR_RECORDER_RECORDING_CLOCK_H */ diff --git a/include/recorder/settings.h b/include/recorder/settings.h index 8bb7f77..164e082 100644 --- a/include/recorder/settings.h +++ b/include/recorder/settings.h @@ -6,10 +6,6 @@ #include "../defs.h" #include "../vec2.h" -#ifdef __cplusplus -extern "C" { -#endif - typedef struct { gsr_video_encoder_hardware video_encoder; gsr_pixel_format pixel_format; @@ -56,8 +52,4 @@ typedef struct { vec2i region_position; } gsr_recorder_settings; -#ifdef __cplusplus -} -#endif - #endif /* GSR_RECORDER_SETTINGS_H */ diff --git a/include/sound.h b/include/sound.h index 1ec8940..eaa1236 100644 --- a/include/sound.h +++ b/include/sound.h @@ -21,10 +21,6 @@ #include <stdbool.h> #include <stddef.h> -#ifdef __cplusplus -extern "C" { -#endif - typedef struct { void *handle; unsigned int frames; @@ -77,8 +73,4 @@ void get_pulseaudio_inputs(gsr_audio_devices *audio_devices); void gsr_audio_devices_deinit(gsr_audio_devices *self); bool pulseaudio_server_is_pipewire(void); -#ifdef __cplusplus -} -#endif - #endif /* GSR_SOUND_H */ |
