Back to index

unity  6.0.0
X11_mock.cpp
Go to the documentation of this file.
00001 /*
00002  * Copyright 2012 Canonical Ltd.
00003  *
00004  * This program is free software: you can redistribute it and/or modify it
00005  * under the terms of the GNU General Public License version 3, as published
00006  * by the  Free Software Foundation.
00007  *
00008  * This program is distributed in the hope that it will be useful, but
00009  * WITHOUT ANY WARRANTY; without even the implied warranties of
00010  * MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
00011  * PURPOSE.  See the GNU General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU General Public License
00014  * version 3 along with this program.  If not, see
00015  * <http://www.gnu.org/licenses/>
00016  *
00017  * Authored by: Daniel d'Andrada <daniel.dandrada@canonical.com>
00018  *
00019  */
00020 
00021 #include <X11/Xlib.h>
00022 
00023 Cursor XCreateFontCursorMock(Display * /*display*/, unsigned int /*shape*/) {
00024     return 1;
00025 }
00026 
00027 int XFreeCursorMock(Display * /*display*/, Cursor /*cursor*/) {
00028     return 1;
00029 }
00030 
00031 int XSyncMock(Display *display, Bool discard) {
00032   return 1;
00033 }
00034 
00035 int XWarpPointerMock(Display *display, Window src_w, Window dest_w,
00036                      int src_x, int src_y,
00037                      unsigned int src_width, unsigned int src_height,
00038                      int dest_x, int dest_y) {
00039   return 1;
00040 }