compositor: Fold the log prototypes into compositor.h and drop log.h
We're trying to keep the API exposed by the core compositor in compositor.h
This commit is contained in:
@@ -30,7 +30,6 @@
|
|||||||
|
|
||||||
#include "compositor.h"
|
#include "compositor.h"
|
||||||
#include "android-framebuffer.h"
|
#include "android-framebuffer.h"
|
||||||
#include "log.h"
|
|
||||||
|
|
||||||
struct android_compositor;
|
struct android_compositor;
|
||||||
|
|
||||||
|
|||||||
@@ -41,7 +41,6 @@
|
|||||||
#include "compositor.h"
|
#include "compositor.h"
|
||||||
#include "evdev.h"
|
#include "evdev.h"
|
||||||
#include "launcher-util.h"
|
#include "launcher-util.h"
|
||||||
#include "log.h"
|
|
||||||
|
|
||||||
static int option_current_mode = 0;
|
static int option_current_mode = 0;
|
||||||
static char *output_name;
|
static char *output_name;
|
||||||
|
|||||||
@@ -42,7 +42,6 @@
|
|||||||
#include <EGL/eglext.h>
|
#include <EGL/eglext.h>
|
||||||
|
|
||||||
#include "compositor.h"
|
#include "compositor.h"
|
||||||
#include "log.h"
|
|
||||||
|
|
||||||
struct wayland_compositor {
|
struct wayland_compositor {
|
||||||
struct weston_compositor base;
|
struct weston_compositor base;
|
||||||
|
|||||||
@@ -49,7 +49,6 @@
|
|||||||
|
|
||||||
#include "compositor.h"
|
#include "compositor.h"
|
||||||
#include "../shared/config-parser.h"
|
#include "../shared/config-parser.h"
|
||||||
#include "log.h"
|
|
||||||
|
|
||||||
struct x11_compositor {
|
struct x11_compositor {
|
||||||
struct weston_compositor base;
|
struct weston_compositor base;
|
||||||
|
|||||||
@@ -53,7 +53,6 @@
|
|||||||
#include <wayland-server.h>
|
#include <wayland-server.h>
|
||||||
#include "compositor.h"
|
#include "compositor.h"
|
||||||
#include "../shared/os-compatibility.h"
|
#include "../shared/os-compatibility.h"
|
||||||
#include "log.h"
|
|
||||||
#include "git-version.h"
|
#include "git-version.h"
|
||||||
|
|
||||||
static struct wl_list child_process_list;
|
static struct wl_list child_process_list;
|
||||||
|
|||||||
@@ -685,6 +685,18 @@ weston_seat_init_touch(struct weston_seat *seat);
|
|||||||
void
|
void
|
||||||
weston_seat_release(struct weston_seat *seat);
|
weston_seat_release(struct weston_seat *seat);
|
||||||
|
|
||||||
|
/* String literal of spaces, the same width as the timestamp. */
|
||||||
|
#define STAMP_SPACE " "
|
||||||
|
|
||||||
|
void
|
||||||
|
weston_log_file_open(const char *filename);
|
||||||
|
void
|
||||||
|
weston_log_file_close(void);
|
||||||
|
int
|
||||||
|
weston_log(const char *fmt, ...);
|
||||||
|
int
|
||||||
|
weston_log_continue(const char *fmt, ...);
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
TTY_ENTER_VT,
|
TTY_ENTER_VT,
|
||||||
TTY_LEAVE_VT
|
TTY_LEAVE_VT
|
||||||
|
|||||||
@@ -31,7 +31,6 @@
|
|||||||
#include "evdev.h"
|
#include "evdev.h"
|
||||||
#include "evdev-private.h"
|
#include "evdev-private.h"
|
||||||
#include "launcher-util.h"
|
#include "launcher-util.h"
|
||||||
#include "log.h"
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
evdev_led_update(struct weston_seat *seat_base, enum weston_led leds)
|
evdev_led_update(struct weston_seat *seat_base, enum weston_led leds)
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
#include <wayland-server.h>
|
#include <wayland-server.h>
|
||||||
#include <wayland-util.h>
|
#include <wayland-util.h>
|
||||||
|
|
||||||
#include "log.h"
|
#include "compositor.h"
|
||||||
|
|
||||||
static FILE *weston_logfile = NULL;
|
static FILE *weston_logfile = NULL;
|
||||||
|
|
||||||
|
|||||||
@@ -1,35 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright © 2012 Martin Minarik
|
|
||||||
*
|
|
||||||
* Permission to use, copy, modify, distribute, and sell this software and
|
|
||||||
* its documentation for any purpose is hereby granted without fee, provided
|
|
||||||
* that the above copyright notice appear in all copies and that both that
|
|
||||||
* copyright notice and this permission notice appear in supporting
|
|
||||||
* documentation, and that the name of the copyright holders not be used in
|
|
||||||
* advertising or publicity pertaining to distribution of the software
|
|
||||||
* without specific, written prior permission. The copyright holders make
|
|
||||||
* no representations about the suitability of this software for any
|
|
||||||
* purpose. It is provided "as is" without express or implied warranty.
|
|
||||||
*
|
|
||||||
* THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
|
|
||||||
* SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
||||||
* FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
||||||
* SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
|
|
||||||
* RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
|
|
||||||
* CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
|
||||||
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _WESTON_LOG_H_
|
|
||||||
#define _WESTON_LOG_H_
|
|
||||||
|
|
||||||
/* String literal of spaces, the same width as the timestamp. */
|
|
||||||
#define STAMP_SPACE " "
|
|
||||||
|
|
||||||
void weston_log_file_open(const char *filename);
|
|
||||||
void weston_log_file_close(void);
|
|
||||||
|
|
||||||
int weston_log(const char *fmt, ...);
|
|
||||||
int weston_log_continue(const char *fmt, ...);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
@@ -36,7 +36,6 @@
|
|||||||
#include "compositor.h"
|
#include "compositor.h"
|
||||||
#include "desktop-shell-server-protocol.h"
|
#include "desktop-shell-server-protocol.h"
|
||||||
#include "../shared/config-parser.h"
|
#include "../shared/config-parser.h"
|
||||||
#include "log.h"
|
|
||||||
|
|
||||||
#define DEFAULT_NUM_WORKSPACES 1
|
#define DEFAULT_NUM_WORKSPACES 1
|
||||||
#define DEFAULT_WORKSPACE_CHANGE_ANIMATION_LENGTH 200
|
#define DEFAULT_WORKSPACE_CHANGE_ANIMATION_LENGTH 200
|
||||||
|
|||||||
@@ -29,7 +29,6 @@
|
|||||||
|
|
||||||
#include "compositor.h"
|
#include "compositor.h"
|
||||||
#include "tablet-shell-server-protocol.h"
|
#include "tablet-shell-server-protocol.h"
|
||||||
#include "log.h"
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* TODO: Don't fade back from black until we've received a lockscreen
|
* TODO: Don't fade back from black until we've received a lockscreen
|
||||||
|
|||||||
@@ -35,7 +35,6 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
#include "compositor.h"
|
#include "compositor.h"
|
||||||
#include "log.h"
|
|
||||||
|
|
||||||
/* Introduced in 2.6.38 */
|
/* Introduced in 2.6.38 */
|
||||||
#ifndef K_OFF
|
#ifndef K_OFF
|
||||||
|
|||||||
@@ -34,7 +34,6 @@
|
|||||||
|
|
||||||
#include "xwayland.h"
|
#include "xwayland.h"
|
||||||
#include "xserver-server-protocol.h"
|
#include "xserver-server-protocol.h"
|
||||||
#include "../log.h"
|
|
||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|||||||
@@ -28,7 +28,6 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
#include "xwayland.h"
|
#include "xwayland.h"
|
||||||
#include "../log.h"
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
weston_wm_write_property(int fd, uint32_t mask, void *data)
|
weston_wm_write_property(int fd, uint32_t mask, void *data)
|
||||||
|
|||||||
@@ -37,7 +37,6 @@
|
|||||||
|
|
||||||
#include "../../shared/cairo-util.h"
|
#include "../../shared/cairo-util.h"
|
||||||
#include "../compositor.h"
|
#include "../compositor.h"
|
||||||
#include "../log.h"
|
|
||||||
#include "xserver-server-protocol.h"
|
#include "xserver-server-protocol.h"
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user