You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
134 lines
4.2 KiB
134 lines
4.2 KiB
![]()
2 years ago
|
/************************************************************************
|
||
|
|
||
|
Copyright (c) 2005-2011 by Juphoon System Software, Inc.
|
||
|
All rights reserved.
|
||
|
|
||
|
This software is confidential and proprietary to Juphoon System,
|
||
|
Inc. No part of this software may be reproduced, stored, transmitted,
|
||
|
disclosed or used in any form or by any means other than as expressly
|
||
|
provided by the written license agreement between Juphoon and its
|
||
|
licensee.
|
||
|
|
||
|
THIS SOFTWARE IS PROVIDED BY JUPHOON "AS IS" AND ANY EXPRESS OR
|
||
|
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||
|
ARE DISCLAIMED. IN NO EVENT SHALL JUPHOON BE LIABLE FOR ANY DIRECT,
|
||
|
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||
|
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||
|
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
||
|
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||
|
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||
|
POSSIBILITY OF SUCH DAMAGE.
|
||
|
|
||
|
Juphoon System Software, Inc.
|
||
|
Email: support@juphoon.com
|
||
|
Web: http://www.juphoon.com
|
||
|
|
||
|
************************************************************************/
|
||
|
/*************************************************
|
||
|
File name : mtc_cli_cb.h
|
||
|
Module : multimedia talk client
|
||
|
Author : leo.lv
|
||
|
Created on : 2011-01-03
|
||
|
Description :
|
||
|
Macros and structure definitions required by the mtc client callback.
|
||
|
|
||
|
Modify History:
|
||
|
1. Date: Author: Modification:
|
||
|
*************************************************/
|
||
|
#ifndef _MTC_CLI_CB_H__
|
||
|
#define _MTC_CLI_CB_H__
|
||
|
|
||
|
#include "mtc_def.h"
|
||
|
|
||
|
/**
|
||
|
* @file mtc_cli_cb.h
|
||
|
* @brief MTC Client Callback Interface Functions.
|
||
|
*/
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
/** @brief Type define of MTC client callback. */
|
||
|
typedef int (*PFN_MTCUIEVNT)(void *zEvntId);
|
||
|
|
||
|
/**
|
||
|
* @brief Type define of MTC client callback for post print message.
|
||
|
* @param pcStr is the print string.
|
||
|
*/
|
||
|
typedef int (*PFN_MTCCLIPRINT)(const char *pcStr);
|
||
|
|
||
|
/**
|
||
|
* @brief Type define of MTC client callback for post print message.
|
||
|
* @param pcLevel is the level info.
|
||
|
* @param pcTime is the time info.
|
||
|
* @param pcThreadInfo is the thread info.
|
||
|
* @param pcStr is the print string.
|
||
|
*/
|
||
|
typedef int (*PFN_MTCCLIPRINTX)(const char *pcLevel, const char *pcTime, const char *pcThreadInfo, const char *pcStr);
|
||
|
|
||
|
/**
|
||
|
* @brief Type define of MTC client callback for notify event to MTC user.
|
||
|
* @param pcName Notification name string.
|
||
|
* @param zCookie Cookie value.
|
||
|
* @param pcInfo Information string in json format.
|
||
|
*/
|
||
|
typedef int (*PFN_MTCCLINOTIFY)(const char * pcName, cookie_t zCookie,
|
||
|
const char * pcInfo);
|
||
|
|
||
|
/**
|
||
|
* @brief Type define of MTC GUI callback for abort.
|
||
|
*/
|
||
|
typedef bool (*PFN_MTCCLIABORT)(cookie_t zCookie, const char *pcDesc);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
EXPORT_FLAG {
|
||
|
#endif
|
||
|
|
||
|
/**
|
||
|
* @brief Set the Zos_Printf string print callback.
|
||
|
* Zos print and log functions will always call it if callback is not ZNULL.
|
||
|
*
|
||
|
* @param [in] pfnCb Callback function.
|
||
|
*/
|
||
|
MTCFUNC void Mtc_CliCbSetPrint(PFN_MTCCLIPRINT pfnCb);
|
||
|
|
||
|
/**
|
||
|
* @brief Set the Zos_Printf string print callback.
|
||
|
* Zos print and log functions will always call it if callback is not ZNULL.
|
||
|
*
|
||
|
* @param [in] pfnCb Callback function.
|
||
|
*/
|
||
|
MTCFUNC void Mtc_CliCbSetPrintX(PFN_MTCCLIPRINTX pfnCb);
|
||
|
|
||
|
/**
|
||
|
* @brief Set the service event callback to MTC driver owner.
|
||
|
* @param [in] pfnCb Callback function.
|
||
|
*/
|
||
|
MTCFUNC void Mtc_CliCbSetNotify(PFN_MTCCLINOTIFY pfnCb);
|
||
|
|
||
|
/**
|
||
|
* @brief Set the service event callback to MTC driver owner.
|
||
|
* @param [in] pfnCb Callback function.
|
||
|
*/
|
||
|
MTCFUNC int Mtc_CliCbSetEvent(PFN_MTCUIEVNT pfnCb);
|
||
|
|
||
|
/**
|
||
|
* @brief Set callback for abort.
|
||
|
*
|
||
|
* @param pfnCallback Callback function for abort.
|
||
|
* @param zCookie Cookie value in notification.
|
||
|
*/
|
||
|
MTCFUNC int Mtc_CliCbSetAbort(PFN_MTCCLIABORT pfnCallback, cookie_t zCookie);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#endif /* _MTC_CLI_CB_H__ */
|