| CoreDFB_includes.h | | CoreDFB_includes.h | |
| | | | |
| skipping to change at line 15 | | skipping to change at line 15 | |
| extern "C" { | | extern "C" { | |
| #endif | | #endif | |
| | | | |
| #include <fusion/types.h> | | #include <fusion/types.h> | |
| #include <fusion/lock.h> | | #include <fusion/lock.h> | |
| #include <fusion/object.h> | | #include <fusion/object.h> | |
| | | | |
| #include <directfb.h> | | #include <directfb.h> | |
| | | | |
| #include <core/core.h> | | #include <core/core.h> | |
|
| | | #include <core/graphics_state.h> | |
| #include <core/layer_context.h> | | #include <core/layer_context.h> | |
| #include <core/layer_control.h> | | #include <core/layer_control.h> | |
| #include <core/layers_internal.h> | | #include <core/layers_internal.h> | |
| #include <core/palette.h> | | #include <core/palette.h> | |
| #include <core/state.h> | | #include <core/state.h> | |
| #include <core/surface.h> | | #include <core/surface.h> | |
| #include <core/windows.h> | | #include <core/windows.h> | |
| #include <core/windows_internal.h> | | #include <core/windows_internal.h> | |
| | | | |
| static __inline__ DirectResult | | static __inline__ DirectResult | |
| | | | |
| skipping to change at line 37 | | skipping to change at line 38 | |
| int call_arg, | | int call_arg, | |
| void *ptr, | | void *ptr, | |
| unsigned int length, | | unsigned int length, | |
| void *ret_ptr, | | void *ret_ptr, | |
| unsigned int ret_size, | | unsigned int ret_size, | |
| unsigned int *ret_length ) | | unsigned int *ret_length ) | |
| { | | { | |
| return fusion_call_execute3( &core->shared->call, flags, call_arg, ptr
, length, ret_ptr, ret_size, ret_length ); | | return fusion_call_execute3( &core->shared->call, flags, call_arg, ptr
, length, ret_ptr, ret_size, ret_length ); | |
| } | | } | |
| | | | |
|
| | | static __inline__ u32 | |
| | | CoreGraphicsState_GetID( const CoreGraphicsState *state ) | |
| | | { | |
| | | return state->object.id; | |
| | | } | |
| | | | |
| | | static __inline__ DirectResult | |
| | | CoreGraphicsState_Lookup( CoreDFB *core, | |
| | | u32 object_id, | |
| | | FusionID caller, | |
| | | CoreGraphicsState **ret_state ) | |
| | | { | |
| | | DFBResult ret; | |
| | | CoreGraphicsState *state; | |
| | | | |
| | | ret = dfb_core_get_graphics_state( core, object_id, &state ); | |
| | | if (ret) | |
| | | return (DirectResult) ret; | |
| | | | |
| | | if (state->object.owner && state->object.owner != caller) { | |
| | | dfb_graphics_state_unref( state ); | |
| | | return DR_ACCESSDENIED; | |
| | | } | |
| | | | |
| | | *ret_state = state; | |
| | | | |
| | | return DR_OK; | |
| | | } | |
| | | | |
| | | static __inline__ DirectResult | |
| | | CoreGraphicsState_Unref( CoreGraphicsState *state ) | |
| | | { | |
| | | return (DirectResult) dfb_graphics_state_unref( state ); | |
| | | } | |
| | | | |
| | | static __inline__ DirectResult | |
| | | CoreGraphicsState_Catch( CoreDFB *core, | |
| | | u32 object_id, | |
| | | CoreGraphicsState **ret_state ) | |
| | | { | |
| | | DirectResult ret; | |
| | | | |
| | | ret = (DirectResult) dfb_core_get_graphics_state( core, object_id, ret | |
| | | _state ); | |
| | | if (ret) | |
| | | return ret; | |
| | | | |
| | | fusion_ref_catch( &(*ret_state)->object.ref ); | |
| | | | |
| | | return DR_OK; | |
| | | } | |
| | | | |
| | | static __inline__ DirectResult | |
| | | CoreGraphicsState_Throw( CoreGraphicsState *state, | |
| | | FusionID catcher, | |
| | | u32 *ret_object_id ) | |
| | | { | |
| | | *ret_object_id = state->object.id; | |
| | | | |
| | | fusion_reactor_add_permissions( state->object.reactor, catcher, | |
| | | (FusionReactorPermissions)(FUSION_REAC | |
| | | TOR_PERMIT_ATTACH_DETACH) ); | |
| | | fusion_ref_add_permissions( &state->object.ref, catcher, | |
| | | (FusionRefPermissions)(FUSION_REF_PERMIT_R | |
| | | EF_UNREF_LOCAL | FUSION_REF_PERMIT_CATCH) ); | |
| | | fusion_call_add_permissions( &state->call, catcher, FUSION_CALL_PERMIT | |
| | | _EXECUTE ); | |
| | | | |
| | | if (!state->object.owner) | |
| | | state->object.owner = catcher; | |
| | | | |
| | | return fusion_ref_throw( &state->object.ref, catcher ); | |
| | | } | |
| | | | |
| | | static __inline__ u32 | |
| | | CoreLayer_GetID( const CoreLayer *layer ) | |
| | | { | |
| | | return dfb_layer_id( layer ); | |
| | | } | |
| | | | |
| static __inline__ DirectResult | | static __inline__ DirectResult | |
| CoreLayer_Lookup( CoreDFB *core, | | CoreLayer_Lookup( CoreDFB *core, | |
| u32 object_id, | | u32 object_id, | |
|
| | | FusionID caller, | |
| CoreLayer **ret_layer ) | | CoreLayer **ret_layer ) | |
| { | | { | |
| if (object_id >= (u32) dfb_layer_num()) | | if (object_id >= (u32) dfb_layer_num()) | |
| return DR_IDNOTFOUND; | | return DR_IDNOTFOUND; | |
| | | | |
| *ret_layer = dfb_layer_at( object_id ); | | *ret_layer = dfb_layer_at( object_id ); | |
| | | | |
| return DR_OK; | | return DR_OK; | |
| } | | } | |
| | | | |
| static __inline__ DirectResult | | static __inline__ DirectResult | |
|
| CoreLayer_Unref( CoreLayerContext *context ) | | CoreLayer_Unref( CoreLayer *layer ) | |
| { | | { | |
| return DR_OK; | | return DR_OK; | |
| } | | } | |
| | | | |
| static __inline__ DirectResult | | static __inline__ DirectResult | |
| CoreLayer_Catch( CoreDFB *core, | | CoreLayer_Catch( CoreDFB *core, | |
| u32 object_id, | | u32 object_id, | |
| CoreLayer **ret_layer ) | | CoreLayer **ret_layer ) | |
| { | | { | |
| if (object_id >= (u32) dfb_layer_num()) | | if (object_id >= (u32) dfb_layer_num()) | |
| | | | |
| skipping to change at line 79 | | skipping to change at line 157 | |
| static __inline__ DirectResult | | static __inline__ DirectResult | |
| CoreLayer_Throw( CoreLayer *layer, | | CoreLayer_Throw( CoreLayer *layer, | |
| FusionID catcher, | | FusionID catcher, | |
| u32 *ret_object_id ) | | u32 *ret_object_id ) | |
| { | | { | |
| *ret_object_id = layer->shared->layer_id; | | *ret_object_id = layer->shared->layer_id; | |
| | | | |
| return DR_OK; | | return DR_OK; | |
| } | | } | |
| | | | |
|
| | | static __inline__ u32 | |
| | | CoreLayerContext_GetID( const CoreLayerContext *context ) | |
| | | { | |
| | | return context->object.id; | |
| | | } | |
| | | | |
| static __inline__ DirectResult | | static __inline__ DirectResult | |
| CoreLayerContext_Lookup( CoreDFB *core, | | CoreLayerContext_Lookup( CoreDFB *core, | |
| u32 object_id, | | u32 object_id, | |
|
| | | FusionID caller, | |
| CoreLayerContext **ret_context ) | | CoreLayerContext **ret_context ) | |
| { | | { | |
|
| return (DirectResult) dfb_core_get_layer_context( core, object_id, ret | | DFBResult ret; | |
| _context ); | | CoreLayerContext *context; | |
| | | | |
| | | ret = dfb_core_get_layer_context( core, object_id, &context ); | |
| | | if (ret) | |
| | | return (DirectResult) ret; | |
| | | | |
| | | if (context->object.owner && context->object.owner != caller) { | |
| | | dfb_layer_context_unref( context ); | |
| | | return DR_ACCESSDENIED; | |
| | | } | |
| | | | |
| | | *ret_context = context; | |
| | | | |
| | | return DR_OK; | |
| } | | } | |
| | | | |
| static __inline__ DirectResult | | static __inline__ DirectResult | |
| CoreLayerContext_Unref( CoreLayerContext *context ) | | CoreLayerContext_Unref( CoreLayerContext *context ) | |
| { | | { | |
| return (DirectResult) dfb_layer_context_unref( context ); | | return (DirectResult) dfb_layer_context_unref( context ); | |
| } | | } | |
| | | | |
| static __inline__ DirectResult | | static __inline__ DirectResult | |
| CoreLayerContext_Catch( CoreDFB *core, | | CoreLayerContext_Catch( CoreDFB *core, | |
| | | | |
| skipping to change at line 116 | | skipping to change at line 215 | |
| return DR_OK; | | return DR_OK; | |
| } | | } | |
| | | | |
| static __inline__ DirectResult | | static __inline__ DirectResult | |
| CoreLayerContext_Throw( CoreLayerContext *context, | | CoreLayerContext_Throw( CoreLayerContext *context, | |
| FusionID catcher, | | FusionID catcher, | |
| u32 *ret_object_id ) | | u32 *ret_object_id ) | |
| { | | { | |
| *ret_object_id = context->object.id; | | *ret_object_id = context->object.id; | |
| | | | |
|
| | | fusion_reactor_add_permissions( context->object.reactor, catcher, | |
| | | (FusionReactorPermissions)(FUSION_REAC | |
| | | TOR_PERMIT_ATTACH_DETACH) ); | |
| | | fusion_ref_add_permissions( &context->object.ref, catcher, | |
| | | (FusionRefPermissions)(FUSION_REF_PERMIT_R | |
| | | EF_UNREF_LOCAL | FUSION_REF_PERMIT_CATCH) ); | |
| | | fusion_call_add_permissions( &context->call, catcher, FUSION_CALL_PERM | |
| | | IT_EXECUTE ); | |
| | | | |
| | | if (context->stack) | |
| | | fusion_call_add_permissions( &context->stack->call, catcher, FUSI | |
| | | ON_CALL_PERMIT_EXECUTE ); | |
| | | | |
| return fusion_ref_throw( &context->object.ref, catcher ); | | return fusion_ref_throw( &context->object.ref, catcher ); | |
| } | | } | |
| | | | |
|
| | | static __inline__ u32 | |
| | | CoreLayerRegion_GetID( const CoreLayerRegion *region ) | |
| | | { | |
| | | return region->object.id; | |
| | | } | |
| | | | |
| static __inline__ DirectResult | | static __inline__ DirectResult | |
| CoreLayerRegion_Lookup( CoreDFB *core, | | CoreLayerRegion_Lookup( CoreDFB *core, | |
| u32 object_id, | | u32 object_id, | |
|
| | | FusionID caller, | |
| CoreLayerRegion **ret_region ) | | CoreLayerRegion **ret_region ) | |
| { | | { | |
|
| return (DirectResult) dfb_core_get_layer_region( core, object_id, ret_ | | DFBResult ret; | |
| region ); | | CoreLayerRegion *region; | |
| | | | |
| | | ret = dfb_core_get_layer_region( core, object_id, ®ion ); | |
| | | if (ret) | |
| | | return (DirectResult) ret; | |
| | | | |
| | | if (region->object.owner && region->object.owner != caller) { | |
| | | dfb_layer_region_unref( region ); | |
| | | return DR_ACCESSDENIED; | |
| | | } | |
| | | | |
| | | *ret_region = region; | |
| | | | |
| | | return DR_OK; | |
| } | | } | |
| | | | |
| static __inline__ DirectResult | | static __inline__ DirectResult | |
| CoreLayerRegion_Unref( CoreLayerRegion *region ) | | CoreLayerRegion_Unref( CoreLayerRegion *region ) | |
| { | | { | |
| return (DirectResult) dfb_layer_region_unref( region ); | | return (DirectResult) dfb_layer_region_unref( region ); | |
| } | | } | |
| | | | |
| static __inline__ DirectResult | | static __inline__ DirectResult | |
| CoreLayerRegion_Catch( CoreDFB *core, | | CoreLayerRegion_Catch( CoreDFB *core, | |
| | | | |
| skipping to change at line 156 | | skipping to change at line 285 | |
| return DR_OK; | | return DR_OK; | |
| } | | } | |
| | | | |
| static __inline__ DirectResult | | static __inline__ DirectResult | |
| CoreLayerRegion_Throw( CoreLayerRegion *region, | | CoreLayerRegion_Throw( CoreLayerRegion *region, | |
| FusionID catcher, | | FusionID catcher, | |
| u32 *ret_object_id ) | | u32 *ret_object_id ) | |
| { | | { | |
| *ret_object_id = region->object.id; | | *ret_object_id = region->object.id; | |
| | | | |
|
| | | fusion_reactor_add_permissions( region->object.reactor, catcher, | |
| | | (FusionReactorPermissions)(FUSION_REAC | |
| | | TOR_PERMIT_ATTACH_DETACH) ); | |
| | | fusion_ref_add_permissions( ®ion->object.ref, catcher, | |
| | | (FusionRefPermissions)(FUSION_REF_PERMIT_R | |
| | | EF_UNREF_LOCAL | FUSION_REF_PERMIT_CATCH) ); | |
| | | fusion_call_add_permissions( ®ion->call, catcher, FUSION_CALL_PERMI | |
| | | T_EXECUTE ); | |
| | | | |
| return fusion_ref_throw( ®ion->object.ref, catcher ); | | return fusion_ref_throw( ®ion->object.ref, catcher ); | |
| } | | } | |
| | | | |
|
| | | static __inline__ u32 | |
| | | CorePalette_GetID( const CorePalette *palette ) | |
| | | { | |
| | | return palette->object.id; | |
| | | } | |
| | | | |
| static __inline__ DirectResult | | static __inline__ DirectResult | |
| CorePalette_Lookup( CoreDFB *core, | | CorePalette_Lookup( CoreDFB *core, | |
| u32 object_id, | | u32 object_id, | |
|
| | | FusionID caller, | |
| CorePalette **ret_palette ) | | CorePalette **ret_palette ) | |
| { | | { | |
|
| return (DirectResult) dfb_core_get_palette( core, object_id, ret_palet | | DFBResult ret; | |
| te ); | | CorePalette *palette; | |
| | | | |
| | | ret = dfb_core_get_palette( core, object_id, &palette ); | |
| | | if (ret) | |
| | | return (DirectResult) ret; | |
| | | | |
| | | if (palette->object.owner && palette->object.owner != caller) { | |
| | | dfb_palette_unref( palette ); | |
| | | return DR_ACCESSDENIED; | |
| | | } | |
| | | | |
| | | *ret_palette = palette; | |
| | | | |
| | | return DR_OK; | |
| } | | } | |
| | | | |
| static __inline__ DirectResult | | static __inline__ DirectResult | |
| CorePalette_Unref( CorePalette *palette ) | | CorePalette_Unref( CorePalette *palette ) | |
| { | | { | |
| return (DirectResult) dfb_palette_unref( palette ); | | return (DirectResult) dfb_palette_unref( palette ); | |
| } | | } | |
| | | | |
| static __inline__ DirectResult | | static __inline__ DirectResult | |
| CorePalette_Catch( CoreDFB *core, | | CorePalette_Catch( CoreDFB *core, | |
| | | | |
| skipping to change at line 196 | | skipping to change at line 352 | |
| return DR_OK; | | return DR_OK; | |
| } | | } | |
| | | | |
| static __inline__ DirectResult | | static __inline__ DirectResult | |
| CorePalette_Throw( CorePalette *palette, | | CorePalette_Throw( CorePalette *palette, | |
| FusionID catcher, | | FusionID catcher, | |
| u32 *ret_object_id ) | | u32 *ret_object_id ) | |
| { | | { | |
| *ret_object_id = palette->object.id; | | *ret_object_id = palette->object.id; | |
| | | | |
|
| | | fusion_reactor_add_permissions( palette->object.reactor, catcher, | |
| | | (FusionReactorPermissions)(FUSION_REAC | |
| | | TOR_PERMIT_ATTACH_DETACH) ); | |
| | | fusion_ref_add_permissions( &palette->object.ref, catcher, | |
| | | (FusionRefPermissions)(FUSION_REF_PERMIT_R | |
| | | EF_UNREF_LOCAL | FUSION_REF_PERMIT_CATCH) ); | |
| | | fusion_call_add_permissions( &palette->call, catcher, FUSION_CALL_PERM | |
| | | IT_EXECUTE ); | |
| | | | |
| | | if (!palette->object.owner) | |
| | | palette->object.owner = catcher; | |
| | | | |
| return fusion_ref_throw( &palette->object.ref, catcher ); | | return fusion_ref_throw( &palette->object.ref, catcher ); | |
| } | | } | |
| | | | |
|
| | | static __inline__ u32 | |
| | | CoreSurface_GetID( const CoreSurface *surface ) | |
| | | { | |
| | | return surface->object.id; | |
| | | } | |
| | | | |
| static __inline__ DirectResult | | static __inline__ DirectResult | |
| CoreSurface_Lookup( CoreDFB *core, | | CoreSurface_Lookup( CoreDFB *core, | |
| u32 object_id, | | u32 object_id, | |
|
| | | FusionID caller, | |
| CoreSurface **ret_surface ) | | CoreSurface **ret_surface ) | |
| { | | { | |
|
| return (DirectResult) dfb_core_get_surface( core, object_id, ret_surfa | | DFBResult ret; | |
| ce ); | | CoreSurface *surface; | |
| | | | |
| | | ret = dfb_core_get_surface( core, object_id, &surface ); | |
| | | if (ret) | |
| | | return (DirectResult) ret; | |
| | | | |
| | | if (surface->object.owner && surface->object.owner != caller) { | |
| | | dfb_surface_unref( surface ); | |
| | | return DR_ACCESSDENIED; | |
| | | } | |
| | | | |
| | | *ret_surface = surface; | |
| | | | |
| | | return DR_OK; | |
| } | | } | |
| | | | |
| static __inline__ DirectResult | | static __inline__ DirectResult | |
| CoreSurface_Unref( CoreSurface *surface ) | | CoreSurface_Unref( CoreSurface *surface ) | |
| { | | { | |
| return (DirectResult) dfb_surface_unref( surface ); | | return (DirectResult) dfb_surface_unref( surface ); | |
| } | | } | |
| | | | |
| static __inline__ DirectResult | | static __inline__ DirectResult | |
| CoreSurface_Catch( CoreDFB *core, | | CoreSurface_Catch( CoreDFB *core, | |
| | | | |
| skipping to change at line 236 | | skipping to change at line 422 | |
| return DR_OK; | | return DR_OK; | |
| } | | } | |
| | | | |
| static __inline__ DirectResult | | static __inline__ DirectResult | |
| CoreSurface_Throw( CoreSurface *surface, | | CoreSurface_Throw( CoreSurface *surface, | |
| FusionID catcher, | | FusionID catcher, | |
| u32 *ret_object_id ) | | u32 *ret_object_id ) | |
| { | | { | |
| *ret_object_id = surface->object.id; | | *ret_object_id = surface->object.id; | |
| | | | |
|
| | | fusion_reactor_add_permissions( surface->object.reactor, catcher, | |
| | | (FusionReactorPermissions)(FUSION_REAC | |
| | | TOR_PERMIT_ATTACH_DETACH) ); | |
| | | fusion_ref_add_permissions( &surface->object.ref, catcher, | |
| | | (FusionRefPermissions)(FUSION_REF_PERMIT_R | |
| | | EF_UNREF_LOCAL | FUSION_REF_PERMIT_CATCH) ); | |
| | | fusion_call_add_permissions( &surface->call, catcher, FUSION_CALL_PERM | |
| | | IT_EXECUTE ); | |
| | | | |
| | | if (!surface->object.owner) | |
| | | surface->object.owner = catcher; | |
| | | | |
| return fusion_ref_throw( &surface->object.ref, catcher ); | | return fusion_ref_throw( &surface->object.ref, catcher ); | |
| } | | } | |
| | | | |
|
| | | static __inline__ u32 | |
| | | CoreWindow_GetID( const CoreWindow *window ) | |
| | | { | |
| | | return window->object.id; | |
| | | } | |
| | | | |
| static __inline__ DirectResult | | static __inline__ DirectResult | |
| CoreWindow_Lookup( CoreDFB *core, | | CoreWindow_Lookup( CoreDFB *core, | |
| u32 object_id, | | u32 object_id, | |
|
| | | FusionID caller, | |
| CoreWindow **ret_window ) | | CoreWindow **ret_window ) | |
| { | | { | |
|
| return (DirectResult) dfb_core_get_window( core, object_id, ret_window | | DFBResult ret; | |
| ); | | CoreWindow *window; | |
| | | | |
| | | ret = dfb_core_get_window( core, object_id, &window ); | |
| | | if (ret) | |
| | | return (DirectResult) ret; | |
| | | | |
| | | if (window->object.owner && window->object.owner != caller) { | |
| | | dfb_window_unref( window ); | |
| | | return DR_ACCESSDENIED; | |
| | | } | |
| | | | |
| | | *ret_window = window; | |
| | | | |
| | | return DR_OK; | |
| } | | } | |
| | | | |
| static __inline__ DirectResult | | static __inline__ DirectResult | |
| CoreWindow_Unref( CoreWindow *window ) | | CoreWindow_Unref( CoreWindow *window ) | |
| { | | { | |
| return (DirectResult) dfb_window_unref( window ); | | return (DirectResult) dfb_window_unref( window ); | |
| } | | } | |
| | | | |
| static __inline__ DirectResult | | static __inline__ DirectResult | |
| CoreWindow_Catch( CoreDFB *core, | | CoreWindow_Catch( CoreDFB *core, | |
| | | | |
| skipping to change at line 276 | | skipping to change at line 492 | |
| return DR_OK; | | return DR_OK; | |
| } | | } | |
| | | | |
| static __inline__ DirectResult | | static __inline__ DirectResult | |
| CoreWindow_Throw( CoreWindow *window, | | CoreWindow_Throw( CoreWindow *window, | |
| FusionID catcher, | | FusionID catcher, | |
| u32 *ret_object_id ) | | u32 *ret_object_id ) | |
| { | | { | |
| *ret_object_id = window->object.id; | | *ret_object_id = window->object.id; | |
| | | | |
|
| return fusion_ref_throw( &window->object.ref, catcher ); | | fusion_reactor_add_permissions( window->object.reactor, catcher, | |
| } | | (FusionReactorPermissions)(FUSION_REAC | |
| | | TOR_PERMIT_ATTACH_DETACH | FUSION_REACTOR_PERMIT_DISPATCH) ); | |
| struct __DFB_CoreGraphicsState { | | fusion_ref_add_permissions( &window->object.ref, catcher, | |
| int magic; | | (FusionRefPermissions)(FUSION_REF_PERMIT_R | |
| | | EF_UNREF_LOCAL | FUSION_REF_PERMIT_CATCH) ); | |
| CoreDFB *core; | | fusion_call_add_permissions( &window->call, catcher, FUSION_CALL_PERMI | |
| | | T_EXECUTE ); | |
| FusionCall call; | | | |
| | | | |
| CardState state; | | | |
| }; | | | |
| | | | |
| static __inline__ DirectResult | | | |
| CoreGraphicsState_Lookup( CoreDFB *core, | | | |
| u32 object_id, | | | |
| CoreGraphicsState **ret_state ) | | | |
| { | | | |
| return DR_UNSUPPORTED; | | | |
| } | | | |
| | | | |
| static __inline__ DirectResult | | | |
| CoreGraphicsState_Unref( CoreWindow *window ) | | | |
| { | | | |
| return DR_UNSUPPORTED; | | | |
| } | | | |
| | | | |
| static __inline__ DirectResult | | | |
| CoreGraphicsState_Catch( CoreDFB *core, | | | |
| u32 object_id, | | | |
| CoreGraphicsState **ret_state ) | | | |
| { | | | |
| CoreGraphicsState *state; | | | |
| | | | |
| state = (CoreGraphicsState*) D_CALLOC( 1, sizeof(CoreGraphicsState) ); | | | |
| if (!state) | | | |
| return D_OOM(); | | | |
| | | | |
| state->core = core; | | | |
| // state->state is not used on client side, FIXME: find better integra | | | |
| tion for local/proxy objects | | | |
| fusion_call_init_from( &state->call, object_id, core->world ); | | | |
| | | | |
| D_MAGIC_SET( state, CoreGraphicsState ); | | | |
| | | | |
| *ret_state = state; | | | |
| | | | |
| return DR_OK; | | | |
| } | | | |
| | | | |
|
| static __inline__ DirectResult | | if (!window->object.owner) | |
| CoreGraphicsState_Throw( CoreGraphicsState *state, | | window->object.owner = catcher; | |
| FusionID catcher, | | | |
| u32 *ret_object_id ) | | | |
| { | | | |
| *ret_object_id = state->call.call_id; | | | |
| | | | |
|
| return DR_OK; | | return fusion_ref_throw( &window->object.ref, catcher ); | |
| } | | } | |
| | | | |
| #ifdef __cplusplus | | #ifdef __cplusplus | |
| } | | } | |
| #endif | | #endif | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 26 change blocks. |
| 67 lines changed or deleted | | 250 lines changed or added | |
|
| CoreLayer.h | | CoreLayer.h | |
| | | | |
| skipping to change at line 52 | | skipping to change at line 52 | |
| #endif | | #endif | |
| | | | |
| DFBResult CoreLayer_CreateContext( | | DFBResult CoreLayer_CreateContext( | |
| CoreLayer *obj, | | CoreLayer *obj, | |
| CoreLayerContext **ret_context)
; | | CoreLayerContext **ret_context)
; | |
| | | | |
| DFBResult CoreLayer_ActivateContext( | | DFBResult CoreLayer_ActivateContext( | |
| CoreLayer *obj, | | CoreLayer *obj, | |
| CoreLayerContext *context); | | CoreLayerContext *context); | |
| | | | |
|
| | | DFBResult CoreLayer_GetPrimaryContext( | |
| | | CoreLayer *obj, | |
| | | bool activate, | |
| | | CoreLayerContext **ret_context) | |
| | | ; | |
| | | | |
| void *CoreLayer_Init_Dispatch( | | void *CoreLayer_Init_Dispatch( | |
| CoreDFB *core, | | CoreDFB *core, | |
| CoreLayer *obj, | | CoreLayer *obj, | |
| FusionCall *call | | FusionCall *call | |
| ); | | ); | |
| | | | |
| void CoreLayer_Deinit_Dispatch( | | void CoreLayer_Deinit_Dispatch( | |
| void *dispatch | | void *dispatch | |
| ); | | ); | |
| | | | |
| | | | |
| skipping to change at line 73 | | skipping to change at line 78 | |
| } | | } | |
| | | | |
| namespace DirectFB { | | namespace DirectFB { | |
| | | | |
| /* | | /* | |
| * CoreLayer Calls | | * CoreLayer Calls | |
| */ | | */ | |
| typedef enum { | | typedef enum { | |
| CoreLayer_CreateContext = 1, | | CoreLayer_CreateContext = 1, | |
| CoreLayer_ActivateContext = 2, | | CoreLayer_ActivateContext = 2, | |
|
| | | CoreLayer_GetPrimaryContext = 3, | |
| } CoreLayerCall; | | } CoreLayerCall; | |
| | | | |
| /* | | /* | |
| * CoreLayer_CreateContext | | * CoreLayer_CreateContext | |
| */ | | */ | |
| typedef struct { | | typedef struct { | |
| } CoreLayerCreateContext; | | } CoreLayerCreateContext; | |
| | | | |
| typedef struct { | | typedef struct { | |
| DFBResult result; | | DFBResult result; | |
| | | | |
| skipping to change at line 97 | | skipping to change at line 103 | |
| * CoreLayer_ActivateContext | | * CoreLayer_ActivateContext | |
| */ | | */ | |
| typedef struct { | | typedef struct { | |
| u32 context_id; | | u32 context_id; | |
| } CoreLayerActivateContext; | | } CoreLayerActivateContext; | |
| | | | |
| typedef struct { | | typedef struct { | |
| DFBResult result; | | DFBResult result; | |
| } CoreLayerActivateContextReturn; | | } CoreLayerActivateContextReturn; | |
| | | | |
|
| | | /* | |
| | | * CoreLayer_GetPrimaryContext | |
| | | */ | |
| | | typedef struct { | |
| | | bool activate; | |
| | | } CoreLayerGetPrimaryContext; | |
| | | | |
| | | typedef struct { | |
| | | DFBResult result; | |
| | | u32 context_id; | |
| | | } CoreLayerGetPrimaryContextReturn; | |
| | | | |
| class ILayer : public Interface | | class ILayer : public Interface | |
| { | | { | |
| public: | | public: | |
| ILayer( CoreDFB *core ) | | ILayer( CoreDFB *core ) | |
| : | | : | |
| Interface( core ) | | Interface( core ) | |
| { | | { | |
| } | | } | |
| | | | |
| public: | | public: | |
| virtual DFBResult CreateContext( | | virtual DFBResult CreateContext( | |
| CoreLayerContext **ret_context | | CoreLayerContext **ret_context | |
| ) = 0; | | ) = 0; | |
| | | | |
| virtual DFBResult ActivateContext( | | virtual DFBResult ActivateContext( | |
| CoreLayerContext *context | | CoreLayerContext *context | |
| ) = 0; | | ) = 0; | |
| | | | |
|
| | | virtual DFBResult GetPrimaryContext( | |
| | | bool activate, | |
| | | CoreLayerContext **ret_context | |
| | | ) = 0; | |
| | | | |
| }; | | }; | |
| | | | |
| class ILayer_Real : public ILayer | | class ILayer_Real : public ILayer | |
| { | | { | |
| private: | | private: | |
| CoreLayer *obj; | | CoreLayer *obj; | |
| | | | |
| public: | | public: | |
| ILayer_Real( CoreDFB *core, CoreLayer *obj ) | | ILayer_Real( CoreDFB *core, CoreLayer *obj ) | |
| : | | : | |
| | | | |
| skipping to change at line 139 | | skipping to change at line 162 | |
| | | | |
| public: | | public: | |
| virtual DFBResult CreateContext( | | virtual DFBResult CreateContext( | |
| CoreLayerContext **ret_context | | CoreLayerContext **ret_context | |
| ); | | ); | |
| | | | |
| virtual DFBResult ActivateContext( | | virtual DFBResult ActivateContext( | |
| CoreLayerContext *context | | CoreLayerContext *context | |
| ); | | ); | |
| | | | |
|
| | | virtual DFBResult GetPrimaryContext( | |
| | | bool activate, | |
| | | CoreLayerContext **ret_context | |
| | | ); | |
| | | | |
| }; | | }; | |
| | | | |
| class ILayer_Requestor : public ILayer | | class ILayer_Requestor : public ILayer | |
| { | | { | |
| private: | | private: | |
| CoreLayer *obj; | | CoreLayer *obj; | |
| | | | |
| public: | | public: | |
| ILayer_Requestor( CoreDFB *core, CoreLayer *obj ) | | ILayer_Requestor( CoreDFB *core, CoreLayer *obj ) | |
| : | | : | |
| | | | |
| skipping to change at line 163 | | skipping to change at line 191 | |
| | | | |
| public: | | public: | |
| virtual DFBResult CreateContext( | | virtual DFBResult CreateContext( | |
| CoreLayerContext **ret_context | | CoreLayerContext **ret_context | |
| ); | | ); | |
| | | | |
| virtual DFBResult ActivateContext( | | virtual DFBResult ActivateContext( | |
| CoreLayerContext *context | | CoreLayerContext *context | |
| ); | | ); | |
| | | | |
|
| | | virtual DFBResult GetPrimaryContext( | |
| | | bool activate, | |
| | | CoreLayerContext **ret_context | |
| | | ); | |
| | | | |
| }; | | }; | |
| | | | |
| class CoreLayerDispatch | | class CoreLayerDispatch | |
| { | | { | |
| | | | |
| public: | | public: | |
| CoreLayerDispatch( CoreDFB *core, ILayer *real ) | | CoreLayerDispatch( CoreDFB *core, ILayer *real ) | |
| : | | : | |
| core( core ), | | core( core ), | |
| real( real ) | | real( real ) | |
| | | | |
End of changes. 6 change blocks. |
| 0 lines changed or deleted | | 34 lines changed or added | |
|
| CoreLayerContext.h | | CoreLayerContext.h | |
| | | | |
| skipping to change at line 47 | | skipping to change at line 47 | |
| | | | |
| #ifdef __cplusplus | | #ifdef __cplusplus | |
| #include <core/Interface.h> | | #include <core/Interface.h> | |
| | | | |
| extern "C" { | | extern "C" { | |
| #endif | | #endif | |
| | | | |
| DFBResult CoreLayerContext_CreateWindow( | | DFBResult CoreLayerContext_CreateWindow( | |
| CoreLayerContext *obj, | | CoreLayerContext *obj, | |
| const DFBWindowDescription *description, | | const DFBWindowDescription *description, | |
|
| | | CoreWindow *parent, | |
| | | CoreWindow *toplevel, | |
| CoreWindow **ret_window); | | CoreWindow **ret_window); | |
| | | | |
| DFBResult CoreLayerContext_SetConfiguration( | | DFBResult CoreLayerContext_SetConfiguration( | |
| CoreLayerContext *obj, | | CoreLayerContext *obj, | |
| const DFBDisplayLayerConfig *config); | | const DFBDisplayLayerConfig *config); | |
| | | | |
| DFBResult CoreLayerContext_GetPrimaryRegion( | | DFBResult CoreLayerContext_GetPrimaryRegion( | |
| CoreLayerContext *obj, | | CoreLayerContext *obj, | |
| bool create, | | bool create, | |
| CoreLayerRegion **ret_region); | | CoreLayerRegion **ret_region); | |
| | | | |
| skipping to change at line 87 | | skipping to change at line 89 | |
| CoreLayerContext_CreateWindow = 1, | | CoreLayerContext_CreateWindow = 1, | |
| CoreLayerContext_SetConfiguration = 2, | | CoreLayerContext_SetConfiguration = 2, | |
| CoreLayerContext_GetPrimaryRegion = 3, | | CoreLayerContext_GetPrimaryRegion = 3, | |
| } CoreLayerContextCall; | | } CoreLayerContextCall; | |
| | | | |
| /* | | /* | |
| * CoreLayerContext_CreateWindow | | * CoreLayerContext_CreateWindow | |
| */ | | */ | |
| typedef struct { | | typedef struct { | |
| DFBWindowDescription description; | | DFBWindowDescription description; | |
|
| | | bool parent_set; | |
| | | u32 parent_id; | |
| | | bool toplevel_set; | |
| | | u32 toplevel_id; | |
| } CoreLayerContextCreateWindow; | | } CoreLayerContextCreateWindow; | |
| | | | |
| typedef struct { | | typedef struct { | |
| DFBResult result; | | DFBResult result; | |
| u32 window_id; | | u32 window_id; | |
| } CoreLayerContextCreateWindowReturn; | | } CoreLayerContextCreateWindowReturn; | |
| | | | |
| /* | | /* | |
| * CoreLayerContext_SetConfiguration | | * CoreLayerContext_SetConfiguration | |
| */ | | */ | |
| | | | |
| skipping to change at line 129 | | skipping to change at line 135 | |
| public: | | public: | |
| ILayerContext( CoreDFB *core ) | | ILayerContext( CoreDFB *core ) | |
| : | | : | |
| Interface( core ) | | Interface( core ) | |
| { | | { | |
| } | | } | |
| | | | |
| public: | | public: | |
| virtual DFBResult CreateWindow( | | virtual DFBResult CreateWindow( | |
| const DFBWindowDescription *description, | | const DFBWindowDescription *description, | |
|
| | | CoreWindow *parent, | |
| | | CoreWindow *toplevel, | |
| CoreWindow **ret_window | | CoreWindow **ret_window | |
| ) = 0; | | ) = 0; | |
| | | | |
| virtual DFBResult SetConfiguration( | | virtual DFBResult SetConfiguration( | |
| const DFBDisplayLayerConfig *config | | const DFBDisplayLayerConfig *config | |
| ) = 0; | | ) = 0; | |
| | | | |
| virtual DFBResult GetPrimaryRegion( | | virtual DFBResult GetPrimaryRegion( | |
| bool create, | | bool create, | |
| CoreLayerRegion **ret_region | | CoreLayerRegion **ret_region | |
| | | | |
| skipping to change at line 159 | | skipping to change at line 167 | |
| ILayerContext_Real( CoreDFB *core, CoreLayerContext *obj ) | | ILayerContext_Real( CoreDFB *core, CoreLayerContext *obj ) | |
| : | | : | |
| ILayerContext( core ), | | ILayerContext( core ), | |
| obj( obj ) | | obj( obj ) | |
| { | | { | |
| } | | } | |
| | | | |
| public: | | public: | |
| virtual DFBResult CreateWindow( | | virtual DFBResult CreateWindow( | |
| const DFBWindowDescription *description, | | const DFBWindowDescription *description, | |
|
| | | CoreWindow *parent, | |
| | | CoreWindow *toplevel, | |
| CoreWindow **ret_window | | CoreWindow **ret_window | |
| ); | | ); | |
| | | | |
| virtual DFBResult SetConfiguration( | | virtual DFBResult SetConfiguration( | |
| const DFBDisplayLayerConfig *config | | const DFBDisplayLayerConfig *config | |
| ); | | ); | |
| | | | |
| virtual DFBResult GetPrimaryRegion( | | virtual DFBResult GetPrimaryRegion( | |
| bool create, | | bool create, | |
| CoreLayerRegion **ret_region | | CoreLayerRegion **ret_region | |
| | | | |
| skipping to change at line 189 | | skipping to change at line 199 | |
| ILayerContext_Requestor( CoreDFB *core, CoreLayerContext *obj ) | | ILayerContext_Requestor( CoreDFB *core, CoreLayerContext *obj ) | |
| : | | : | |
| ILayerContext( core ), | | ILayerContext( core ), | |
| obj( obj ) | | obj( obj ) | |
| { | | { | |
| } | | } | |
| | | | |
| public: | | public: | |
| virtual DFBResult CreateWindow( | | virtual DFBResult CreateWindow( | |
| const DFBWindowDescription *description, | | const DFBWindowDescription *description, | |
|
| | | CoreWindow *parent, | |
| | | CoreWindow *toplevel, | |
| CoreWindow **ret_window | | CoreWindow **ret_window | |
| ); | | ); | |
| | | | |
| virtual DFBResult SetConfiguration( | | virtual DFBResult SetConfiguration( | |
| const DFBDisplayLayerConfig *config | | const DFBDisplayLayerConfig *config | |
| ); | | ); | |
| | | | |
| virtual DFBResult GetPrimaryRegion( | | virtual DFBResult GetPrimaryRegion( | |
| bool create, | | bool create, | |
| CoreLayerRegion **ret_region | | CoreLayerRegion **ret_region | |
| | | | |
End of changes. 5 change blocks. |
| 0 lines changed or deleted | | 12 lines changed or added | |
|
| CoreSurface.h | | CoreSurface.h | |
| | | | |
| skipping to change at line 48 | | skipping to change at line 48 | |
| #ifdef __cplusplus | | #ifdef __cplusplus | |
| #include <core/Interface.h> | | #include <core/Interface.h> | |
| | | | |
| extern "C" { | | extern "C" { | |
| #endif | | #endif | |
| | | | |
| DFBResult CoreSurface_SetConfig( | | DFBResult CoreSurface_SetConfig( | |
| CoreSurface *obj, | | CoreSurface *obj, | |
| const CoreSurfaceConfig *config); | | const CoreSurfaceConfig *config); | |
| | | | |
|
| DFBResult CoreSurface_LockBuffer( | | | |
| CoreSurface *obj, | | | |
| CoreSurfaceBufferRole role, | | | |
| CoreSurfaceAccessorID accessor, | | | |
| CoreSurfaceAccessFlags access, | | | |
| CoreSurfaceBufferLock *ret_lock); | | | |
| | | | |
| DFBResult CoreSurface_UnlockBuffer( | | | |
| CoreSurface *obj, | | | |
| CoreSurfaceBufferLock *lock); | | | |
| | | | |
| DFBResult CoreSurface_Flip( | | DFBResult CoreSurface_Flip( | |
| CoreSurface *obj, | | CoreSurface *obj, | |
| bool swap); | | bool swap); | |
| | | | |
|
| | | DFBResult CoreSurface_GetPalette( | |
| | | CoreSurface *obj, | |
| | | CorePalette **ret_palette) | |
| | | ; | |
| | | | |
| DFBResult CoreSurface_SetPalette( | | DFBResult CoreSurface_SetPalette( | |
| CoreSurface *obj, | | CoreSurface *obj, | |
| CorePalette *palette); | | CorePalette *palette); | |
| | | | |
|
| | | DFBResult CoreSurface_PreLockBuffer( | |
| | | CoreSurface *obj, | |
| | | u32 buffer_index | |
| | | , | |
| | | CoreSurfaceAccessorID accessor, | |
| | | CoreSurfaceAccessFlags access, | |
| | | u32 *ret_allocati | |
| | | on_index); | |
| | | | |
| | | DFBResult CoreSurface_PreReadBuffer( | |
| | | CoreSurface *obj, | |
| | | u32 buffer_index | |
| | | , | |
| | | const DFBRectangle *rect, | |
| | | u32 *ret_allocati | |
| | | on_index); | |
| | | | |
| | | DFBResult CoreSurface_PreWriteBuffer( | |
| | | CoreSurface *obj, | |
| | | u32 buffer_index | |
| | | , | |
| | | const DFBRectangle *rect, | |
| | | u32 *ret_allocati | |
| | | on_index); | |
| | | | |
| void *CoreSurface_Init_Dispatch( | | void *CoreSurface_Init_Dispatch( | |
| CoreDFB *core, | | CoreDFB *core, | |
| CoreSurface *obj, | | CoreSurface *obj, | |
| FusionCall *call | | FusionCall *call | |
| ); | | ); | |
| | | | |
| void CoreSurface_Deinit_Dispatch( | | void CoreSurface_Deinit_Dispatch( | |
| void *dispatch | | void *dispatch | |
| ); | | ); | |
| | | | |
| #ifdef __cplusplus | | #ifdef __cplusplus | |
| } | | } | |
| | | | |
| namespace DirectFB { | | namespace DirectFB { | |
| | | | |
| /* | | /* | |
| * CoreSurface Calls | | * CoreSurface Calls | |
| */ | | */ | |
| typedef enum { | | typedef enum { | |
| CoreSurface_SetConfig = 1, | | CoreSurface_SetConfig = 1, | |
|
| CoreSurface_LockBuffer = 2, | | CoreSurface_Flip = 2, | |
| CoreSurface_UnlockBuffer = 3, | | CoreSurface_GetPalette = 3, | |
| CoreSurface_Flip = 4, | | CoreSurface_SetPalette = 4, | |
| CoreSurface_SetPalette = 5, | | CoreSurface_PreLockBuffer = 5, | |
| | | CoreSurface_PreReadBuffer = 6, | |
| | | CoreSurface_PreWriteBuffer = 7, | |
| } CoreSurfaceCall; | | } CoreSurfaceCall; | |
| | | | |
| /* | | /* | |
| * CoreSurface_SetConfig | | * CoreSurface_SetConfig | |
| */ | | */ | |
| typedef struct { | | typedef struct { | |
| CoreSurfaceConfig config; | | CoreSurfaceConfig config; | |
| } CoreSurfaceSetConfig; | | } CoreSurfaceSetConfig; | |
| | | | |
| typedef struct { | | typedef struct { | |
| DFBResult result; | | DFBResult result; | |
| } CoreSurfaceSetConfigReturn; | | } CoreSurfaceSetConfigReturn; | |
| | | | |
| /* | | /* | |
|
| * CoreSurface_LockBuffer | | * CoreSurface_Flip | |
| */ | | */ | |
| typedef struct { | | typedef struct { | |
|
| CoreSurfaceBufferRole role; | | bool swap; | |
| CoreSurfaceAccessorID accessor; | | } CoreSurfaceFlip; | |
| CoreSurfaceAccessFlags access; | | | |
| } CoreSurfaceLockBuffer; | | | |
| | | | |
| typedef struct { | | typedef struct { | |
| DFBResult result; | | DFBResult result; | |
|
| CoreSurfaceBufferLock lock; | | } CoreSurfaceFlipReturn; | |
| } CoreSurfaceLockBufferReturn; | | | |
| | | | |
| /* | | /* | |
|
| * CoreSurface_UnlockBuffer | | * CoreSurface_GetPalette | |
| */ | | */ | |
| typedef struct { | | typedef struct { | |
|
| CoreSurfaceBufferLock lock; | | } CoreSurfaceGetPalette; | |
| } CoreSurfaceUnlockBuffer; | | | |
| | | | |
| typedef struct { | | typedef struct { | |
| DFBResult result; | | DFBResult result; | |
|
| CoreSurfaceBufferLock lock; | | u32 palette_id; | |
| } CoreSurfaceUnlockBufferReturn; | | } CoreSurfaceGetPaletteReturn; | |
| | | | |
| /* | | /* | |
|
| * CoreSurface_Flip | | * CoreSurface_SetPalette | |
| */ | | */ | |
| typedef struct { | | typedef struct { | |
|
| bool swap; | | u32 palette_id; | |
| } CoreSurfaceFlip; | | } CoreSurfaceSetPalette; | |
| | | | |
| typedef struct { | | typedef struct { | |
| DFBResult result; | | DFBResult result; | |
|
| } CoreSurfaceFlipReturn; | | } CoreSurfaceSetPaletteReturn; | |
| | | | |
| /* | | /* | |
|
| * CoreSurface_SetPalette | | * CoreSurface_PreLockBuffer | |
| */ | | */ | |
| typedef struct { | | typedef struct { | |
|
| u32 palette_id; | | u32 buffer_index; | |
| } CoreSurfaceSetPalette; | | CoreSurfaceAccessorID accessor; | |
| | | CoreSurfaceAccessFlags access; | |
| | | } CoreSurfacePreLockBuffer; | |
| | | | |
| typedef struct { | | typedef struct { | |
| DFBResult result; | | DFBResult result; | |
|
| } CoreSurfaceSetPaletteReturn; | | u32 allocation_index; | |
| | | } CoreSurfacePreLockBufferReturn; | |
| | | | |
| | | /* | |
| | | * CoreSurface_PreReadBuffer | |
| | | */ | |
| | | typedef struct { | |
| | | u32 buffer_index; | |
| | | DFBRectangle rect; | |
| | | } CoreSurfacePreReadBuffer; | |
| | | | |
| | | typedef struct { | |
| | | DFBResult result; | |
| | | u32 allocation_index; | |
| | | } CoreSurfacePreReadBufferReturn; | |
| | | | |
| | | /* | |
| | | * CoreSurface_PreWriteBuffer | |
| | | */ | |
| | | typedef struct { | |
| | | u32 buffer_index; | |
| | | DFBRectangle rect; | |
| | | } CoreSurfacePreWriteBuffer; | |
| | | | |
| | | typedef struct { | |
| | | DFBResult result; | |
| | | u32 allocation_index; | |
| | | } CoreSurfacePreWriteBufferReturn; | |
| | | | |
| class ISurface : public Interface | | class ISurface : public Interface | |
| { | | { | |
| public: | | public: | |
| ISurface( CoreDFB *core ) | | ISurface( CoreDFB *core ) | |
| : | | : | |
| Interface( core ) | | Interface( core ) | |
| { | | { | |
| } | | } | |
| | | | |
| public: | | public: | |
| virtual DFBResult SetConfig( | | virtual DFBResult SetConfig( | |
| const CoreSurfaceConfig *config | | const CoreSurfaceConfig *config | |
| ) = 0; | | ) = 0; | |
| | | | |
|
| virtual DFBResult LockBuffer( | | | |
| CoreSurfaceBufferRole role, | | | |
| CoreSurfaceAccessorID accessor, | | | |
| CoreSurfaceAccessFlags access, | | | |
| CoreSurfaceBufferLock *ret_lock | | | |
| ) = 0; | | | |
| | | | |
| virtual DFBResult UnlockBuffer( | | | |
| CoreSurfaceBufferLock *lock | | | |
| ) = 0; | | | |
| | | | |
| virtual DFBResult Flip( | | virtual DFBResult Flip( | |
| bool swap | | bool swap | |
| ) = 0; | | ) = 0; | |
| | | | |
|
| | | virtual DFBResult GetPalette( | |
| | | CorePalette **ret_palette | |
| | | ) = 0; | |
| | | | |
| virtual DFBResult SetPalette( | | virtual DFBResult SetPalette( | |
| CorePalette *palette | | CorePalette *palette | |
| ) = 0; | | ) = 0; | |
| | | | |
|
| | | virtual DFBResult PreLockBuffer( | |
| | | u32 buffer_index | |
| | | , | |
| | | CoreSurfaceAccessorID accessor, | |
| | | CoreSurfaceAccessFlags access, | |
| | | u32 *ret_allocati | |
| | | on_index | |
| | | ) = 0; | |
| | | | |
| | | virtual DFBResult PreReadBuffer( | |
| | | u32 buffer_index | |
| | | , | |
| | | const DFBRectangle *rect, | |
| | | u32 *ret_allocati | |
| | | on_index | |
| | | ) = 0; | |
| | | | |
| | | virtual DFBResult PreWriteBuffer( | |
| | | u32 buffer_index | |
| | | , | |
| | | const DFBRectangle *rect, | |
| | | u32 *ret_allocati | |
| | | on_index | |
| | | ) = 0; | |
| | | | |
| }; | | }; | |
| | | | |
| class ISurface_Real : public ISurface | | class ISurface_Real : public ISurface | |
| { | | { | |
| private: | | private: | |
| CoreSurface *obj; | | CoreSurface *obj; | |
| | | | |
| public: | | public: | |
| ISurface_Real( CoreDFB *core, CoreSurface *obj ) | | ISurface_Real( CoreDFB *core, CoreSurface *obj ) | |
| : | | : | |
| ISurface( core ), | | ISurface( core ), | |
| obj( obj ) | | obj( obj ) | |
| { | | { | |
| } | | } | |
| | | | |
| public: | | public: | |
| virtual DFBResult SetConfig( | | virtual DFBResult SetConfig( | |
| const CoreSurfaceConfig *config | | const CoreSurfaceConfig *config | |
| ); | | ); | |
| | | | |
|
| virtual DFBResult LockBuffer( | | | |
| CoreSurfaceBufferRole role, | | | |
| CoreSurfaceAccessorID accessor, | | | |
| CoreSurfaceAccessFlags access, | | | |
| CoreSurfaceBufferLock *ret_lock | | | |
| ); | | | |
| | | | |
| virtual DFBResult UnlockBuffer( | | | |
| CoreSurfaceBufferLock *lock | | | |
| ); | | | |
| | | | |
| virtual DFBResult Flip( | | virtual DFBResult Flip( | |
| bool swap | | bool swap | |
| ); | | ); | |
| | | | |
|
| | | virtual DFBResult GetPalette( | |
| | | CorePalette **ret_palette | |
| | | ); | |
| | | | |
| virtual DFBResult SetPalette( | | virtual DFBResult SetPalette( | |
| CorePalette *palette | | CorePalette *palette | |
| ); | | ); | |
| | | | |
|
| | | virtual DFBResult PreLockBuffer( | |
| | | u32 buffer_index | |
| | | , | |
| | | CoreSurfaceAccessorID accessor, | |
| | | CoreSurfaceAccessFlags access, | |
| | | u32 *ret_allocati | |
| | | on_index | |
| | | ); | |
| | | | |
| | | virtual DFBResult PreReadBuffer( | |
| | | u32 buffer_index | |
| | | , | |
| | | const DFBRectangle *rect, | |
| | | u32 *ret_allocati | |
| | | on_index | |
| | | ); | |
| | | | |
| | | virtual DFBResult PreWriteBuffer( | |
| | | u32 buffer_index | |
| | | , | |
| | | const DFBRectangle *rect, | |
| | | u32 *ret_allocati | |
| | | on_index | |
| | | ); | |
| | | | |
| }; | | }; | |
| | | | |
| class ISurface_Requestor : public ISurface | | class ISurface_Requestor : public ISurface | |
| { | | { | |
| private: | | private: | |
| CoreSurface *obj; | | CoreSurface *obj; | |
| | | | |
| public: | | public: | |
| ISurface_Requestor( CoreDFB *core, CoreSurface *obj ) | | ISurface_Requestor( CoreDFB *core, CoreSurface *obj ) | |
| : | | : | |
| ISurface( core ), | | ISurface( core ), | |
| obj( obj ) | | obj( obj ) | |
| { | | { | |
| } | | } | |
| | | | |
| public: | | public: | |
| virtual DFBResult SetConfig( | | virtual DFBResult SetConfig( | |
| const CoreSurfaceConfig *config | | const CoreSurfaceConfig *config | |
| ); | | ); | |
| | | | |
|
| virtual DFBResult LockBuffer( | | | |
| CoreSurfaceBufferRole role, | | | |
| CoreSurfaceAccessorID accessor, | | | |
| CoreSurfaceAccessFlags access, | | | |
| CoreSurfaceBufferLock *ret_lock | | | |
| ); | | | |
| | | | |
| virtual DFBResult UnlockBuffer( | | | |
| CoreSurfaceBufferLock *lock | | | |
| ); | | | |
| | | | |
| virtual DFBResult Flip( | | virtual DFBResult Flip( | |
| bool swap | | bool swap | |
| ); | | ); | |
| | | | |
|
| | | virtual DFBResult GetPalette( | |
| | | CorePalette **ret_palette | |
| | | ); | |
| | | | |
| virtual DFBResult SetPalette( | | virtual DFBResult SetPalette( | |
| CorePalette *palette | | CorePalette *palette | |
| ); | | ); | |
| | | | |
|
| | | virtual DFBResult PreLockBuffer( | |
| | | u32 buffer_index | |
| | | , | |
| | | CoreSurfaceAccessorID accessor, | |
| | | CoreSurfaceAccessFlags access, | |
| | | u32 *ret_allocati | |
| | | on_index | |
| | | ); | |
| | | | |
| | | virtual DFBResult PreReadBuffer( | |
| | | u32 buffer_index | |
| | | , | |
| | | const DFBRectangle *rect, | |
| | | u32 *ret_allocati | |
| | | on_index | |
| | | ); | |
| | | | |
| | | virtual DFBResult PreWriteBuffer( | |
| | | u32 buffer_index | |
| | | , | |
| | | const DFBRectangle *rect, | |
| | | u32 *ret_allocati | |
| | | on_index | |
| | | ); | |
| | | | |
| }; | | }; | |
| | | | |
| class CoreSurfaceDispatch | | class CoreSurfaceDispatch | |
| { | | { | |
| | | | |
| public: | | public: | |
| CoreSurfaceDispatch( CoreDFB *core, ISurface *real ) | | CoreSurfaceDispatch( CoreDFB *core, ISurface *real ) | |
| : | | : | |
| core( core ), | | core( core ), | |
| real( real ) | | real( real ) | |
| | | | |
End of changes. 25 change blocks. |
| 68 lines changed or deleted | | 168 lines changed or added | |
|
| CoreWindow.h | | CoreWindow.h | |
| | | | |
| skipping to change at line 62 | | skipping to change at line 62 | |
| const DFBRegion *update); | | const DFBRegion *update); | |
| | | | |
| DFBResult CoreWindow_Restack( | | DFBResult CoreWindow_Restack( | |
| CoreWindow *obj, | | CoreWindow *obj, | |
| CoreWindow *relative, | | CoreWindow *relative, | |
| int relation); | | int relation); | |
| | | | |
| DFBResult CoreWindow_SetConfig( | | DFBResult CoreWindow_SetConfig( | |
| CoreWindow *obj, | | CoreWindow *obj, | |
| const CoreWindowConfig *config, | | const CoreWindowConfig *config, | |
|
| | | const DFBInputDeviceKeySymbol *keys, | |
| | | u32 num_keys, | |
| | | CoreWindow *parent, | |
| CoreWindowConfigFlags flags); | | CoreWindowConfigFlags flags); | |
| | | | |
| DFBResult CoreWindow_Bind( | | DFBResult CoreWindow_Bind( | |
| CoreWindow *obj, | | CoreWindow *obj, | |
| CoreWindow *source, | | CoreWindow *source, | |
| int x, | | int x, | |
| int y); | | int y); | |
| | | | |
| DFBResult CoreWindow_Unbind( | | DFBResult CoreWindow_Unbind( | |
| CoreWindow *obj, | | CoreWindow *obj, | |
| | | | |
| skipping to change at line 161 | | skipping to change at line 164 | |
| DFBResult CoreWindow_SetKeySelection( | | DFBResult CoreWindow_SetKeySelection( | |
| CoreWindow *obj, | | CoreWindow *obj, | |
| DFBWindowKeySelection selection, | | DFBWindowKeySelection selection, | |
| const DFBInputDeviceKeySymbol *keys, | | const DFBInputDeviceKeySymbol *keys, | |
| u32 num_keys); | | u32 num_keys); | |
| | | | |
| DFBResult CoreWindow_SetRotation( | | DFBResult CoreWindow_SetRotation( | |
| CoreWindow *obj, | | CoreWindow *obj, | |
| int rotation); | | int rotation); | |
| | | | |
|
| | | DFBResult CoreWindow_GetSurface( | |
| | | CoreWindow *obj, | |
| | | CoreSurface **ret_surface) | |
| | | ; | |
| | | | |
| void *CoreWindow_Init_Dispatch( | | void *CoreWindow_Init_Dispatch( | |
| CoreDFB *core, | | CoreDFB *core, | |
| CoreWindow *obj, | | CoreWindow *obj, | |
| FusionCall *call | | FusionCall *call | |
| ); | | ); | |
| | | | |
| void CoreWindow_Deinit_Dispatch( | | void CoreWindow_Deinit_Dispatch( | |
| void *dispatch | | void *dispatch | |
| ); | | ); | |
| | | | |
| | | | |
| skipping to change at line 205 | | skipping to change at line 212 | |
| CoreWindow_ChangeEvents = 16, | | CoreWindow_ChangeEvents = 16, | |
| CoreWindow_ChangeOptions = 17, | | CoreWindow_ChangeOptions = 17, | |
| CoreWindow_SetColor = 18, | | CoreWindow_SetColor = 18, | |
| CoreWindow_SetColorKey = 19, | | CoreWindow_SetColorKey = 19, | |
| CoreWindow_SetOpaque = 20, | | CoreWindow_SetOpaque = 20, | |
| CoreWindow_SetOpacity = 21, | | CoreWindow_SetOpacity = 21, | |
| CoreWindow_SetStacking = 22, | | CoreWindow_SetStacking = 22, | |
| CoreWindow_SetBounds = 23, | | CoreWindow_SetBounds = 23, | |
| CoreWindow_SetKeySelection = 24, | | CoreWindow_SetKeySelection = 24, | |
| CoreWindow_SetRotation = 25, | | CoreWindow_SetRotation = 25, | |
|
| | | CoreWindow_GetSurface = 26, | |
| } CoreWindowCall; | | } CoreWindowCall; | |
| | | | |
| /* | | /* | |
| * CoreWindow_Repaint | | * CoreWindow_Repaint | |
| */ | | */ | |
| typedef struct { | | typedef struct { | |
| DFBRegion left; | | DFBRegion left; | |
| DFBRegion right; | | DFBRegion right; | |
| DFBSurfaceFlipFlags flags; | | DFBSurfaceFlipFlags flags; | |
| } CoreWindowRepaint; | | } CoreWindowRepaint; | |
| | | | |
| skipping to change at line 250 | | skipping to change at line 258 | |
| | | | |
| typedef struct { | | typedef struct { | |
| DFBResult result; | | DFBResult result; | |
| } CoreWindowRestackReturn; | | } CoreWindowRestackReturn; | |
| | | | |
| /* | | /* | |
| * CoreWindow_SetConfig | | * CoreWindow_SetConfig | |
| */ | | */ | |
| typedef struct { | | typedef struct { | |
| CoreWindowConfig config; | | CoreWindowConfig config; | |
|
| | | u32 num_keys; | |
| | | bool parent_set; | |
| | | u32 parent_id; | |
| CoreWindowConfigFlags flags; | | CoreWindowConfigFlags flags; | |
|
| | | bool keys_set; | |
| | | /* 'num_keys' DFBInputDeviceKeySymbol follow (keys) */ | |
| } CoreWindowSetConfig; | | } CoreWindowSetConfig; | |
| | | | |
| typedef struct { | | typedef struct { | |
| DFBResult result; | | DFBResult result; | |
| } CoreWindowSetConfigReturn; | | } CoreWindowSetConfigReturn; | |
| | | | |
| /* | | /* | |
| * CoreWindow_Bind | | * CoreWindow_Bind | |
| */ | | */ | |
| typedef struct { | | typedef struct { | |
| | | | |
| skipping to change at line 500 | | skipping to change at line 513 | |
| * CoreWindow_SetRotation | | * CoreWindow_SetRotation | |
| */ | | */ | |
| typedef struct { | | typedef struct { | |
| int rotation; | | int rotation; | |
| } CoreWindowSetRotation; | | } CoreWindowSetRotation; | |
| | | | |
| typedef struct { | | typedef struct { | |
| DFBResult result; | | DFBResult result; | |
| } CoreWindowSetRotationReturn; | | } CoreWindowSetRotationReturn; | |
| | | | |
|
| | | /* | |
| | | * CoreWindow_GetSurface | |
| | | */ | |
| | | typedef struct { | |
| | | } CoreWindowGetSurface; | |
| | | | |
| | | typedef struct { | |
| | | DFBResult result; | |
| | | u32 surface_id; | |
| | | } CoreWindowGetSurfaceReturn; | |
| | | | |
| class IWindow : public Interface | | class IWindow : public Interface | |
| { | | { | |
| public: | | public: | |
| IWindow( CoreDFB *core ) | | IWindow( CoreDFB *core ) | |
| : | | : | |
| Interface( core ) | | Interface( core ) | |
| { | | { | |
| } | | } | |
| | | | |
| public: | | public: | |
| | | | |
| skipping to change at line 527 | | skipping to change at line 551 | |
| const DFBRegion *update | | const DFBRegion *update | |
| ) = 0; | | ) = 0; | |
| | | | |
| virtual DFBResult Restack( | | virtual DFBResult Restack( | |
| CoreWindow *relative, | | CoreWindow *relative, | |
| int relation | | int relation | |
| ) = 0; | | ) = 0; | |
| | | | |
| virtual DFBResult SetConfig( | | virtual DFBResult SetConfig( | |
| const CoreWindowConfig *config, | | const CoreWindowConfig *config, | |
|
| | | const DFBInputDeviceKeySymbol *keys, | |
| | | u32 num_keys, | |
| | | CoreWindow *parent, | |
| CoreWindowConfigFlags flags | | CoreWindowConfigFlags flags | |
| ) = 0; | | ) = 0; | |
| | | | |
| virtual DFBResult Bind( | | virtual DFBResult Bind( | |
| CoreWindow *source, | | CoreWindow *source, | |
| int x, | | int x, | |
| int y | | int y | |
| ) = 0; | | ) = 0; | |
| | | | |
| virtual DFBResult Unbind( | | virtual DFBResult Unbind( | |
| | | | |
| skipping to change at line 627 | | skipping to change at line 654 | |
| virtual DFBResult SetKeySelection( | | virtual DFBResult SetKeySelection( | |
| DFBWindowKeySelection selection, | | DFBWindowKeySelection selection, | |
| const DFBInputDeviceKeySymbol *keys, | | const DFBInputDeviceKeySymbol *keys, | |
| u32 num_keys | | u32 num_keys | |
| ) = 0; | | ) = 0; | |
| | | | |
| virtual DFBResult SetRotation( | | virtual DFBResult SetRotation( | |
| int rotation | | int rotation | |
| ) = 0; | | ) = 0; | |
| | | | |
|
| | | virtual DFBResult GetSurface( | |
| | | CoreSurface **ret_surface | |
| | | ) = 0; | |
| | | | |
| }; | | }; | |
| | | | |
| class IWindow_Real : public IWindow | | class IWindow_Real : public IWindow | |
| { | | { | |
| private: | | private: | |
| CoreWindow *obj; | | CoreWindow *obj; | |
| | | | |
| public: | | public: | |
| IWindow_Real( CoreDFB *core, CoreWindow *obj ) | | IWindow_Real( CoreDFB *core, CoreWindow *obj ) | |
| : | | : | |
| | | | |
| skipping to change at line 660 | | skipping to change at line 691 | |
| const DFBRegion *update | | const DFBRegion *update | |
| ); | | ); | |
| | | | |
| virtual DFBResult Restack( | | virtual DFBResult Restack( | |
| CoreWindow *relative, | | CoreWindow *relative, | |
| int relation | | int relation | |
| ); | | ); | |
| | | | |
| virtual DFBResult SetConfig( | | virtual DFBResult SetConfig( | |
| const CoreWindowConfig *config, | | const CoreWindowConfig *config, | |
|
| | | const DFBInputDeviceKeySymbol *keys, | |
| | | u32 num_keys, | |
| | | CoreWindow *parent, | |
| CoreWindowConfigFlags flags | | CoreWindowConfigFlags flags | |
| ); | | ); | |
| | | | |
| virtual DFBResult Bind( | | virtual DFBResult Bind( | |
| CoreWindow *source, | | CoreWindow *source, | |
| int x, | | int x, | |
| int y | | int y | |
| ); | | ); | |
| | | | |
| virtual DFBResult Unbind( | | virtual DFBResult Unbind( | |
| | | | |
| skipping to change at line 760 | | skipping to change at line 794 | |
| virtual DFBResult SetKeySelection( | | virtual DFBResult SetKeySelection( | |
| DFBWindowKeySelection selection, | | DFBWindowKeySelection selection, | |
| const DFBInputDeviceKeySymbol *keys, | | const DFBInputDeviceKeySymbol *keys, | |
| u32 num_keys | | u32 num_keys | |
| ); | | ); | |
| | | | |
| virtual DFBResult SetRotation( | | virtual DFBResult SetRotation( | |
| int rotation | | int rotation | |
| ); | | ); | |
| | | | |
|
| | | virtual DFBResult GetSurface( | |
| | | CoreSurface **ret_surface | |
| | | ); | |
| | | | |
| }; | | }; | |
| | | | |
| class IWindow_Requestor : public IWindow | | class IWindow_Requestor : public IWindow | |
| { | | { | |
| private: | | private: | |
| CoreWindow *obj; | | CoreWindow *obj; | |
| | | | |
| public: | | public: | |
| IWindow_Requestor( CoreDFB *core, CoreWindow *obj ) | | IWindow_Requestor( CoreDFB *core, CoreWindow *obj ) | |
| : | | : | |
| | | | |
| skipping to change at line 793 | | skipping to change at line 831 | |
| const DFBRegion *update | | const DFBRegion *update | |
| ); | | ); | |
| | | | |
| virtual DFBResult Restack( | | virtual DFBResult Restack( | |
| CoreWindow *relative, | | CoreWindow *relative, | |
| int relation | | int relation | |
| ); | | ); | |
| | | | |
| virtual DFBResult SetConfig( | | virtual DFBResult SetConfig( | |
| const CoreWindowConfig *config, | | const CoreWindowConfig *config, | |
|
| | | const DFBInputDeviceKeySymbol *keys, | |
| | | u32 num_keys, | |
| | | CoreWindow *parent, | |
| CoreWindowConfigFlags flags | | CoreWindowConfigFlags flags | |
| ); | | ); | |
| | | | |
| virtual DFBResult Bind( | | virtual DFBResult Bind( | |
| CoreWindow *source, | | CoreWindow *source, | |
| int x, | | int x, | |
| int y | | int y | |
| ); | | ); | |
| | | | |
| virtual DFBResult Unbind( | | virtual DFBResult Unbind( | |
| | | | |
| skipping to change at line 893 | | skipping to change at line 934 | |
| virtual DFBResult SetKeySelection( | | virtual DFBResult SetKeySelection( | |
| DFBWindowKeySelection selection, | | DFBWindowKeySelection selection, | |
| const DFBInputDeviceKeySymbol *keys, | | const DFBInputDeviceKeySymbol *keys, | |
| u32 num_keys | | u32 num_keys | |
| ); | | ); | |
| | | | |
| virtual DFBResult SetRotation( | | virtual DFBResult SetRotation( | |
| int rotation | | int rotation | |
| ); | | ); | |
| | | | |
|
| | | virtual DFBResult GetSurface( | |
| | | CoreSurface **ret_surface | |
| | | ); | |
| | | | |
| }; | | }; | |
| | | | |
| class CoreWindowDispatch | | class CoreWindowDispatch | |
| { | | { | |
| | | | |
| public: | | public: | |
| CoreWindowDispatch( CoreDFB *core, IWindow *real ) | | CoreWindowDispatch( CoreDFB *core, IWindow *real ) | |
| : | | : | |
| core( core ), | | core( core ), | |
| real( real ) | | real( real ) | |
| | | | |
End of changes. 12 change blocks. |
| 0 lines changed or deleted | | 46 lines changed or added | |
|
| core.h | | core.h | |
| | | | |
| skipping to change at line 78 | | skipping to change at line 78 | |
| bool emergency ); | | bool emergency ); | |
| | | | |
| void *dfb_core_get_part( CoreDFB *core, | | void *dfb_core_get_part( CoreDFB *core, | |
| DFBCorePartID part_id ); | | DFBCorePartID part_id ); | |
| | | | |
| #define DFB_CORE(core,PART) dfb_core_get_part( core, DFCP_##PART ) | | #define DFB_CORE(core,PART) dfb_core_get_part( core, DFCP_##PART ) | |
| | | | |
| /* | | /* | |
| * Object creation | | * Object creation | |
| */ | | */ | |
|
| CoreLayerContext *dfb_core_create_layer_context( CoreDFB *core ); | | CoreGraphicsState *dfb_core_create_graphics_state( CoreDFB *core ); | |
| CoreLayerRegion *dfb_core_create_layer_region ( CoreDFB *core ); | | CoreLayerContext *dfb_core_create_layer_context ( CoreDFB *core ); | |
| CorePalette *dfb_core_create_palette ( CoreDFB *core ); | | CoreLayerRegion *dfb_core_create_layer_region ( CoreDFB *core ); | |
| CoreSurface *dfb_core_create_surface ( CoreDFB *core ); | | CorePalette *dfb_core_create_palette ( CoreDFB *core ); | |
| CoreWindow *dfb_core_create_window ( CoreDFB *core ); | | CoreSurface *dfb_core_create_surface ( CoreDFB *core ); | |
| | | CoreWindow *dfb_core_create_window ( CoreDFB *core ); | |
| DFBResult dfb_core_get_layer_context ( CoreDFB *core, | | | |
| u32 object_ | | | |
| id, | | | |
| CoreLayerContext **ret_con | | | |
| text ); | | | |
| | | | |
|
| DFBResult dfb_core_get_layer_region ( CoreDFB *core, | | DFBResult dfb_core_get_graphics_state ( CoreDFB *core | |
| u32 object_ | | , | |
| id, | | u32 obje | |
| CoreLayerRegion **ret_reg | | ct_id, | |
| ion ); | | CoreGraphicsState **ret_ | |
| | | state ); | |
| | | | |
|
| DFBResult dfb_core_get_palette ( CoreDFB *core, | | DFBResult dfb_core_get_layer_context ( CoreDFB *core | |
| u32 object_id, | | , | |
| CorePalette **ret_palette | | u32 obje | |
| ); | | ct_id, | |
| | | CoreLayerContext **ret_ | |
| | | context ); | |
| | | | |
|
| DFBResult dfb_core_get_surface ( CoreDFB *core, | | DFBResult dfb_core_get_layer_region ( CoreDFB *core | |
| u32 object_id, | | , | |
| CoreSurface **ret_surface | | u32 obje | |
| ); | | ct_id, | |
| | | CoreLayerRegion **ret_ | |
| | | region ); | |
| | | | |
|
| DFBResult dfb_core_get_window ( CoreDFB *core, | | DFBResult dfb_core_get_palette ( CoreDFB *core | |
| u32 object_id, | | , | |
| CoreWindow **ret_window ); | | u32 obje | |
| | | ct_id, | |
| | | CorePalette **ret_ | |
| | | palette ); | |
| | | | |
|
| DFBResult dfb_core_create_graphics_state( CoreDFB *core, | | DFBResult dfb_core_get_surface ( CoreDFB *core | |
| CoreGraphicsState **ret_s | | , | |
| tate ); | | u32 obje | |
| | | ct_id, | |
| | | CoreSurface **ret_ | |
| | | surface ); | |
| | | | |
|
| DFBResult dfb_core_get_graphics_state ( CoreDFB *core, | | DFBResult dfb_core_get_window ( CoreDFB *core | |
| u32 objec | | , | |
| t_id, | | u32 obje | |
| CoreGraphicsState **ret_s | | ct_id, | |
| tate ); | | CoreWindow **ret_ | |
| | | window ); | |
| | | | |
| /* | | /* | |
| * Debug | | * Debug | |
| */ | | */ | |
| DirectResult dfb_core_enum_surfaces ( CoreDFB *core, | | DirectResult dfb_core_enum_surfaces ( CoreDFB *core, | |
| FusionObjectCallback callback, | | FusionObjectCallback callback, | |
| void *ctx ); | | void *ctx ); | |
| DirectResult dfb_core_enum_layer_contexts( CoreDFB *core, | | DirectResult dfb_core_enum_layer_contexts( CoreDFB *core, | |
| FusionObjectCallback callback, | | FusionObjectCallback callback, | |
| void *ctx ); | | void *ctx ); | |
| | | | |
| skipping to change at line 190 | | skipping to change at line 188 | |
| CoreCleanup *cleanup ); | | CoreCleanup *cleanup ); | |
| | | | |
| DFBFontManager *dfb_core_font_manager( CoreDFB *core ); | | DFBFontManager *dfb_core_font_manager( CoreDFB *core ); | |
| | | | |
| struct __DFB_CoreDFBShared { | | struct __DFB_CoreDFBShared { | |
| int magic; | | int magic; | |
| | | | |
| FusionSkirmish lock; | | FusionSkirmish lock; | |
| bool active; | | bool active; | |
| | | | |
|
| | | FusionObjectPool *graphics_state_pool; | |
| FusionObjectPool *layer_context_pool; | | FusionObjectPool *layer_context_pool; | |
| FusionObjectPool *layer_region_pool; | | FusionObjectPool *layer_region_pool; | |
| FusionObjectPool *palette_pool; | | FusionObjectPool *palette_pool; | |
|
| FusionObjectPool *state_pool; | | | |
| FusionObjectPool *surface_pool; | | FusionObjectPool *surface_pool; | |
| FusionObjectPool *window_pool; | | FusionObjectPool *window_pool; | |
| | | | |
| FusionSHMPoolShared *shmpool; | | FusionSHMPoolShared *shmpool; | |
| FusionSHMPoolShared *shmpool_data; /* for raw data, e.g. surface buffe
rs */ | | FusionSHMPoolShared *shmpool_data; /* for raw data, e.g. surface buffe
rs */ | |
| | | | |
| FusionCall call; | | FusionCall call; | |
| }; | | }; | |
| | | | |
| struct __DFB_CoreDFB { | | struct __DFB_CoreDFB { | |
| | | | |
End of changes. 9 change blocks. |
| 36 lines changed or deleted | | 43 lines changed or added | |
|