#include "pepper-desktop-shell.h"
#include <wayland-server.h>
-/* TODO: */
-#define PEPPER_ERROR(...)
-#define PEPPER_ASSERT(...)
-
/* Ping timeout value in ms. */
#define DESKTOP_SHELL_PING_TIMEOUT 200
#define DUMB_FB_COUNT 2
-/* TODO: Error Logging. */
-#define PEPPER_ERROR(...)
-
typedef struct drm_output drm_output_t;
typedef struct drm_fb drm_fb_t;
#include "pepper-fbdev.h"
-/* TODO: Error Logging. */
-#define PEPPER_ERROR(...)
-
typedef struct fbdev_output fbdev_output_t;
struct pepper_fbdev
#include "pepper-libinput.h"
#include <pepper-input-backend.h>
-/* TODO: Error logging. */
-#define PEPPER_ERROR(...)
-
typedef struct li_device li_device_t;
typedef struct li_device_property li_device_property_t;
#include <assert.h>
#include "pepper.h"
-#define PEPPER_ASSERT(expr) assert(expr)
-#define PEPPER_INLINE __inline__
#define PEPPER_IGNORE(x) (void)x
-/* TODO: Change logging destination. */
-
-#define PEPPER_ERROR(fmt, ...) \
- do { \
- printf("%s:%s: "fmt, __FILE__, __FUNCTION__, ##__VA_ARGS__); \
- } while (0)
-
-#define PEPPER_TRACE PEPPER_ERROR
-
char *
pepper_string_alloc(int len);
#include <string.h>
#include <stdint.h>
#include <math.h>
+#include <assert.h>
#include <pixman.h>
PEPPER_API int
pepper_log(const char* domain, int level, const char *format, ...);
+#define PEPPER_ERROR(fmt, ...) \
+ do { \
+ pepper_log("ERROR", 0, "%s:%s: "fmt, __FILE__, __FUNCTION__, ##__VA_ARGS__); \
+ } while (0)
+
+PEPPER_API void
+pepper_assert(pepper_bool_t exp);
+
+#define PEPPER_ASSERT(exp) assert(exp)
+
typedef struct pepper_mat4 pepper_mat4_t;
typedef struct pepper_vec4 pepper_vec4_t;
typedef struct pepper_vec3 pepper_vec3_t;
#include "pepper-utils.h"
-#define PEPPER_ERROR(...) /* TODO */
-
static struct _vt_data
{
int tty_fd;
#include "pepper-render.h"
-/* TODO: Error logging. */
-#define PEPPER_ASSERT(exp)
-#define PEPPER_ERROR(...)
-
struct pepper_render_target
{
/* Renderer from where this target is created. */
#include <wayland-egl.h>
#endif
-/* TODO: Error logging. */
-#define PEPPER_ERROR(...)
-#define PEPPER_ASSERT(exp)
-
#define NUM_SHM_BUFFERS 2
typedef struct wayland_output wayland_output_t;
#define X11_BACKEND_INPUT_ID 0x12345678
-/* TODO: Error logging. */
-#define PEPPER_ERROR(fmt, ...) \
- do { \
- printf("%s:%s: "fmt, __FILE__, __FUNCTION__, ##__VA_ARGS__); \
- } while (0)
-
#define PEPPER_TRACE(x)
-#define PEPPER_ASSERT(exp)
-
typedef struct x11_output x11_output_t;
typedef struct x11_cursor x11_cursor_t;
typedef struct x11_seat x11_seat_t;
#include <pepper-drm.h>
#include <pepper-desktop-shell.h>
-/* TODO: */
-#define PEPPER_ASSERT(exp)
-#define PEPPER_ERROR(...)
-
static void
handle_signals(int s, siginfo_t *siginfo, void *context)
{
#include <pepper-fbdev.h>
#include <pepper-desktop-shell.h>
-/* TODO: */
-#define PEPPER_ASSERT(exp)
-#define PEPPER_ERROR(...)
-
static void
handle_signals(int s, siginfo_t *siginfo, void *context)
{
#include <pepper.h>
#include <pepper-wayland.h>
-/* TODO: */
-#define PEPPER_ASSERT(exp)
-
int
main(int argc, char **argv)
{
#include <pepper-x11.h>
#include <pepper-desktop-shell.h>
-/* TODO: */
-#define PEPPER_ASSERT(exp)
-
int
main(int argc, char **argv)
{