mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
tidy up C files.
This commit is contained in:
parent
a2ca3727fe
commit
94a9c7c10a
@ -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;
|
||||||
|
@ -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
|
|
||||||
|
@ -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"
|
||||||
*/
|
*/
|
||||||
|
@ -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"
|
||||||
*/
|
*/
|
||||||
|
@ -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"
|
||||||
*/
|
*/
|
||||||
|
@ -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();
|
||||||
|
@ -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"
|
||||||
*/
|
*/
|
||||||
|
@ -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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user