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/app/gstappsrc.h>
typedef struct SampleHandlerUserData {
int pipelineId;
} SampleHandlerUserData;

View File

@ -1,10 +1,7 @@
#ifndef GST_H
#define GST_H
#pragma once
#include <glib.h>
#include <gst/gst.h>
#include <stdint.h>
#include <stdlib.h>
#include <gst/app/gstappsrc.h>
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_start_mainloop(void);
void gstreamer_init(void);
#endif

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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