| 1 | /* | 
 
 
 
 
 | 2 | * Copyright 2021 Jacek Caban for CodeWeavers | 
 
 
 
 
 | 3 | * | 
 
 
 
 
 | 4 | * This library is free software; you can redistribute it and/or | 
 
 
 
 
 | 5 | * modify it under the terms of the GNU Lesser General Public | 
 
 
 
 
 | 6 | * License as published by the Free Software Foundation; either | 
 
 
 
 
 | 7 | * version 2.1 of the License, or (at your option) any later version. | 
 
 
 
 
 | 8 | * | 
 
 
 
 
 | 9 | * This library is distributed in the hope that it will be useful, | 
 
 
 
 
 | 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
 
 
 
 
 | 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | 
 
 
 
 
 | 12 | * Lesser General Public License for more details. | 
 
 
 
 
 | 13 | * | 
 
 
 
 
 | 14 | * You should have received a copy of the GNU Lesser General Public | 
 
 
 
 
 | 15 | * License along with this library; if not, write to the Free Software | 
 
 
 
 
 | 16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA | 
 
 
 
 
 | 17 | */ | 
 
 
 
 
 | 18 |  | 
 
 
 
 
 | 19 | import "oaidl.idl"; | 
 
 
 
 
 | 20 | import "ocidl.idl"; | 
 
 
 
 
 | 21 |  | 
 
 
 
 
 | 22 | typedef struct ProofOfPossessionCookieInfo | 
 
 
 
 
 | 23 | { | 
 
 
 
 
 | 24 | LPWSTR  name; | 
 
 
 
 
 | 25 | LPWSTR  data; | 
 
 
 
 
 | 26 | DWORD   flags; | 
 
 
 
 
 | 27 | LPWSTR  p3pHeader; | 
 
 
 
 
 | 28 | } ProofOfPossessionCookieInfo; | 
 
 
 
 
 | 29 |  | 
 
 
 
 
 | 30 |  | 
 
 
 
 
 | 31 | cpp_quote("static inline void FreeProofOfPossessionCookieInfoArray(ProofOfPossessionCookieInfo *cookie_info, DWORD count)") | 
 
 
 
 
 | 32 | cpp_quote("{") | 
 
 
 
 
 | 33 | cpp_quote("    unsigned int i;") | 
 
 
 
 
 | 34 | cpp_quote("    for (i = 0; i < count; i++)") | 
 
 
 
 
 | 35 | cpp_quote("    {") | 
 
 
 
 
 | 36 | cpp_quote("        CoTaskMemFree(cookie_info[i].name);") | 
 
 
 
 
 | 37 | cpp_quote("        CoTaskMemFree(cookie_info[i].data);") | 
 
 
 
 
 | 38 | cpp_quote("        CoTaskMemFree(cookie_info[i].p3pHeader);") | 
 
 
 
 
 | 39 | cpp_quote("    }") | 
 
 
 
 
 | 40 | cpp_quote("    CoTaskMemFree(cookie_info);") | 
 
 
 
 
 | 41 | cpp_quote("}") | 
 
 
 
 
 | 42 |  | 
 
 
 
 
 | 43 |  | 
 
 
 
 
 | 44 | [ | 
 
 
 
 
 | 45 | object, | 
 
 
 
 
 | 46 | uuid(cdaece56-4edf-43df-b113-88e4556fa1bb), | 
 
 
 
 
 | 47 | pointer_default(unique) | 
 
 
 
 
 | 48 | ] | 
 
 
 
 
 | 49 | interface IProofOfPossessionCookieInfoManager : IUnknown | 
 
 
 
 
 | 50 | { | 
 
 
 
 
 | 51 | HRESULT GetCookieInfoForUri([in] LPCWSTR uri, | 
 
 
 
 
 | 52 | [out] DWORD *cookieInfoCount, | 
 
 
 
 
 | 53 | [out, size_is(,*cookieInfoCount)] ProofOfPossessionCookieInfo **cookieInfo); | 
 
 
 
 
 | 54 | } | 
 
 
 
 
 | 55 |  | 
 
 
 
 
 | 56 |  | 
 
 
 
 
 | 57 | [ | 
 
 
 
 
 | 58 | uuid(7681a019-8f51-4594-9507-f27040f71f01), | 
 
 
 
 
 | 59 | version(1.0) | 
 
 
 
 
 | 60 | ] | 
 
 
 
 
 | 61 | library ProofOfPossessionCookieInfoManagerLib | 
 
 
 
 
 | 62 | { | 
 
 
 
 
 | 63 | [ | 
 
 
 
 
 | 64 | uuid(a9927f85-a304-4390-8b23-a75f1c668600) | 
 
 
 
 
 | 65 | ] | 
 
 
 
 
 | 66 | coclass ProofOfPossessionCookieInfoManager | 
 
 
 
 
 | 67 | { | 
 
 
 
 
 | 68 | [default] interface IProofOfPossessionCookieInfoManager; | 
 
 
 
 
 | 69 | } | 
 
 
 
 
 | 70 | } |