tidy up C files.

This commit is contained in:
Miroslav Šedivý 2021-01-11 15:57:14 +01:00
parent a2ca3727fe
commit 94a9c7c10a
8 changed files with 6 additions and 25 deletions

View File

@ -1,7 +1,5 @@
#include "gst.h" #include "gst.h"
#include <gst/app/gstappsrc.h>
typedef struct SampleHandlerUserData { typedef struct SampleHandlerUserData {
int pipelineId; int pipelineId;
} SampleHandlerUserData; } SampleHandlerUserData;

View File

@ -1,10 +1,7 @@
#ifndef GST_H #pragma once
#define GST_H
#include <glib.h>
#include <gst/gst.h> #include <gst/gst.h>
#include <stdint.h> #include <gst/app/gstappsrc.h>
#include <stdlib.h>
extern void goHandlePipelineBuffer(void *buffer, int bufferLen, int samples, int pipelineId); extern void goHandlePipelineBuffer(void *buffer, int bufferLen, int samples, int pipelineId);
@ -15,5 +12,3 @@ void gstreamer_send_play_pipeline(GstElement *pipeline);
void gstreamer_send_stop_pipeline(GstElement *pipeline); void gstreamer_send_stop_pipeline(GstElement *pipeline);
void gstreamer_send_start_mainloop(void); void gstreamer_send_start_mainloop(void);
void gstreamer_init(void); void gstreamer_init(void);
#endif

View File

@ -1,8 +1,7 @@
package clipboard package clipboard
/* /*
#cgo linux CFLAGS: -I/usr/src -I/usr/local/include/ #cgo linux LDFLAGS: /usr/local/lib/libclipboard.a -lxcb
#cgo linux LDFLAGS: /usr/local/lib/libclipboard.a -L/usr/src -L/usr/local/lib -lxcb
#include "clipboard.h" #include "clipboard.h"
*/ */

View File

@ -1,8 +1,7 @@
package gtk package gtk
/* /*
#cgo linux CFLAGS: -I/usr/src -I/usr/local/include/ #cgo pkg-config: gtk+-3.0
#cgo pkg-config: gdk-3.0 gtk+-3.0
#include "gtk.h" #include "gtk.h"
*/ */

View File

@ -1,8 +1,7 @@
package xevent package xevent
/* /*
#cgo linux CFLAGS: -I/usr/src -I/usr/local/include/ #cgo linux LDFLAGS: -lX11 -lXfixes
#cgo linux LDFLAGS: -L/usr/src -L/usr/local/lib -lX11 -lxcb -lXfixes
#include "xevent.h" #include "xevent.h"
*/ */

View File

@ -3,9 +3,7 @@
#include <X11/Xatom.h> #include <X11/Xatom.h>
#include <X11/Xlib.h> #include <X11/Xlib.h>
#include <X11/extensions/Xfixes.h> #include <X11/extensions/Xfixes.h>
#include <stdint.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h>
extern void goXEventCursorChanged(XFixesCursorNotifyEvent event); extern void goXEventCursorChanged(XFixesCursorNotifyEvent event);
extern void goXEventClipboardUpdated(); extern void goXEventClipboardUpdated();

View File

@ -1,8 +1,7 @@
package xorg package xorg
/* /*
#cgo linux CFLAGS: -I/usr/src -I/usr/local/include/ #cgo linux LDFLAGS: -lX11 -lXrandr -lXtst -lXfixes
#cgo linux LDFLAGS: -L/usr/src -L/usr/local/lib -lX11 -lxcb -lXrandr -lXtst -lXfixes
#include "xorg.h" #include "xorg.h"
*/ */

View File

@ -1,14 +1,10 @@
#pragma once #pragma once
#ifndef XDISPLAY_H
#define XDISPLAY_H
#include <X11/Xlib.h> #include <X11/Xlib.h>
#include <X11/XKBlib.h> #include <X11/XKBlib.h>
#include <X11/extensions/Xrandr.h> #include <X11/extensions/Xrandr.h>
#include <X11/extensions/XTest.h> #include <X11/extensions/XTest.h>
#include <X11/extensions/Xfixes.h> #include <X11/extensions/Xfixes.h>
#include <stdint.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
@ -32,5 +28,3 @@ short XGetScreenRate();
void SetKeyboardLayout(char *layout); void SetKeyboardLayout(char *layout);
void SetKeyboardModifiers(int num_lock, int caps_lock, int scroll_lock); void SetKeyboardModifiers(int num_lock, int caps_lock, int scroll_lock);
XFixesCursorImage *XGetCursorImage(void); XFixesCursorImage *XGetCursorImage(void);
#endif