@ -33,6 +33,7 @@
# include <stdint.h>
# include <stdint.h>
# include "compositor.h"
# include "compositor.h"
# include "compositor/weston.h"
# include "ivi-shell/ivi-layout-export.h"
# include "ivi-shell/ivi-layout-export.h"
# include "ivi-shell/ivi-layout-private.h"
# include "ivi-shell/ivi-layout-private.h"
# include "ivi-test.h"
# include "ivi-test.h"
@ -991,24 +992,18 @@ run_internal_tests(void *data)
free ( ctx ) ;
free ( ctx ) ;
}
}
int
controller_module_init ( struct weston_compositor * compositor ,
int * argc , char * argv [ ] ,
const struct ivi_layout_interface * iface ,
size_t iface_version ) ;
WL_EXPORT int
WL_EXPORT int
controller_module_init ( struct weston_compositor * compositor ,
wet_module_init ( struct weston_compositor * compositor ,
int * argc , char * argv [ ] ,
int * argc , char * argv [ ] )
const struct ivi_layout_interface * iface ,
size_t iface_version )
{
{
struct wl_event_loop * loop ;
struct wl_event_loop * loop ;
struct test_context * ctx ;
struct test_context * ctx ;
const struct ivi_layout_interface * iface ;
iface = ivi_layout_get_api ( compositor ) ;
/* strict check, since this is an internal test module */
if ( ! iface ) {
if ( iface_version ! = sizeof ( * iface ) ) {
weston_log ( " fatal: cannot use ivi_layout_interface. \n " ) ;
weston_log ( " fatal: controller interface mismatch \n " ) ;
return - 1 ;
return - 1 ;
}
}