Advertisement
Guest User

CoreTelephony.h

a guest
Sep 23rd, 2013
1,006
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #ifndef CORETELEPHONY_H_
  2. #define CORETELEPHONY_H_
  3.  
  4. #include <CoreFoundation/CoreFoundation.h>
  5.  
  6. struct CTResult
  7. {
  8.     int flag;
  9.     int a;
  10. };
  11.  
  12. struct __CTServerConnection {
  13.   int a;
  14.   int b;
  15.   CFMachPortRef myport;
  16.   int c;
  17.   int d;
  18.   int e;
  19.   int f;
  20.   int g;
  21.   int h;
  22.   int i;
  23. };
  24. typedef struct __CTServerConnection CTServerConnection;
  25. typedef CTServerConnection* CTServerConnectionRef;
  26.  
  27. struct __CellInfo {
  28.   int servingmnc;
  29.   int network;
  30.   int location;
  31.   int cellid;
  32.   int station;
  33.   int freq;
  34.   int rxlevel;
  35.   int c1;
  36.   int c2;
  37. };
  38. typedef struct __CellInfo CellInfo;
  39. typedef CellInfo* CellInfoRef;
  40.  
  41. typedef void (*CTServerConnectionCallback)(CTServerConnectionRef, CFStringRef, CFDictionaryRef, void *);
  42.  
  43. mach_port_t _CTServerConnectionGetPort(CTServerConnectionRef);
  44.  
  45. void _CTServerConnectionCellMonitorStart(CFMachPortRef port, CTServerConnectionRef);
  46.  
  47. void _CTServerConnectionRegisterForNotification(CTServerConnectionRef,void *,void(*callback)(void));
  48. void kCTCellMonitorUpdateNotification();
  49.  
  50. void _CTServerConnectionCellMonitorGetCellCount(CFMachPortRef port,CTServerConnectionRef,int *cellinfo_count);
  51.  
  52. void _CTServerConnectionCellMonitorGetCellInfo(CFMachPortRef port,CTServerConnectionRef,int cellinfo_number,CellInfoRef* ref);
  53.  
  54. int _CTServerConnectionSetVibratorState(int *, void *, int, int, int, int, int);
  55.  
  56. /*
  57. CFTypeRef _CTServerConnectionCreate(CFAllocatorRef, int (*)(void *, CFStringRef, CFDictionaryRef, void *), int *);
  58.  
  59. void _CTServerConnectionCopyMobileEquipmentInfo(struct CTResult *status,
  60.                                                 CFTypeRef connection,
  61.                                                 CFMutableDictionaryRef *equipmentInfo);
  62. */
  63.  
  64. CTServerConnectionRef _CTServerConnectionCreate(CFAllocatorRef allocator, CTServerConnectionCallback, int *unknown);
  65.  
  66. int * _CTServerConnectionCopyMobileEquipmentInfo (
  67.                                                   struct CTResult * Status,
  68.                                                   struct __CTServerConnection * Connection,
  69.                                                   CFMutableDictionaryRef * Dictionary
  70.                                                   );
  71.  
  72. #endif  // CORETELEPHONY_H_
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement