1 /* Automatically generated header! Do not edit! */
    2 
    3 #ifndef _PPCINLINE_SENSORS_H
    4 #define _PPCINLINE_SENSORS_H
    5 
    6 #ifndef __PPCINLINE_MACROS_H
    7 #include <ppcinline/macros.h>
    8 #endif /* !__PPCINLINE_MACROS_H */
    9 
   10 #ifndef SENSORS_BASE_NAME
   11 #define SENSORS_BASE_NAME SensorsBase
   12 #endif /* !SENSORS_BASE_NAME */
   13 
   14 #define StartSensorNotify(__p0, __p1) \
   15 	(((APTR (*)(void *, APTR , struct TagItem *))*(void**)((long)(SENSORS_BASE_NAME) - 70))((void*)(SENSORS_BASE_NAME), __p0, __p1))
   16 
   17 #define SetSensorAttr(__p0, __p1) \
   18 	(((ULONG (*)(void *, APTR , struct TagItem *))*(void**)((long)(SENSORS_BASE_NAME) - 64))((void*)(SENSORS_BASE_NAME), __p0, __p1))
   19 
   20 #define GetSensorAttr(__p0, __p1) \
   21 	(((ULONG (*)(void *, APTR , struct TagItem *))*(void**)((long)(SENSORS_BASE_NAME) - 58))((void*)(SENSORS_BASE_NAME), __p0, __p1))
   22 
   23 #define EndSensorNotify(__p0, __p1) \
   24 	(((void (*)(void *, APTR , struct TagItem *))*(void**)((long)(SENSORS_BASE_NAME) - 76))((void*)(SENSORS_BASE_NAME), __p0, __p1))
   25 
   26 #define AddSensor(__p0) \
   27 	(((APTR (*)(void *, struct TagItem *))*(void**)((long)(SENSORS_BASE_NAME) - 28))((void*)(SENSORS_BASE_NAME), __p0))
   28 
   29 #define NextSensor(__p0, __p1, __p2) \
   30 	(((APTR (*)(void *, APTR , APTR , struct TagItem *))*(void**)((long)(SENSORS_BASE_NAME) - 46))((void*)(SENSORS_BASE_NAME), __p0, __p1, __p2))
   31 
   32 #define ReleaseSensorsList(__p0, __p1) \
   33 	(((void (*)(void *, APTR , struct TagItem *))*(void**)((long)(SENSORS_BASE_NAME) - 52))((void*)(SENSORS_BASE_NAME), __p0, __p1))
   34 
   35 #define GetSensorsCount(__p0) \
   36 	(((ULONG (*)(void *, struct TagItem *))*(void**)((long)(SENSORS_BASE_NAME) - 82))((void*)(SENSORS_BASE_NAME), __p0))
   37 
   38 #define RemoveSensor(__p0, __p1) \
   39 	(((void (*)(void *, APTR , struct TagItem *))*(void**)((long)(SENSORS_BASE_NAME) - 34))((void*)(SENSORS_BASE_NAME), __p0, __p1))
   40 
   41 #define ObtainSensorsList(__p0) \
   42 	(((APTR (*)(void *, struct TagItem *))*(void**)((long)(SENSORS_BASE_NAME) - 40))((void*)(SENSORS_BASE_NAME), __p0))
   43 
   44 #if defined(USE_INLINE_STDARG) && !defined(__STRICT_ANSI__)
   45 
   46 #include <stdarg.h>
   47 
   48 #define StartSensorNotifyTags(__p0, ...) \
   49 	({ULONG _tags[] = { __VA_ARGS__ }; \
   50 	StartSensorNotify(__p0, (struct TagItem *)_tags);})
   51 
   52 #define SetSensorAttrTags(__p0, ...) \
   53 	({ULONG _tags[] = { __VA_ARGS__ }; \
   54 	SetSensorAttr(__p0, (struct TagItem *)_tags);})
   55 
   56 #define GetSensorsCountTags(...) \
   57 	({ULONG _tags[] = { __VA_ARGS__ }; \
   58 	GetSensorsCount((struct TagItem *)_tags);})
   59 
   60 #define EndSensorNotifyTags(__p0, ...) \
   61 	({ULONG _tags[] = { __VA_ARGS__ }; \
   62 	EndSensorNotify(__p0, (struct TagItem *)_tags);})
   63 
   64 #define NextSensorTags(__p0, __p1, ...) \
   65 	({ULONG _tags[] = { __VA_ARGS__ }; \
   66 	NextSensor(__p0, __p1, (struct TagItem *)_tags);})
   67 
   68 #define ObtainSensorsListTags(...) \
   69 	({ULONG _tags[] = { __VA_ARGS__ }; \
   70 	ObtainSensorsList((struct TagItem *)_tags);})
   71 
   72 #define ReleaseSensorsListTags(__p0, ...) \
   73 	({ULONG _tags[] = { __VA_ARGS__ }; \
   74 	ReleaseSensorsList(__p0, (struct TagItem *)_tags);})
   75 
   76 #define AddSensorTags(...) \
   77 	({ULONG _tags[] = { __VA_ARGS__ }; \
   78 	AddSensor((struct TagItem *)_tags);})
   79 
   80 #define RemoveSensorTags(__p0, ...) \
   81 	({ULONG _tags[] = { __VA_ARGS__ }; \
   82 	RemoveSensor(__p0, (struct TagItem *)_tags);})
   83 
   84 #define GetSensorAttrTags(__p0, ...) \
   85 	({ULONG _tags[] = { __VA_ARGS__ }; \
   86 	GetSensorAttr(__p0, (struct TagItem *)_tags);})
   87 
   88 #endif
   89 
   90 #endif /* !_PPCINLINE_SENSORS_H */