Offers platform specific initialization function platform_t.init_platform.
PlatformInit | Offers platform specific initialization function platform_t.init_platform. |
Copyright | This program is free software. |
Files | |
C-kern/ | Header file PlatformInit. |
C-kern/ | Implementation file PlatformInit Linux. |
Types | |
mainthread_f | Signature of main thread is the same as function main. |
Functions | |
test | |
unittest_platform_init | Test <init_platform> functionality. |
platform_t | Dummy type which represents the operating system platform. |
lifetime | |
init_platform | Initialize system context and calls main_thread. |
This program is free software. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
© 2013 Jörg Seebohn
Header file PlatformInit.
Implementation file PlatformInit Linux.
test | |
unittest_platform_init | Test <init_platform> functionality. |
struct platform_t
Dummy type which represents the operating system platform.
lifetime | |
init_platform | Initialize system context and calls main_thread. |
int init_platform( mainthread_f main_thread, void * user )
Initialize system context and calls main_thread. If the system context could be initialized and the main_thread was called the return value is the value returned from main_thread. If an error occurs during initialization only an error code (value > 0) is returned, main_thread is not called.
You have to call this function before calling maincontext_t.init_maincontext.
This function is implemented in a system specific way.
Initialize system context and calls main_thread.
int init_platform( mainthread_f main_thread, void * user )
Signature of main thread is the same as function main.
typedef int ( * mainthread_f ) (void * user)
Test init_platform functionality.
int unittest_platform_init( void )
Dummy type which represents the operating system platform.
struct platform_t
Initializes global program context.
int init_maincontext( const maincontext_e context_type, int argc, const char ** argv )