CHDK_DE Vorschauversion  Trunk Rev. 6014
 Alle Datenstrukturen Dateien Funktionen Variablen Typdefinitionen Aufzählungen Aufzählungswerte Makrodefinitionen
fw_functions.h-Dateireferenz
#include "fw_types.h"
#include "ptp_handlers.h"
+ Include-Abhängigkeitsdiagramm für fw_functions.h:

gehe zum Quellcode dieser Datei

Funktionen

__stdcall int GetSystemTime (void)
 
__stdcall int GetZoomLensCurrentPosition (void)
 
__stdcall int GetZoomLensCurrentPoint (void)
 
__stdcall int MoveZoomLensWithPoint (short *pos)
 
__stdcall int SetZoomActuatorSpeedPercent (short *perc)
 
__stdcall int GetFocusLensCurrentPosition (void)
 
__stdcall int GetFocusLensSubjectDistance (void)
 
__stdcall int GetFocusLensSubjectDistanceFromLens (void)
 
__stdcall void MoveFocusLensToDistance (short *dist)
 
__stdcall int MoveIrisWithAv (short *)
 
__stdcall void PutInNdFilter (void)
 
__stdcall void PutOutNdFilter (void)
 
__stdcall short get_nd_value (void)
 
__stdcall short get_current_nd_value (void)
 
__stdcall int GetCurrentShutterSpeed (void)
 
__stdcall int GetCurrentAvValue (void)
 
__stdcall int get_current_deltasv (void)
 
__stdcall int GetCurrentDriveBaseSvValue (void)
 
__stdcall short GetUsableMinAv (void)
 
__stdcall short GetUsableMaxAv (void)
 
__stdcall int GetCurrentTargetDistance (void)
 
__stdcall int GetPropertyCase (int opt_id, void *buf, int bufsize)
 
__stdcall int SetPropertyCase (int opt_id, void *buf, int bufsize)
 
__stdcall short PTM_GetCurrentItem (int id)
 
__stdcall int IsStrobeChargeCompleted (void)
 
__stdcall int VbattGet (void)
 
__stdcall int GetBatteryTemperature (void)
 
__stdcall int GetCCDTemperature (void)
 
__stdcall int GetOpticalTemperature (void)
 
__stdcall int GetAdChValue (int *)
 
__stdcall void PT_PlaySound (short, void *, int unk)
 
__stdcall void RefreshPhysicalScreen (int f)
 
__stdcall void Unmount_FileSystem (void)
 
__stdcall void Mount_FileSystem (void)
 
__stdcall void SleepTask (int msec)
 
__stdcall int CreateTask (const char *name, int prio, int stack_size, void *entry, int parm)
 
__stdcall void ExitTask (void)
 
__stdcall int taskNameToId (char *taskName)
 
__stdcall const char * taskName (int taskID)
 
__stdcall int taskIdListGet (int *idlist, int max)
 
__stdcall void taskSuspend (int taskId)
 
__stdcall void taskResume (int taskId)
 
__stdcall int errnoOfTaskGet (int tid)
 
__stdcall int SetEventFlag (int flag, int what)
 
__stdcall int CheckAnyEventFlag (int flag, int mask, int *res)
 
__stdcall int GetEventFlagValue (int flag, int *res)
 
__stdcall int ReceiveMessageQueue (int msgq, int *dst, int unk1)
 
__stdcall int GetParameterData (int id, void *buf, int size)
 
__stdcall int SetParameterData (int id, void *buf, int size)
 
__stdcall void MakeSDCardBootable (int driveno)
 
__stdcall void UpdateMBROnFlash (int driveno, int offset, char *str)
 
__stdcall int creat (const char *name, int flags)
 
__stdcall int open (const char *name, int flags, int mode)
 
__stdcall int close (int fd)
 
__stdcall int write (int fd, const void *buffer, int nbytes)
 
__stdcall int read (int fd, void *buffer, int nbytes)
 
__stdcall int lseek (int fd, int offset, int whence)
 
__stdcall int mkdir (const char *dirname)
 
__stdcall int Open (const char *name, int flags, int mode)
 
__stdcall int Close (int fd)
 
__stdcall int Write (int fd, const void *buffer, int nbytes)
 
__stdcall int Read (int fd, void *buffer, int nbytes)
 
__stdcall int Remove (const char *name)
 
__stdcall FILEFopen_Fut (const char *filename, const char *mode)
 
__stdcall int Fclose_Fut (FILE *f)
 
__stdcall int Fread_Fut (void *buf, int elsize, int count, FILE *f)
 
__stdcall int Fwrite_Fut (const void *buf, int elsize, int count, FILE *f)
 
__stdcall int Fseek_Fut (FILE *f, int offset, int whence)
 
__stdcall int Fflush_Fut (FILE *f)
 
__stdcall int Feof_Fut (FILE *f)
 
__stdcall char * Fgets_Fut (char *buf, int n, FILE *f)
 
__stdcall int RenameFile_Fut (const char *oldname, const char *newname)
 
__stdcall int DeleteFile_Fut (const char *name)
 
__stdcall int MakeDirectory_Fut (const char *name, int unk)
 
__stdcall int DeleteDirectory_Fut (const char *name)
 
__stdcall int isdigit (int c)
 
__stdcall int isspace (int c)
 
__stdcall int isalpha (int c)
 
__stdcall int isupper (int c)
 
__stdcall int islower (int c)
 
__stdcall int ispunct (int c)
 
__stdcall int isxdigit (int c)
 
__stdcall int strlen (const char *s)
 
__stdcall int strcmp (const char *s1, const char *s2)
 
__stdcall int strncmp (const char *s1, const char *s2, int n)
 
__stdcall char * strchr (const char *s, int c)
 
__stdcall char * strcpy (char *dest, const char *src)
 
__stdcall char * strncpy (char *dest, const char *src, int n)
 
__stdcall char * strcat (char *dest, const char *app)
 
__stdcall char * strrchr (const char *s, int c)
 
__stdcall char * strpbrk (const char *s, const char *accept)
 
__stdcall int strtol (const char *nptr, char **endptr, int base)
 
__stdcall unsigned strtoul (const char *nptr, char **endptr, int base)
 
__stdcall int strtolx (const char *nptr, char **endptr, int base, int mode)
 
__stdcall int tolower (int c)
 
__stdcall int toupper (int c)
 
__stdcall int vsprintf (char *buf, const char *fmt, __builtin_va_list va_list)
 
__stdcall void * malloc (int size)
 
__stdcall void free (void *p)
 
__stdcall void * AllocateUncacheableMemory (int size)
 
__stdcall void FreeUncacheableMemory (void *p)
 
__stdcall void * memchr (const void *s, int c, int n)
 
__stdcall void * memcpy (void *dest, const void *src, int n)
 
__stdcall void * memset (void *s, int c, int n)
 
__stdcall int memcmp (const void *s1, const void *s2, int n)
 
__stdcall void qsort (void *_base, int _nelem, int _size, int(*_cmp)(const void *_e1, const void *_e2))
 
__stdcall int taskLock (void)
 
__stdcall int taskUnlock (void)
 
__stdcall int taskCreateHookAdd (void *createHook)
 
__stdcall int taskDeleteHookAdd (void *deleteHook)
 
__stdcall int iosDevAdd (void *, void *, int)
 
__stdcall int iosDevDelete (void *)
 
__stdcall int iosDrvInstall (void *, void *, void *, void *, void *, void *, void *)
 
__stdcall int TakeSemaphore (int sem, int timeout)
 
__stdcall void GiveSemaphore (int sem)
 
__stdcall int kbd_p1_f (void)
 
__stdcall void kbd_p2_f (void)
 
__stdcall void kbd_pwr_on (void)
 
__stdcall void kbd_pwr_off (void)
 
__stdcall void kbd_read_keys_r2 (int *p)
 
__stdcall void kbd_fetch_data (int *dst)
 
__stdcall void UniqueLedOn (void *addr, int brightness)
 
__stdcall void UniqueLedOff (void *addr)
 
__stdcall int PostLEDMessage (struct led_control *)
 
__stdcall int LEDDrive (int led, int action)
 
__stdcall int LockMainPower (void)
 
__stdcall int UnlockMainPower (void)
 
__stdcall void SetAutoShutdownTime (int t)
 
__stdcall int PostLogicalEventForNotPowerType (int event, int unk)
 
__stdcall int PostLogicalEventToUI (int event, int unk)
 
__stdcall void SetLogicalEventActive (unsigned event, unsigned state)
 
__stdcall void SetScriptMode (unsigned mode)
 
__stdcall int rand (void)
 
__stdcall void srand (unsigned int seed)
 
__stdcall double _log (double x)
 
__stdcall double _log10 (double x)
 
__stdcall double _pow (double x, double y)
 
__stdcall double _sqrt (double x)
 
__stdcall int utime (const char *file, void *newTimes)
 
__stdcall unsigned int time (unsigned int *timer)
 
__stdcall void * localtime (const unsigned int *tod)
 
__stdcall void * LocalTime (const unsigned int *tod, void *t_m)
 
__stdcall int strftime (char *s, unsigned int maxsize, const char *format, const void *timp)
 
__stdcall int mktime (void *timp)
 
__stdcall int mktime_ext (void *tim_extp)
 
__stdcall int SetDate (void *setdate_p)
 
__stdcall int SetFileTimeStamp (int fd, int time1, int time2)
 
__stdcall void SetFileAttributes (int fd, int attr)
 
__stdcall int stat (const char *name, __stat *pStat)
 
__stdcall unsigned int GetDrive_ClusterSize (int drive)
 
__stdcall unsigned int GetDrive_TotalClusters (int drive)
 
__stdcall unsigned int GetDrive_FreeClusters (int drive)
 
__stdcall int WriteSDCard (unsigned int drive, unsigned int start_sect, unsigned int num_sect, void *buf)
 
__stdcall void UnsetZoomForMovie (void)
 
__stdcall void TurnOffMic (void)
 
__stdcall void TurnOnMic (void)
 
__stdcall void MakeAFScan (int *, int)
 
__stdcall void ExpCtrlTool_StartContiAE (int, int)
 
__stdcall void ExpCtrlTool_StopContiAE (int, int)
 
__stdcall short SetAE_ShutterSpeed (short *tv)
 
__stdcall void EnterToCompensationEVF (void)
 
__stdcall void ExitFromCompensationEVF (void)
 
__stdcall void TurnOnBackLight (void)
 
__stdcall void TurnOffBackLight (void)
 
__stdcall void TurnOnDisplay (void)
 
__stdcall void TurnOffDisplay (void)
 
__stdcall void DoAELock (void)
 
__stdcall void UnlockAE (void)
 
__stdcall void DoAFLock (void)
 
__stdcall void UnlockAF (void)
 
__stdcall void MFOn (void)
 
__stdcall void MFOff (void)
 
__stdcall void PT_MFOn (void)
 
__stdcall void PT_MFOff (void)
 
__stdcall void SS_MFOn (void)
 
__stdcall void SS_MFOff (void)
 
__stdcall int EngDrvRead (int gpio_reg)
 
__stdcall int apex2us (int)
 
__stdcall void ScreenLock (void)
 
__stdcall void SetCurrentCaptureModeType (void)
 
__stdcall unsigned ExecuteEventProcedure (const char *name,...)
 
__stdcall void Restart (unsigned option)
 
__stdcall void reboot_fw_update (const char *bootfile)
 
__stdcall int add_ptp_handler (int opcode, ptp_handler handler, int unk)
 
__stdcall void set_control_event (int)
 
__stdcall void PB2Rec (void)
 
__stdcall void Rec2PB (void)
 
__stdcall int get_ptp_buf_size (int slot)
 
__stdcall char * get_ptp_file_buf (void)
 
__stdcall void * exmem_alloc (unsigned int pool_id, unsigned int size, int unk, int unk2)
 
__stdcall void * exmem_ualloc (unsigned int type, unsigned int size, void *allocinf)
 
__stdcall void exmem_ufree (unsigned int type)
 
__stdcall int memPartFindMax (int mempart_id)
 
__stdcall int memPartInfoGet (int mempart_id, int *info)
 
__stdcall void GPS_UpdateData (void)
 
__stdcall void PT_MoveDigitalZoomToWide (void)
 
__stdcall void MoveOpticalZoomAt (long pt, int speed)
 
__stdcall int closedir (void *d)
 
__stdcall int get_fstype (int)
 
__stdcall void * OpenFastDir (const char *name)
 
__stdcall int ReadFastDir (void *d, void *dd)
 
__stdcall void * opendir (const char *name)
 
__stdcall void * readdir (void *d)
 
__stdcall void GetMemInfo (int *)
 
__stdcall int SetHPTimerAfterNow (int delay, int(*good_cb)(int, int), int(*bad_cb)(int, int), int)
 
__stdcall int CancelHPTimer (int)
 
__stdcall void EnableHDMIPower (void)
 
__stdcall void DisableISDriveError (void)
 
__stdcall void DebugAssert (char *file, int line)
 
__stdcall int CreateBinarySemaphore (char *name, int v)
 
__stdcall void SetVideoOutType (int vt)
 
__stdcall int GetVideoOutType (void)
 
__stdcall void LogCameraEvent (int level, const char *fmt,...)
 
__stdcall void transfer_src_overlay (int which)
 
__stdcall int GetVRAMHPixelsSize (void)
 
__stdcall int GetVRAMVPixelsSize (void)
 
__stdcall void GetKbdState (int *phsw)
 
__stdcall int get_dial_hw_position (int dial)
 
__stdcall void GetImageFolder (char *out, int filecount, int flags, int time)
 
__stdcall void * wrapped_malloc (int size)
 
__stdcall void * malloc_strictly (int size)
 
__stdcall int TakeSemaphoreStrictly (int sem, int timeout, const char *file, int line)
 
__stdcall int DeleteSemaphore (int sem)
 
__stdcall int CreateTaskStrictly (const char *name, int prio, int stack_size, int(*entry)(), int parm)
 
__stdcall int CreateEventFlag (const char *name, int v)
 
__stdcall int CreateEventFlagStrictly (const char *name, int v)
 
__stdcall int CreateBinarySemaphoreStrictly (const char *name, int v)
 
__stdcall int CreateCountingSemaphore (const char *name, int v)
 
__stdcall int CreateCountingSemaphoreStrictly (const char *name, int v)
 
__stdcall int createsemaphore_low (int v, int type, const char *name)
 
__stdcall int DeleteMessageQueue (int msgq)
 
__stdcall void dry_memcpy (void *dst, void *src, int n)
 
__stdcall void bzero (void *p, int n)
 
__stdcall void memset32 (void *p, int n, int v)
 
__stdcall char * sprintf_FW (char *p, const char *fmt,...)
 
__stdcall int takesemaphore_low (int sem, int *t)
 
__stdcall int givesemaphore_low (int sem)
 
__stdcall void DisableDispatch (void)
 
__stdcall void EnableDispatch (void)
 
__stdcall int GetSemaphoreValue (int sem, int *p)
 
__stdcall int ClearEventFlag (int flag, int what)
 
__stdcall int TryTakeSemaphore (int sem)
 
__stdcall int WaitForAnyEventFlag (int flag, int what, int timeout)
 
__stdcall int ExportToEventProcedure_FW (const char *name, int(*func)())
 
__stdcall int RegisterEventProcedure_FW (const char *name, int(*func)())
 
__stdcall int RegisterEventProcedure_alt1 (const char *name, int(*func)())
 
__stdcall int RegisterEventProcedure_alt2 (const char *name, int(*func)())
 
__stdcall int RegisterEventProcTable (const eventproc_table_entry *defs)
 
__stdcall int RegisterEventProcTable_alt (const eventproc_table_entry *defs)
 
__stdcall unsigned ExecuteEventProcedure_FW (const char *name,...)
 
__stdcall int UnRegisterEventProcedure (const char *name)
 
__stdcall int CreateTask_low (int(*entry)(), int parm, int unk1, int stack_size, int prio, int unk2, const char *name)
 
__stdcall int DeleteEventFlag (int flag)
 
__stdcall int CheckAllEventFlag (int flag, int mask, int *res)
 
__stdcall int WaitForAllEventFlag (int flag, int what, int timeout)
 
__stdcall int RegisterInterruptHandler (const char *name, int int_num, int(*int_handler)(), int unk)
 
__stdcall int CreateMessageQueue (const char *name, int unk)
 
__stdcall int CreateMessageQueueStrictly (const char *name, int unk)
 
__stdcall int TryReceiveMessageQueue (int msgq, int *dst)
 
__stdcall int PostMessageQueue (int msgq, int val, int timeout)
 
__stdcall int TryPostMessageQueue (int msgq, int val)
 
__stdcall int GetNumberOfPostedMessages (int msgq, int *res)
 
__stdcall FILEfopen_low (const char *filename, const char *mode)
 
__stdcall int fclose_low (FILE *f)
 
__stdcall int fread_low (void *buf, int elsize, int count, FILE *f)
 
__stdcall int fwrite_low (const void *buf, int elsize, int count, FILE *f)
 
__stdcall int fseek_low (FILE *f, int offset, int whence)
 
__stdcall int fflush_low (FILE *f)
 
__stdcall int feof_low (FILE *f)
 
__stdcall char * fgets_low (char *buf, int n, FILE *f)
 
__stdcall int fut_prepare (const char *name, int unk)
 
__stdcall int fut_finish (int unk)
 
__stdcall int fut_flush (FILE *f)
 
__stdcall void set_assert_handler (void(*assert_handler)())
 
__stdcall void set_exception_handler (void(*exception_handler)())
 
__stdcall void set_panic_handler (void(*panic_handler)())
 
__stdcall int * get_self_task_errno_pointer (void)
 
__stdcall int get_self_task_id (void)
 
__stdcall int get_task_properties (int task_id, void *task_props)
 
__stdcall void dry_error_printf (const char *fmt,...)
 
__stdcall int CreateTask_alt (const char *name, int prio, int stack_size, void *entry, int parm, int core)
 
__stdcall int CreateTaskStrictly_alt (const char *name, int prio, int stack_size, int(*entry)(), int parm, int core)
 
__stdcall int is_movie_recording (void)
 
__stdcall int _GetSystemTime (int *t)
 
__stdcall unsigned GetSRAndDisableInterrupt (void)
 
__stdcall void SetSR (unsigned sr_int_bit)
 
__stdcall int cache_flush_range (int is_data, void *addr, unsigned size)
 
__stdcall void dcache_flush_range (void *addr, unsigned size)
 
__stdcall void dcache_clean_range (void *addr, unsigned size)
 
__stdcall void icache_flush_range (void *addr, unsigned size)
 
__stdcall void dcache_clean_flush_and_disable (void)
 
__stdcall void dcache_flush_and_enable (void)
 
__stdcall void data_synchronization_barrier (void)
 
__stdcall void * heap_alloc (void *heap, unsigned size)
 
__stdcall void heap_free (void *heap, void *p)
 
__stdcall mzrm_msgmzrm_createmsg (mzrm_context *ctx, int unk, int msg_type, int payload_size)
 
__stdcall int mzrm_sendmsg (mzrm_context *ctx, mzrm_msg *msg)
 
__stdcall void GraphicSystemCoreFinish (void)
 
__stdcall int GraphicSystemCoreFinish_helper (void)
 
__stdcall void zicokick_copy (void *dst, void *src, unsigned size)
 
__stdcall void zicokick_start (void)
 
__stdcall void * umalloc_strictly (unsigned size)
 
__stdcall void dry_memset (void *dst, unsigned n, int c)
 
__stdcall void dry_memzero (void *dst, unsigned n)
 
__stdcall void dry_memcpy_bytes (void *dst, void *src, unsigned n)
 
__stdcall void dry_memmove_bytes (void *dst, void *src, unsigned n)
 
__stdcall int GetRomID (void *adr, int unk)
 
__stdcall int init_task_error (const char *msg)
 
__stdcall int dry_panic (int module, int panic_code)
 
__stdcall int dry_panic_low (int module, int panic_code)
 
__stdcall void dry_con_printf (const char *fmt,...)
 
__stdcall int AcquireRecursiveLock (int lock, int timeout)
 
__stdcall int AcquireRecursiveLockStrictly (int lock, int timeout, const char *file, int line)
 
__stdcall int strstr (const char *s1, const char *s2)
 
__stdcall void cameracon_set_state (int state)
 
__stdcall int cameracon_get_state (void)
 
__stdcall int IsControlEventActive_FW (int event)
 
__stdcall controller_tCreateController_FW (controller_fn *fn, void *controller_data)
 
__stdcall int DeleteController_FW (controller_t *controller)
 
__stdcall int MoveControllerToTopOfZOrder_FW (controller_t *controller)
 
__stdcall int CtrlMan_ChangeZOrder_FW (controller_t *controller, int order)
 
__stdcall controller_tGetSelfControllerHandle_FW (void)
 
__stdcall int IsWirelessConnect (void)
 
__stdcall void * ui_malloc (unsigned size)
 
__stdcall void * ui_malloc_default (unsigned size)
 
__stdcall void ui_free (void *p)
 
__stdcall void ui_free_default (void *p)
 
__stdcall void * pvm_malloc (void *pool, unsigned size)
 
__stdcall void pvm_free (void *pool, void *p)
 
__stdcall void pvm_get_largest_free_block_size_ptr (void *pool, unsigned *free_size)
 
__stdcall int pvm_get_largest_free_block_size (void *pool)
 
__stdcall void * pvm_init_pool (void *mem, unsigned size)
 
__stdcall PTM_RestoreUIProperty_FW (int id, void *buf, int size)
 

Variablen

__stdcall int some_flag_for_af_scan
 
__stdcall int parameter_for_af_scan
 

Dokumentation der Funktionen

__stdcall int _GetSystemTime ( int *  t)
__stdcall double _log ( double  x)
__stdcall double _log10 ( double  x)
__stdcall double _pow ( double  x,
double  y 
)
__stdcall double _sqrt ( double  x)
__stdcall int AcquireRecursiveLock ( int  lock,
int  timeout 
)
__stdcall int AcquireRecursiveLockStrictly ( int  lock,
int  timeout,
const char *  file,
int  line 
)
__stdcall int add_ptp_handler ( int  opcode,
ptp_handler  handler,
int  unk 
)

Definiert in Zeile 1694 der Datei wrappers.c.

1695 {
1696 #ifdef CAM_CHDK_PTP
1697  return _add_ptp_handler(opcode,handler,unknown);
1698 #else
1699  return 0;
1700 #endif
1701 }
__stdcall void* AllocateUncacheableMemory ( int  size)
__stdcall int apex2us ( int  )

Definiert in Zeile 1589 der Datei wrappers.c.

1589  {
1590 #if CAM_EXT_TV_RANGE
1591 /*
1592  Extended Tv, by barberofcivil, http://chdk.setepontos.com/index.php/topic,4392.0.html
1593  Explanation by reyalP:
1594  In every port, the original shutter overrides (as opposed to super long exposure) worked by
1595  setting the propcase values at some point after auto-exposure has happened (except in manual
1596  modes, where the manual control propcases may be used instead). The Canon code previously took
1597  these values unchanged for short exposures. In newer cameras, like on the SX10 / SD980, the value
1598  is changed, apparently some time after it has been retrieved from the propcase. We know this is
1599  the case, because the propcase value itself doesn't get clamped to the allowed range (if it did,
1600  barberofcivil's code wouldn't work).
1601 */
1602  short tv;
1603  tv = shooting_get_tv96();
1604  if (tv<-576 || tv!=apex_tv) return 1000000.0*pow(2.0, -tv/96.0);
1605  else return _apex2us(apex_tv);
1606 #else
1607  return 0;
1608 #endif
1609 }
__stdcall void bzero ( void *  p,
int  n 
)
__stdcall int cache_flush_range ( int  is_data,
void *  addr,
unsigned  size 
)
__stdcall int cameracon_get_state ( void  )
__stdcall void cameracon_set_state ( int  state)
__stdcall int CancelHPTimer ( int  )

Definiert in Zeile 1972 der Datei wrappers.c.

1973 {
1974  return _CancelHPTimer(handle);
1975 }
__stdcall int CheckAllEventFlag ( int  flag,
int  mask,
int *  res 
)
__stdcall int CheckAnyEventFlag ( int  flag,
int  mask,
int *  res 
)
__stdcall int ClearEventFlag ( int  flag,
int  what 
)
__stdcall int close ( int  fd)

Definiert in Zeile 475 der Datei wrappers.c.

476 {
477 #if defined(OPT_FILEIO_STATS)
478  camera_info.fileio_stats.close_count++;
479 #endif
480  if (fd == -1)
481  {
482 #if defined(OPT_FILEIO_STATS)
483  camera_info.fileio_stats.close_badfile_count++;
484 #endif
485  return -1;
486  }
487  int haveSemaphore = takeFileIOSemaphore();
488  if (!haveSemaphore)
489 #if defined(CAM_IS_VID_REC_WORKS)
490  if (!conf.allow_unsafe_io)
491 #endif
492  return -1;
493  int r = _Close(fd);
494  if (haveSemaphore)
495  _GiveSemaphore(fileio_semaphore);
496 #if defined(OPT_FILEIO_STATS)
497  if (r == -1)
498  camera_info.fileio_stats.close_fail_count++;
499 #endif
500  return r;
501 }
__stdcall int Close ( int  fd)
__stdcall int closedir ( void *  d)
__stdcall int creat ( const char *  name,
int  flags 
)
__stdcall int CreateBinarySemaphore ( char *  name,
int  v 
)

Definiert in Zeile 2026 der Datei wrappers.c.

2027 {
2028  extern int _CreateBinarySemaphore(char*, int);
2029  return _CreateBinarySemaphore(name, init);
2030 }
__stdcall int CreateBinarySemaphoreStrictly ( const char *  name,
int  v 
)
__stdcall controller_t* CreateController_FW ( controller_fn fn,
void *  controller_data 
)
__stdcall int CreateCountingSemaphore ( const char *  name,
int  v 
)
__stdcall int CreateCountingSemaphoreStrictly ( const char *  name,
int  v 
)
__stdcall int CreateEventFlag ( const char *  name,
int  v 
)
__stdcall int CreateEventFlagStrictly ( const char *  name,
int  v 
)
__stdcall int CreateMessageQueue ( const char *  name,
int  unk 
)
__stdcall int CreateMessageQueueStrictly ( const char *  name,
int  unk 
)
__stdcall int createsemaphore_low ( int  v,
int  type,
const char *  name 
)
__stdcall int CreateTask ( const char *  name,
int  prio,
int  stack_size,
void *  entry,
int  parm 
)
__stdcall int CreateTask_alt ( const char *  name,
int  prio,
int  stack_size,
void *  entry,
int  parm,
int  core 
)
__stdcall int CreateTask_low ( int(*)()  entry,
int  parm,
int  unk1,
int  stack_size,
int  prio,
int  unk2,
const char *  name 
)
__stdcall int CreateTaskStrictly ( const char *  name,
int  prio,
int  stack_size,
int(*)()  entry,
int  parm 
)
__stdcall int CreateTaskStrictly_alt ( const char *  name,
int  prio,
int  stack_size,
int(*)()  entry,
int  parm,
int  core 
)
__stdcall int CtrlMan_ChangeZOrder_FW ( controller_t controller,
int  order 
)
__stdcall void data_synchronization_barrier ( void  )
__stdcall void dcache_clean_flush_and_disable ( void  )
__stdcall void dcache_clean_range ( void *  addr,
unsigned  size 
)
__stdcall void dcache_flush_and_enable ( void  )
__stdcall void dcache_flush_range ( void *  addr,
unsigned  size 
)
__stdcall void DebugAssert ( char *  file,
int  line 
)

Definiert in Zeile 2015 der Datei wrappers.c.

2016 {
2017 #if CAM_3ARG_DebugAssert
2018  extern void _DebugAssert(int, char*, int);
2019  _DebugAssert(0, err, line);
2020 #else
2021  extern void _DebugAssert(char*, int);
2022  _DebugAssert(err, line);
2023 #endif
2024 }
__stdcall int DeleteController_FW ( controller_t controller)
__stdcall int DeleteDirectory_Fut ( const char *  name)
__stdcall int DeleteEventFlag ( int  flag)
__stdcall int DeleteFile_Fut ( const char *  name)
__stdcall int DeleteMessageQueue ( int  msgq)
__stdcall int DeleteSemaphore ( int  sem)

Definiert in Zeile 2042 der Datei wrappers.c.

2043 {
2044  _DeleteSemaphore(sem);
2045 }
__stdcall void DisableDispatch ( void  )
__stdcall void DisableISDriveError ( void  )
__stdcall void DoAELock ( void  )

Definiert in Zeile 1237 der Datei wrappers.c.

1238 {
1240  {
1241  _DoAELock();
1242  }
1243 }
__stdcall void DoAFLock ( void  )

Definiert in Zeile 1253 der Datei wrappers.c.

1254 {
1256  {
1257  int af_lock=1;
1258  _DoAFLock();
1259  set_property_case(PROPCASE_AF_LOCK,&af_lock,sizeof(af_lock));
1260  }
1261 }
__stdcall void dry_con_printf ( const char *  fmt,
  ... 
)
__stdcall void dry_error_printf ( const char *  fmt,
  ... 
)
__stdcall void dry_memcpy ( void *  dst,
void *  src,
int  n 
)
__stdcall void dry_memcpy_bytes ( void *  dst,
void *  src,
unsigned  n 
)
__stdcall void dry_memmove_bytes ( void *  dst,
void *  src,
unsigned  n 
)
__stdcall void dry_memset ( void *  dst,
unsigned  n,
int  c 
)
__stdcall void dry_memzero ( void *  dst,
unsigned  n 
)
__stdcall int dry_panic ( int  module,
int  panic_code 
)
__stdcall int dry_panic_low ( int  module,
int  panic_code 
)
__stdcall void EnableDispatch ( void  )
__stdcall void EnableHDMIPower ( void  )
__stdcall int EngDrvRead ( int  gpio_reg)

Definiert in Zeile 1273 der Datei wrappers.c.

1274 {
1275  return _EngDrvRead(gpio_reg);
1276 }
__stdcall void EnterToCompensationEVF ( void  )

Definiert in Zeile 1203 der Datei wrappers.c.

1204 {
1206 }
__stdcall int errnoOfTaskGet ( int  tid)

Definiert in Zeile 839 der Datei wrappers.c.

839  {
840 #if !CAM_DRYOS
841  return _errnoOfTaskGet(tid);
842 #else
843  (void)tid;
844  return 0;
845 #endif
846 }
__stdcall unsigned ExecuteEventProcedure ( const char *  name,
  ... 
)
__stdcall unsigned ExecuteEventProcedure_FW ( const char *  name,
  ... 
)
__stdcall void ExitFromCompensationEVF ( void  )

Definiert in Zeile 1208 der Datei wrappers.c.

1209 {
1211 }
__stdcall void ExitTask ( void  )

Definiert in Zeile 1720 der Datei wrappers.c.

1721 {
1722  _ExitTask();
1723 }
__stdcall void* exmem_alloc ( unsigned int  pool_id,
unsigned int  size,
int  unk,
int  unk2 
)
__stdcall void* exmem_ualloc ( unsigned int  type,
unsigned int  size,
void *  allocinf 
)
__stdcall void exmem_ufree ( unsigned int  type)
__stdcall void ExpCtrlTool_StartContiAE ( int  ,
int   
)
__stdcall void ExpCtrlTool_StopContiAE ( int  ,
int   
)
__stdcall int ExportToEventProcedure_FW ( const char *  name,
int(*)()  func 
)
__stdcall int Fclose_Fut ( FILE f)
__stdcall int fclose_low ( FILE f)
__stdcall int Feof_Fut ( FILE f)
__stdcall int feof_low ( FILE f)
__stdcall int Fflush_Fut ( FILE f)
__stdcall int fflush_low ( FILE f)
__stdcall char* Fgets_Fut ( char *  buf,
int  n,
FILE f 
)
__stdcall char* fgets_low ( char *  buf,
int  n,
FILE f 
)
__stdcall FILE* Fopen_Fut ( const char *  filename,
const char *  mode 
)
__stdcall FILE* fopen_low ( const char *  filename,
const char *  mode 
)
__stdcall int Fread_Fut ( void *  buf,
int  elsize,
int  count,
FILE f 
)
__stdcall int fread_low ( void *  buf,
int  elsize,
int  count,
FILE f 
)
__stdcall void free ( void *  p)

Definiert in Zeile 303 der Datei memmgmt.c.

304 {
305  extern void canon_free(void *p);
306 
307  if (!chdk_free(&aram_heap,p))
308  if (!chdk_free(&exmem_heap,p))
309  canon_free(p);
310 }
__stdcall void FreeUncacheableMemory ( void *  p)
__stdcall int Fseek_Fut ( FILE f,
int  offset,
int  whence 
)
__stdcall int fseek_low ( FILE f,
int  offset,
int  whence 
)
__stdcall int fut_finish ( int  unk)
__stdcall int fut_flush ( FILE f)
__stdcall int fut_prepare ( const char *  name,
int  unk 
)
__stdcall int Fwrite_Fut ( const void *  buf,
int  elsize,
int  count,
FILE f 
)
__stdcall int fwrite_low ( const void *  buf,
int  elsize,
int  count,
FILE f 
)
__stdcall int get_current_deltasv ( void  )
__stdcall short get_current_nd_value ( void  )
__stdcall int get_dial_hw_position ( int  dial)

Definiert in Zeile 94 der Datei kbd.c.

95 {
96  return _get_dial_hw_position(dial)&~3; // note : mask low bits
97 }
__stdcall int get_fstype ( int  )
__stdcall short get_nd_value ( void  )
__stdcall int get_ptp_buf_size ( int  slot)
__stdcall char* get_ptp_file_buf ( void  )
__stdcall int* get_self_task_errno_pointer ( void  )
__stdcall int get_self_task_id ( void  )
__stdcall int get_task_properties ( int  task_id,
void *  task_props 
)
__stdcall int GetAdChValue ( int *  )
__stdcall int GetBatteryTemperature ( void  )
__stdcall int GetCCDTemperature ( void  )
__stdcall int GetCurrentAvValue ( void  )
__stdcall int GetCurrentDriveBaseSvValue ( void  )
__stdcall int GetCurrentShutterSpeed ( void  )
__stdcall int GetCurrentTargetDistance ( void  )
__stdcall unsigned int GetDrive_ClusterSize ( int  drive)
__stdcall unsigned int GetDrive_FreeClusters ( int  drive)
__stdcall unsigned int GetDrive_TotalClusters ( int  drive)
__stdcall int GetEventFlagValue ( int  flag,
int *  res 
)
__stdcall int GetFocusLensCurrentPosition ( void  )
__stdcall int GetFocusLensSubjectDistance ( void  )
__stdcall int GetFocusLensSubjectDistanceFromLens ( void  )
__stdcall void GetImageFolder ( char *  out,
int  filecount,
int  flags,
int  time 
)
__stdcall void GetKbdState ( int *  phsw)
__stdcall void GetMemInfo ( int *  )
__stdcall int GetNumberOfPostedMessages ( int  msgq,
int *  res 
)
__stdcall int GetOpticalTemperature ( void  )
__stdcall int GetParameterData ( int  id,
void *  buf,
int  size 
)
__stdcall int GetPropertyCase ( int  opt_id,
void *  buf,
int  bufsize 
)
__stdcall int GetRomID ( void *  adr,
int  unk 
)
__stdcall controller_t* GetSelfControllerHandle_FW ( void  )
__stdcall int GetSemaphoreValue ( int  sem,
int *  p 
)
__stdcall unsigned GetSRAndDisableInterrupt ( void  )
__stdcall int GetSystemTime ( void  )
__stdcall short GetUsableMaxAv ( void  )
__stdcall short GetUsableMinAv ( void  )
__stdcall int GetVideoOutType ( void  )
__stdcall int GetVRAMHPixelsSize ( void  )
__stdcall int GetVRAMVPixelsSize ( void  )
__stdcall int GetZoomLensCurrentPoint ( void  )
__stdcall int GetZoomLensCurrentPosition ( void  )
__stdcall void GiveSemaphore ( int  sem)

Definiert in Zeile 2037 der Datei wrappers.c.

2038 {
2039  _GiveSemaphore(sem);
2040 }
__stdcall int givesemaphore_low ( int  sem)
__stdcall void GPS_UpdateData ( void  )
__stdcall void GraphicSystemCoreFinish ( void  )
__stdcall int GraphicSystemCoreFinish_helper ( void  )
__stdcall void* heap_alloc ( void *  heap,
unsigned  size 
)
__stdcall void heap_free ( void *  heap,
void *  p 
)
__stdcall void icache_flush_range ( void *  addr,
unsigned  size 
)
__stdcall int init_task_error ( const char *  msg)
__stdcall int iosDevAdd ( void *  ,
void *  ,
int   
)
__stdcall int iosDevDelete ( void *  )
__stdcall int iosDrvInstall ( void *  ,
void *  ,
void *  ,
void *  ,
void *  ,
void *  ,
void *   
)
__stdcall int is_movie_recording ( void  )
__stdcall int isalpha ( int  c)

Definiert in Zeile 27 der Datei wrappers.c.

27 { return _isalpha(c); }
__stdcall int IsControlEventActive_FW ( int  event)
__stdcall int isdigit ( int  c)

Definiert in Zeile 25 der Datei wrappers.c.

25 { return _isdigit(c); }
__stdcall int islower ( int  c)

Definiert in Zeile 29 der Datei wrappers.c.

29 { return _islower(c); }
__stdcall int ispunct ( int  c)

Definiert in Zeile 30 der Datei wrappers.c.

30 { return _ispunct(c); }
__stdcall int isspace ( int  c)

Definiert in Zeile 26 der Datei wrappers.c.

26 { return _isspace(c); }
__stdcall int IsStrobeChargeCompleted ( void  )

Definiert in Zeile 389 der Datei wrappers.c.

389 { return _IsStrobeChargeCompleted(); }
__stdcall int isupper ( int  c)

Definiert in Zeile 28 der Datei wrappers.c.

28 { return _isupper(c); }
__stdcall int IsWirelessConnect ( void  )
__stdcall int isxdigit ( int  c)

Definiert in Zeile 31 der Datei wrappers.c.

31 { return _isxdigit(c); }
__stdcall void kbd_fetch_data ( int *  dst)
__stdcall int kbd_p1_f ( void  )
__stdcall void kbd_p2_f ( void  )
__stdcall void kbd_pwr_off ( void  )
__stdcall void kbd_pwr_on ( void  )
__stdcall void kbd_read_keys_r2 ( int *  p)
__stdcall int LEDDrive ( int  led,
int  action 
)
__stdcall void* localtime ( const unsigned int *  tod)
__stdcall void* LocalTime ( const unsigned int *  tod,
void *  t_m 
)
__stdcall int LockMainPower ( void  )
__stdcall void LogCameraEvent ( int  level,
const char *  fmt,
  ... 
)
__stdcall int lseek ( int  fd,
int  offset,
int  whence 
)
__stdcall void MakeAFScan ( int *  ,
int   
)
__stdcall int MakeDirectory_Fut ( const char *  name,
int  unk 
)
__stdcall void MakeSDCardBootable ( int  driveno)
__stdcall void* malloc ( int  size)

No STUBS! You can't use these two directly from THUMB code (core), only from platform.

__stdcall void* malloc_strictly ( int  size)
__stdcall void* memchr ( const void *  s,
int  c,
int  n 
)

Definiert in Zeile 1104 der Datei wrappers.c.

1104  {
1105  return _memchr(s,c,n);
1106 }
__stdcall int memcmp ( const void *  s1,
const void *  s2,
int  n 
)
__stdcall void* memcpy ( void *  dest,
const void *  src,
int  n 
)
__stdcall int memPartFindMax ( int  mempart_id)
__stdcall int memPartInfoGet ( int  mempart_id,
int *  info 
)
__stdcall void* memset ( void *  s,
int  c,
int  n 
)

Definiert in Zeile 1095 der Datei wrappers.c.

1095  {
1096  return _memset(s, c, n);
1097 }
__stdcall void memset32 ( void *  p,
int  n,
int  v 
)
__stdcall void MFOff ( void  )
__stdcall void MFOn ( void  )
__stdcall int mkdir ( const char *  dirname)

Definiert in Zeile 534 der Datei wrappers.c.

535 {
536 #ifdef MKDIR_RETURN_ONE_ON_SUCCESS
537  // mkdir returns 1 on success, 0 on fail. So, values are inverted, to be compatible with previous versions
538  if(_MakeDirectory_Fut(dirname,1)) return 0;
539  else return 1;
540 #else
541  return _MakeDirectory_Fut(dirname,-1); // meaning of second arg is not clear, firmware seems to use -1
542 #endif
543 }
__stdcall int mktime ( void *  timp)
__stdcall int mktime_ext ( void *  tim_extp)
__stdcall void Mount_FileSystem ( void  )
__stdcall int MoveControllerToTopOfZOrder_FW ( controller_t controller)
__stdcall void MoveFocusLensToDistance ( short *  dist)
__stdcall int MoveIrisWithAv ( short *  )
__stdcall void MoveOpticalZoomAt ( long  pt,
int  speed 
)
__stdcall int MoveZoomLensWithPoint ( short *  pos)
__stdcall mzrm_msg* mzrm_createmsg ( mzrm_context ctx,
int  unk,
int  msg_type,
int  payload_size 
)
__stdcall int mzrm_sendmsg ( mzrm_context ctx,
mzrm_msg msg 
)
__stdcall int open ( const char *  name,
int  flags,
int  mode 
)

Definiert in Zeile 446 der Datei wrappers.c.

447 {
448 #if defined(OPT_FILEIO_STATS)
449  camera_info.fileio_stats.open_count++;
450 #endif
451 #if !CAM_DRYOS
452  // Adjust O_TRUNC and O_CREAT flags for VxWorks
453  // Remove O_APPEND flag if present (not in VxWorks)
454  flags = (flags & ~(O_TRUNC|O_CREAT|O_APPEND)) | ((flags & (O_TRUNC|O_CREAT)) << 1);
455 #else
456  if(!name || name[0]!='A')
457  return -1;
458 #endif
459  int haveSemaphore = takeFileIOSemaphore();
460  if (!haveSemaphore)
461 #if defined(CAM_IS_VID_REC_WORKS)
462  if (!conf.allow_unsafe_io)
463 #endif
464  return -1;
465  int fd = _Open(name, flags, mode);
466  if (haveSemaphore)
467  _GiveSemaphore(fileio_semaphore);
468 #if defined(OPT_FILEIO_STATS)
469  if (fd == -1)
470  camera_info.fileio_stats.open_fail_count++;
471 #endif
472  return fd;
473 }
__stdcall int Open ( const char *  name,
int  flags,
int  mode 
)
__stdcall void* opendir ( const char *  name)

Definiert in Zeile 20 der Datei lib_thumb.c.

21 {
22  return opendir_chdk(name,OPENDIR_FL_NONE);
23 }
__stdcall void* OpenFastDir ( const char *  name)
__stdcall void PB2Rec ( void  )
__stdcall int PostLEDMessage ( struct led_control )
__stdcall int PostLogicalEventForNotPowerType ( int  event,
int  unk 
)
__stdcall int PostLogicalEventToUI ( int  event,
int  unk 
)
__stdcall int PostMessageQueue ( int  msgq,
int  val,
int  timeout 
)
__stdcall void PT_MFOff ( void  )
__stdcall void PT_MFOn ( void  )
__stdcall void PT_MoveDigitalZoomToWide ( void  )
__stdcall void PT_PlaySound ( short  ,
void *  ,
int  unk 
)
__stdcall short PTM_GetCurrentItem ( int  id)
__stdcall PTM_RestoreUIProperty_FW ( int  id,
void *  buf,
int  size 
)
__stdcall void PutInNdFilter ( void  )
__stdcall void PutOutNdFilter ( void  )
__stdcall void pvm_free ( void *  pool,
void *  p 
)
__stdcall int pvm_get_largest_free_block_size ( void *  pool)
__stdcall void pvm_get_largest_free_block_size_ptr ( void *  pool,
unsigned *  free_size 
)
__stdcall void* pvm_init_pool ( void *  mem,
unsigned  size 
)
__stdcall void* pvm_malloc ( void *  pool,
unsigned  size 
)
__stdcall void qsort ( void *  _base,
int  _nelem,
int  _size,
int(*)(const void *_e1, const void *_e2)  _cmp 
)
__stdcall int rand ( void  )

Definiert in Zeile 1169 der Datei wrappers.c.

1169  {
1170  return _rand();
1171 }
__stdcall int read ( int  fd,
void *  buffer,
int  nbytes 
)
__stdcall int Read ( int  fd,
void *  buffer,
int  nbytes 
)
__stdcall void* readdir ( void *  d)
__stdcall int ReadFastDir ( void *  d,
void *  dd 
)
__stdcall void reboot_fw_update ( const char *  bootfile)
__stdcall void Rec2PB ( void  )
__stdcall int ReceiveMessageQueue ( int  msgq,
int *  dst,
int  unk1 
)
__stdcall void RefreshPhysicalScreen ( int  f)
__stdcall int RegisterEventProcedure_alt1 ( const char *  name,
int(*)()  func 
)
__stdcall int RegisterEventProcedure_alt2 ( const char *  name,
int(*)()  func 
)
__stdcall int RegisterEventProcedure_FW ( const char *  name,
int(*)()  func 
)
__stdcall int RegisterEventProcTable ( const eventproc_table_entry defs)
__stdcall int RegisterEventProcTable_alt ( const eventproc_table_entry defs)
__stdcall int RegisterInterruptHandler ( const char *  name,
int  int_num,
int(*)()  int_handler,
int  unk 
)
__stdcall int Remove ( const char *  name)
__stdcall int RenameFile_Fut ( const char *  oldname,
const char *  newname 
)
__stdcall void Restart ( unsigned  option)
__stdcall void ScreenLock ( void  )
__stdcall void set_assert_handler ( void(*)()  assert_handler)
__stdcall void set_control_event ( int  )
__stdcall void set_exception_handler ( void(*)()  exception_handler)
__stdcall void set_panic_handler ( void(*)()  panic_handler)
__stdcall short SetAE_ShutterSpeed ( short *  tv)
__stdcall void SetAutoShutdownTime ( int  t)
__stdcall void SetCurrentCaptureModeType ( void  )

Definiert in Zeile 390 der Datei wrappers.c.

__stdcall int SetDate ( void *  setdate_p)
__stdcall int SetEventFlag ( int  flag,
int  what 
)
__stdcall void SetFileAttributes ( int  fd,
int  attr 
)
__stdcall int SetFileTimeStamp ( int  fd,
int  time1,
int  time2 
)
__stdcall int SetHPTimerAfterNow ( int  delay,
int(*)(int, int)  good_cb,
int(*)(int, int)  bad_cb,
int   
)

Definiert in Zeile 1967 der Datei wrappers.c.

1968 {
1969  return _SetHPTimerAfterNow(delay,good_cb,bad_cb,param);
1970 }
__stdcall void SetLogicalEventActive ( unsigned  event,
unsigned  state 
)

Definiert in Zeile 1619 der Datei wrappers.c.

1619  {
1620  _SetLogicalEventActive(id, state);
1621 }
__stdcall int SetParameterData ( int  id,
void *  buf,
int  size 
)
__stdcall int SetPropertyCase ( int  opt_id,
void *  buf,
int  bufsize 
)
__stdcall void SetScriptMode ( unsigned  mode)

Definiert in Zeile 1623 der Datei wrappers.c.

1623  {
1625 }
__stdcall void SetSR ( unsigned  sr_int_bit)
__stdcall void SetVideoOutType ( int  vt)
__stdcall int SetZoomActuatorSpeedPercent ( short *  perc)
__stdcall void SleepTask ( int  msec)
__stdcall char* sprintf_FW ( char *  p,
const char *  fmt,
  ... 
)
__stdcall void srand ( unsigned int  seed)

Definiert in Zeile 1173 der Datei wrappers.c.

1173  {
1174  return _srand(seed);
1175 }
__stdcall void SS_MFOff ( void  )
__stdcall void SS_MFOn ( void  )
__stdcall int stat ( const char *  name,
__stat pStat 
)
__stdcall char* strcat ( char *  dest,
const char *  app 
)

Definiert in Zeile 875 der Datei wrappers.c.

875  {
876  return _strcat(dest, app);
877 }
__stdcall char* strchr ( const char *  s,
int  c 
)

Definiert in Zeile 863 der Datei wrappers.c.

863  {
864  return _strchr(s, c);
865 }
__stdcall int strcmp ( const char *  s1,
const char *  s2 
)

Definiert in Zeile 855 der Datei wrappers.c.

855  {
856  return _strcmp(s1, s2);
857 }
__stdcall char* strcpy ( char *  dest,
const char *  src 
)

Definiert in Zeile 867 der Datei wrappers.c.

867  {
868  return _strcpy(dest, src);
869 }
__stdcall int strftime ( char *  s,
unsigned int  maxsize,
const char *  format,
const void *  timp 
)
__stdcall int strlen ( const char *  s)

Definiert in Zeile 851 der Datei wrappers.c.

851  {
852  return _strlen(s);
853 }
__stdcall int strncmp ( const char *  s1,
const char *  s2,
int  n 
)
__stdcall char* strncpy ( char *  dest,
const char *  src,
int  n 
)
__stdcall char* strpbrk ( const char *  s,
const char *  accept 
)

Definiert in Zeile 896 der Datei wrappers.c.

897 {
898  return _strpbrk(s, accept);
899 }
__stdcall char* strrchr ( const char *  s,
int  c 
)

Definiert in Zeile 879 der Datei wrappers.c.

879  {
880  return _strrchr(s, c);
881 }
__stdcall int strstr ( const char *  s1,
const char *  s2 
)

Definiert in Zeile 199 der Datei lib_thumb.c.

200 {
201  const char *p = s1;
202  const int len = strlen(s2);
203 
204  for (; (p = strchr(p, *s2)) != 0; p++)
205  {
206  if (strncmp(p, s2, len) == 0)
207  return (char*)p;
208  }
209  return (0);
210 }
__stdcall int strtol ( const char *  nptr,
char **  endptr,
int  base 
)

Definiert in Zeile 883 der Datei wrappers.c.

883  {
884  return _strtol(nptr, endptr, base);
885 }
__stdcall int strtolx ( const char *  nptr,
char **  endptr,
int  base,
int  mode 
)
__stdcall unsigned strtoul ( const char *  nptr,
char **  endptr,
int  base 
)

Definiert in Zeile 887 der Datei wrappers.c.

887  {
888 #if CAM_DRYOS
889  return (unsigned long)_strtolx(nptr, endptr, base, 0);
890 #else
891  return _strtoul(nptr, endptr, base);
892 #endif
893 }
__stdcall int TakeSemaphore ( int  sem,
int  timeout 
)

Definiert in Zeile 2032 der Datei wrappers.c.

2033 {
2034  return _TakeSemaphore(sem, timeout);
2035 }
__stdcall int takesemaphore_low ( int  sem,
int *  t 
)
__stdcall int TakeSemaphoreStrictly ( int  sem,
int  timeout,
const char *  file,
int  line 
)
__stdcall int taskCreateHookAdd ( void *  createHook)
__stdcall int taskDeleteHookAdd ( void *  deleteHook)
__stdcall int taskIdListGet ( int *  idlist,
int  max 
)
__stdcall int taskLock ( void  )
__stdcall const char* taskName ( int  taskID)
__stdcall int taskNameToId ( char *  taskName)
__stdcall void taskResume ( int  taskId)
__stdcall void taskSuspend ( int  taskId)
__stdcall int taskUnlock ( void  )
__stdcall unsigned int time ( unsigned int *  timer)
__stdcall int tolower ( int  c)

Definiert in Zeile 33 der Datei wrappers.c.

33 { return _tolower(c); }
__stdcall int toupper ( int  c)

Definiert in Zeile 34 der Datei wrappers.c.

34 { return _toupper(c); }
__stdcall void transfer_src_overlay ( int  which)
__stdcall int TryPostMessageQueue ( int  msgq,
int  val 
)
__stdcall int TryReceiveMessageQueue ( int  msgq,
int *  dst 
)
__stdcall int TryTakeSemaphore ( int  sem)
__stdcall void TurnOffBackLight ( void  )

Definiert in Zeile 1218 der Datei wrappers.c.

1219 {
1221 }
__stdcall void TurnOffDisplay ( void  )

Definiert in Zeile 1232 der Datei wrappers.c.

1233 {
1234  _TurnOffDisplay();
1235 }
__stdcall void TurnOffMic ( void  )
__stdcall void TurnOnBackLight ( void  )

Definiert in Zeile 1213 der Datei wrappers.c.

1214 {
1215  _TurnOnBackLight();
1216 }
__stdcall void TurnOnDisplay ( void  )

Definiert in Zeile 1225 der Datei wrappers.c.

1226 {
1227  _TurnOnDisplay();
1228  // required to re-draw the canon and CHDK UI after re-enabling display
1230 }
__stdcall void TurnOnMic ( void  )
__stdcall void ui_free ( void *  p)
__stdcall void ui_free_default ( void *  p)
__stdcall void* ui_malloc ( unsigned  size)
__stdcall void* ui_malloc_default ( unsigned  size)
__stdcall void* umalloc_strictly ( unsigned  size)
__stdcall void UniqueLedOff ( void *  addr)
__stdcall void UniqueLedOn ( void *  addr,
int  brightness 
)
__stdcall void UnlockAE ( void  )

Definiert in Zeile 1245 der Datei wrappers.c.

1246 {
1248  {
1249  _UnlockAE();
1250  }
1251 }
__stdcall void UnlockAF ( void  )

Definiert in Zeile 1263 der Datei wrappers.c.

1264 {
1266  {
1267  int af_lock=0;
1268  _UnlockAF();
1269  set_property_case(PROPCASE_AF_LOCK,&af_lock,sizeof(af_lock));
1270  }
1271 }
__stdcall int UnlockMainPower ( void  )
__stdcall void Unmount_FileSystem ( void  )
__stdcall int UnRegisterEventProcedure ( const char *  name)
__stdcall void UnsetZoomForMovie ( void  )
__stdcall void UpdateMBROnFlash ( int  driveno,
int  offset,
char *  str 
)
__stdcall int utime ( const char *  file,
void *  newTimes 
)
__stdcall int VbattGet ( void  )
__stdcall int vsprintf ( char *  buf,
const char *  fmt,
__builtin_va_list  va_list 
)
__stdcall int WaitForAllEventFlag ( int  flag,
int  what,
int  timeout 
)
__stdcall int WaitForAnyEventFlag ( int  flag,
int  what,
int  timeout 
)
__stdcall void* wrapped_malloc ( int  size)
__stdcall int write ( int  fd,
const void *  buffer,
int  nbytes 
)
__stdcall int Write ( int  fd,
const void *  buffer,
int  nbytes 
)
__stdcall int WriteSDCard ( unsigned int  drive,
unsigned int  start_sect,
unsigned int  num_sect,
void *  buf 
)
__stdcall void zicokick_copy ( void *  dst,
void *  src,
unsigned  size 
)
__stdcall void zicokick_start ( void  )

Variablen-Dokumentation

__stdcall int parameter_for_af_scan

Definiert in Zeile 281 der Datei fw_functions.h.

__stdcall int some_flag_for_af_scan

Definiert in Zeile 280 der Datei fw_functions.h.