Commit 9e3ba91a authored by Jeremy White's avatar Jeremy White

Rename xcb.c to xcbtest.c to avoid name confusion.

Our functions should really not be named xcb_xxx.
parent 5e52043b
......@@ -8,8 +8,8 @@ x11spice_test_SOURCES = \
tests.h \
x11spice_test.c \
x11spice_test.h \
xcb.c \
xcb.h \
xcbtest.c \
xcbtest.h \
xdummy.c \
xdummy.h \
util.c \
......
......@@ -27,7 +27,7 @@
#include "tests.h"
#include "util.h"
#include "xcb.h"
#include "xcbtest.h"
#include "x11spice_test.h"
static int test_common_start(test_t * test, x11spice_server_t * server,
......@@ -138,7 +138,7 @@ void test_basic(xdummy_t *xdummy, gconstpointer user_data)
return;
snprintf(buf, sizeof(buf), ":%s", xdummy->display);
if (xcb_draw_grid(buf)) {
if (xcbtest_draw_grid(buf)) {
g_warning("Could not draw the grid");
g_test_fail();
}
......@@ -171,7 +171,7 @@ void test_resize(xdummy_t *xdummy, gconstpointer user_data)
system(buf);
snprintf(buf, sizeof(buf), ":%s", xdummy->display);
if (xcb_draw_grid(buf)) {
if (xcbtest_draw_grid(buf)) {
g_warning("Could not draw the grid");
g_test_fail();
break;
......@@ -204,7 +204,7 @@ void test_tallscreen(xdummy_t *xdummy, gconstpointer user_data)
system(buf);
snprintf(buf, sizeof(buf), ":%s", xdummy->display);
if (xcb_draw_grid(buf)) {
if (xcbtest_draw_grid(buf)) {
g_warning("Could not draw the grid");
g_test_fail();
}
......
......@@ -73,7 +73,7 @@ static void create_rectangles(xcb_rectangle_t * red, xcb_rectangle_t * green, in
}
}
int xcb_draw_grid(const char *display)
int xcbtest_draw_grid(const char *display)
{
uint32_t pixels[2];
......
......@@ -18,13 +18,13 @@
along with x11spice. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef XCB_H_
#define XCB_H_
#ifndef XCBTEST_H_
#define XCBTEST_H_
/*----------------------------------------------------------------------------
** Prototypes
**--------------------------------------------------------------------------*/
int xcb_draw_grid(const char *display);
int xcbtest_draw_grid(const char *display);
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment