epoc-event-internal.h

Go to the documentation of this file.
00001 // What we have here is C wrappers for Symbian APIs related to active
00002 // objects and event handling and such things.
00003 
00004 #ifndef __epoc_event_internal_h__
00005 #define __epoc_event_internal_h__
00006 
00007 #ifdef __EPOC32__
00008 
00009 #include "common/evq_event.h" // AoLoop
00010 #include "common/utilities.h"
00011 
00012 // This installs an active scheduler for the calling thread. The
00013 // active scheduler may either be the default one, or a customized
00014 // one, depending on the compile-time settings for the application.
00015 EXTERN_C int AoScheduler_install(MAYBE_ERROR_SOLE_PARAM);
00016 
00017 EXTERN_C void AoScheduler_uninstall();
00018 
00019 // This replaces the current active scheduler with a custom one, if
00020 // the application calls for the use of a custom active scheduler.
00021 // Otherwise it does nothing.
00022 // 
00023 // Note that the standard, default active scheduler does a
00024 // E32USER-CBase panic if there is an unhandled leave in a RunL.
00025 EXTERN_C int AoScheduler_replace(MAYBE_ERROR_SOLE_PARAM);
00026 
00027 EXTERN_C AoLoop* AoLoop_new();
00028 EXTERN_C void AoLoop_delete(AoLoop*);
00029 EXTERN_C void AoLoop_start(AoLoop*);
00030 EXTERN_C void AoLoop_stop(AoLoop*);
00031 
00032 #endif // __EPOC32__
00033 
00034 #endif /* __epoc_event_internal_h__ */
00035 
00036 /**
00037 
00038 epoc-event-internal.h
00039 
00040 Copyright 2009 Helsinki Institute for Information Technology (HIIT)
00041 and the authors. All rights reserved.
00042 
00043 Authors: Tero Hasu <tero.hasu@hut.fi>
00044 
00045 Permission is hereby granted, free of charge, to any person
00046 obtaining a copy of this software and associated documentation files
00047 (the "Software"), to deal in the Software without restriction,
00048 including without limitation the rights to use, copy, modify, merge,
00049 publish, distribute, sublicense, and/or sell copies of the Software,
00050 and to permit persons to whom the Software is furnished to do so,
00051 subject to the following conditions:
00052 
00053 The above copyright notice and this permission notice shall be
00054 included in all copies or substantial portions of the Software.
00055 
00056 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
00057 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
00058 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
00059 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
00060 BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
00061 ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
00062 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
00063 SOFTWARE.
00064 
00065  **/

ContextLogger2—ContextLogger2 Logger Daemon Internals—Generated on Mon May 2 13:49:52 2011 by Doxygen 1.6.1