const macro = @import("pspmacros.zig");

comptime {
    asm (macro.import_module_start("sceHttp", "0x00090011", "83"));
    asm (macro.import_function("sceHttp", "0x0282A3BD", "sceHttpGetContentLength"));
    asm (macro.import_function("sceHttp", "0x03D9526F", "sceHttpSetResolveRetry"));
    asm (macro.import_function("sceHttp", "0x06488A1C", "sceHttpSetCookieSendCallback"));
    asm (macro.import_function("sceHttp", "0x0809C831", "sceHttpEnableRedirect"));
    asm (macro.import_function("sceHttp", "0x0B12ABFB", "sceHttpDisableCookie"));
    asm (macro.import_function("sceHttp", "0x0DAFA58F", "sceHttpEnableCookie"));
    asm (macro.import_function("sceHttp", "0x15540184", "sceHttpDeleteHeader"));
    asm (macro.import_function("sceHttp", "0x1A0EBB69", "sceHttpDisableRedirect"));
    asm (macro.import_function("sceHttp", "0x1CEDB9D4", "sceHttpFlushCache"));
    asm (macro.import_function("sceHttp", "0x1F0FC3E3", "sceHttpSetRecvTimeOut"));
    asm (macro.import_function("sceHttp", "0x2255551E", "sceHttpGetNetworkPspError"));
    asm (macro.import_function("sceHttp", "0x267618F4", "sceHttpSetAuthInfoCallback"));
    asm (macro.import_function("sceHttp", "0x2A6C3296", "sceHttpSetAuthInfoCB"));
    asm (macro.import_function("sceHttp", "0x2C3C82CF", "sceHttpFlushAuthList"));
    asm (macro.import_function("sceHttp", "0x3A67F306", "sceHttpSetCookieRecvCallback"));
    asm (macro.import_function("sceHttp", "0x3C478044", "sceHttp_3C478044"));
    asm (macro.import_function("sceHttp", "0x3EABA285", "sceHttpAddExtraHeader"));
    asm (macro.import_function("sceHttp", "0x457D221D", "sceHttp_457D221D"));
    asm (macro.import_function("sceHttp", "0x47347B50", "sceHttpCreateRequest"));
    asm (macro.import_function("sceHttp", "0x47940436", "sceHttpSetResolveTimeOut"));
    asm (macro.import_function("sceHttp", "0x4CC7D78F", "sceHttpGetStatusCode"));
    asm (macro.import_function("sceHttp", "0x4E4A284A", "sceHttp_4E4A284A"));
    asm (macro.import_function("sceHttp", "0x5152773B", "sceHttpDeleteConnection"));
    asm (macro.import_function("sceHttp", "0x54E7DF75", "sceHttpIsRequestInCache"));
    asm (macro.import_function("sceHttp", "0x569A1481", "sceHttpsSetSslCallback"));
    asm (macro.import_function("sceHttp", "0x59E6D16F", "sceHttpEnableCache"));
    asm (macro.import_function("sceHttp", "0x68AB0F86", "sceHttpsInitWithPath"));
    asm (macro.import_function("sceHttp", "0x739C2D79", "sceHttp_739C2D79"));
    asm (macro.import_function("sceHttp", "0x76D1363B", "sceHttpSaveSystemCookie"));
    asm (macro.import_function("sceHttp", "0x7774BF4C", "sceHttpAddCookie"));
    asm (macro.import_function("sceHttp", "0x77EE5319", "sceHttp_77EE5319"));
    asm (macro.import_function("sceHttp", "0x78A0D3EC", "sceHttpEnableKeepAlive"));
    asm (macro.import_function("sceHttp", "0x78B54C09", "sceHttpEndCache"));
    asm (macro.import_function("sceHttp", "0x8046E250", "sceHttp_8046E250"));
    asm (macro.import_function("sceHttp", "0x87797BDD", "sceHttpsLoadDefaultCert"));
    asm (macro.import_function("sceHttp", "0x87F1E666", "sceHttp_87F1E666"));
    asm (macro.import_function("sceHttp", "0x8ACD1F73", "sceHttpSetConnectTimeOut"));
    asm (macro.import_function("sceHttp", "0x8EEFD953", "sceHttpCreateConnection_stub"));
    asm (macro.import_function("sceHttp", "0x951D310E", "sceHttp_951D310E"));
    asm (macro.import_function("sceHttp", "0x9668864C", "sceHttpSetRecvBlockSize"));
    asm (macro.import_function("sceHttp", "0x96F16D3E", "sceHttpGetCookie"));
    asm (macro.import_function("sceHttp", "0x9988172D", "sceHttpSetSendTimeOut"));
    asm (macro.import_function("sceHttp", "0x9AFC98B2", "sceHttpSendRequestInCacheFirstMode"));
    asm (macro.import_function("sceHttp", "0x9B1F1F36", "sceHttpCreateTemplate"));
    asm (macro.import_function("sceHttp", "0x9FC5F10D", "sceHttpEnableAuth"));
    asm (macro.import_function("sceHttp", "0xA4496DE5", "sceHttpSetRedirectCallback"));
    asm (macro.import_function("sceHttp", "0xA461A167", "sceHttp_A461A167"));
    asm (macro.import_function("sceHttp", "0xA5512E01", "sceHttpDeleteRequest"));
    asm (macro.import_function("sceHttp", "0xA6800C34", "sceHttpInitCache"));
    asm (macro.import_function("sceHttp", "0xA909F2AE", "sceHttp_A909F2AE"));
    asm (macro.import_function("sceHttp", "0xAB1540D5", "sceHttpsGetSslError"));
    asm (macro.import_function("sceHttp", "0xAB1ABE07", "sceHttpInit"));
    asm (macro.import_function("sceHttp", "0xAE948FEE", "sceHttpDisableAuth"));
    asm (macro.import_function("sceHttp", "0xB0257723", "sceHttp_B0257723"));
    asm (macro.import_function("sceHttp", "0xB0C34B1D", "sceHttpSetCacheContentLengthMaxSize"));
    asm (macro.import_function("sceHttp", "0xB3FAF831", "sceHttpsDisableOption"));
    asm (macro.import_function("sceHttp", "0xB509B09E", "sceHttpCreateRequestWithURL"));
    asm (macro.import_function("sceHttp", "0xBAC31BF1", "sceHttpsEnableOption"));
    asm (macro.import_function("sceHttp", "0xBB70706F", "sceHttpSendRequest"));
    asm (macro.import_function("sceHttp", "0xC10B6BD9", "sceHttpAbortRequest"));
    asm (macro.import_function("sceHttp", "0xC6330B0D", "sceHttp_C6330B0D"));
    asm (macro.import_function("sceHttp", "0xC7EF2559", "sceHttpDisableKeepAlive"));
    asm (macro.import_function("sceHttp", "0xC98CBBA7", "sceHttpSetResHeaderMaxSize"));
    asm (macro.import_function("sceHttp", "0xCCBD167A", "sceHttpDisableCache"));
    asm (macro.import_function("sceHttp", "0xCDB0DC58", "sceHttp_CDB0DC58"));
    asm (macro.import_function("sceHttp", "0xCDF8ECB9", "sceHttpCreateConnectionWithURL"));
    asm (macro.import_function("sceHttp", "0xD081EC8F", "sceHttpGetNetworkErrno"));
    asm (macro.import_function("sceHttp", "0xD11DAB01", "sceHttpsGetCaList"));
    asm (macro.import_function("sceHttp", "0xD1C8945E", "sceHttpEnd"));
    asm (macro.import_function("sceHttp", "0xD70D4847", "sceHttpGetProxy_stub"));
    asm (macro.import_function("sceHttp", "0xD80BE761", "sceHttp_D80BE761"));
    asm (macro.import_function("sceHttp", "0xDB266CCF", "sceHttpGetAllHeader"));
    asm (macro.import_function("sceHttp", "0xDD6E7857", "sceHttp_DD6E7857"));
    asm (macro.import_function("sceHttp", "0xE4D21302", "sceHttpsInit"));
    asm (macro.import_function("sceHttp", "0xEDEEB999", "sceHttpReadData"));
    asm (macro.import_function("sceHttp", "0xF0F46C62", "sceHttpSetProxy_stub"));
    asm (macro.import_function("sceHttp", "0xF1657B22", "sceHttpLoadSystemCookie"));
    asm (macro.import_function("sceHttp", "0xF49934F6", "sceHttpSetMallocFunction"));
    asm (macro.import_function("sceHttp", "0xF9D8EB63", "sceHttpsEnd"));
    asm (macro.import_function("sceHttp", "0xFCF8C055", "sceHttpDeleteTemplate"));

    asm (macro.generic_abi_wrapper("sceHttpCreateConnection", 5));
    asm (macro.generic_abi_wrapper("sceHttpGetProxy", 6));
    asm (macro.generic_abi_wrapper("sceHttpSetProxy", 5));
}
