• R/O
  • SSH
  • HTTPS

felicalib: Commit


Commit MetaInfo

Revisão93 (tree)
Hora2008-06-08 21:32:14
Autortmurakam

Mensagem de Log

add pasori2_open()

Mudança Sumário

Diff

--- trunk/src/include/felicalib.h (revision 92)
+++ trunk/src/include/felicalib.h (revision 93)
@@ -99,6 +99,7 @@
9999 #endif
100100
101101 pasori *pasori_open(char *);
102+pasori *pasori_open2(TCHAR *);
102103 void pasori_close(pasori *);
103104
104105 int pasori_init(pasori *);
--- trunk/src/lib/felicalib.c (revision 92)
+++ trunk/src/lib/felicalib.c (revision 93)
@@ -52,7 +52,6 @@
5252 */
5353 pasori *pasori_open(char *dummy)
5454 {
55- pasori *p;
5655 TCHAR cp[_MAX_PATH], dllpath[_MAX_PATH];
5756
5857 /* get felica.dll path */
@@ -59,6 +58,13 @@
5958 SHGetSpecialFolderPath(NULL, cp, CSIDL_PROGRAM_FILES_COMMON, FALSE);
6059 _stprintf(dllpath, _T("%s\\Sony Shared\\FeliCaLibrary\\felica.dll"), cp);
6160
61+ return pasori_open2(dllpath);
62+}
63+
64+pasori *pasori_open2(TCHAR *dllpath)
65+{
66+ pasori *p;
67+
6268 /* open felica.dll */
6369 p = (pasori *)malloc(sizeof(pasori));
6470 p->hInstDLL = LoadLibrary(dllpath);
Show on old repository browser