00001 #ifndef MOBILEAPPLE80211_H
00002 #define MOBILEAPPLE80211_H
00003
00004
00005
00006
00007
00008
00009 struct Apple80211;
00010 typedef struct Apple80211 *Apple80211Ref;
00011
00012 int Apple80211Open(Apple80211Ref *ctx);
00013 int Apple80211Close(Apple80211Ref ctx);
00014 int Apple80211GetIfListCopy(Apple80211Ref handle, CFArrayRef *list);
00015 int Apple80211BindToInterface(Apple80211Ref handle,
00016 CFStringRef interface);
00017 int Apple80211GetInterfaceNameCopy(Apple80211Ref handle,
00018 CFStringRef *name);
00019 int Apple80211GetInfoCopy(Apple80211Ref handle,
00020 CFDictionaryRef *info);
00021 int Apple80211GetPower(Apple80211Ref handle, char *pwr);
00022 int Apple80211SetPower(Apple80211Ref handle, char pwr);
00023
00024
00025
00026 int Apple80211Scan(Apple80211Ref handle, CFArrayRef *list,
00027 CFDictionaryRef parameters);
00028
00029 int Apple80211Associate(Apple80211Ref handle, CFDictionaryRef bss,
00030 CFStringRef password);
00031 int Apple80211AssociateAndCopyInfo(Apple80211Ref handle, CFDictionaryRef bss,
00032 CFStringRef password,
00033 CFDictionaryRef *info);
00034
00035 enum {
00036 APPLE80211_VALUE_SSID = 1,
00037 APPLE80211_VALUE_BSSID = 9
00038 };
00039
00040 int Apple80211CopyValue(Apple80211Ref handle, int field, CFDictionaryRef arg2,
00041 void *value);
00042
00043 #endif