2017-05-24 10:46:42 +00:00
|
|
|
/*
|
|
|
|
* notify.h: OpenSC library header file
|
|
|
|
*
|
|
|
|
* Copyright (C) 2017 Frank Morgner <frankmorgner@gmail.com>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _NOTIFY_H
|
|
|
|
#define _NOTIFY_H
|
|
|
|
|
2017-10-30 19:02:37 +00:00
|
|
|
#include "ui/strings.h"
|
2017-05-24 10:46:42 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
void sc_notify_init(void);
|
|
|
|
void sc_notify_close(void);
|
|
|
|
void sc_notify(const char *title, const char *text);
|
|
|
|
void sc_notify_id(struct sc_context *ctx, struct sc_atr *atr,
|
|
|
|
struct sc_pkcs15_card *p15card, enum ui_str id);
|
|
|
|
|
2017-06-13 11:35:32 +00:00
|
|
|
#ifdef _WIN32
|
|
|
|
#include <windows.h>
|
|
|
|
/* If the code executes in a DLL, `sc_notify_instance_notify` should be
|
|
|
|
* initialized before calling `sc_notify_init()`. If not initialized, we're
|
|
|
|
* using the HINSTANCE of the EXE */
|
|
|
|
extern HINSTANCE sc_notify_instance;
|
2018-07-26 12:44:20 +00:00
|
|
|
/* This is the message created when the user clicks on "exit". */
|
|
|
|
#define WMAPP_EXIT (WM_APP + 2)
|
2017-06-13 11:35:32 +00:00
|
|
|
#endif
|
|
|
|
|
2017-05-24 10:46:42 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|