2 Copyright (c) 2014, McAfee, Inc.
6 Redistribution and use in source and binary forms, with or without modification,
7 are permitted provided that the following conditions are met:
9 Redistributions of source code must retain the above copyright notice, this list
10 of conditions and the following disclaimer.
12 Redistributions in binary form must reproduce the above copyright notice, this
13 list of conditions and the following disclaimer in the documentation and/or other
14 materials provided with the distribution.
16 Neither the name of McAfee, Inc. nor the names of its contributors may be used
17 to endorse or promote products derived from this software without specific prior
20 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
21 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
23 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
24 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
25 BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
27 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
28 OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
29 OF THE POSSIBILITY OF SUCH DAMAGE.
37 * \brief Data types and structs for Security framework IPC clients.
39 * This file provides the data types and structs needed by clients of Security framework IPC.
42 /*==================================================================================================
43 STRUCTURES AND OTHER TYPEDEFS
44 ==================================================================================================*/
47 * \brief CallBack Function type for Async method supported by the IPC.
49 * \param[in] pPrivate API caller's context information, supplied with TSCSendMessageAsync earlier.
50 * \param[in] argc Length of the string in argv.
51 * \param[in] argv Array of strings representing result value of asynchronous reply.
53 typedef void (*TSCCallback)(void *pPrivate, int argc, const char **argv);
56 * Client side IPC handles.
58 #define TSCHANDLE(n) struct n##_struct { int iDummy; }; typedef struct n##_struct *n
63 TSCHANDLE(TSC_IPC_HANDLE);
64 #define INVALID_IPC_HANDLE ((TSC_IPC_HANDLE) NULL)
67 * Asynchronous call handle.
69 TSCHANDLE(TSC_CALL_HANDLE);
71 #endif /* IPCTYPES_H */