Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
25
Src/Winamp/bookmark.cpp
Normal file
25
Src/Winamp/bookmark.cpp
Normal file
|
@ -0,0 +1,25 @@
|
|||
#include "main.h"
|
||||
#include "api.h"
|
||||
#include <stdio.h>
|
||||
|
||||
void Bookmark_additem(char *fn, char *ft)
|
||||
{
|
||||
FILE *fp;
|
||||
|
||||
fp=fopen(BOOKMARKFILE,"a+t");
|
||||
if (fp)
|
||||
{
|
||||
char *buf=(char*)malloc(lstrlen(fn)+lstrlen(ft)+3);
|
||||
fprintf(fp,"%s\n%s\n",fn,ft);
|
||||
fclose(fp);
|
||||
if (buf)
|
||||
{
|
||||
lstrcpy(buf,fn);
|
||||
lstrcpy(buf+lstrlen(buf)+1,ft);
|
||||
SendMessage(hMainWindow,WM_WA_IPC,(WPARAM)buf,IPC_ADDBOOKMARK);
|
||||
free(buf);
|
||||
AGAVE_API_STATS->IncrementStat(api_stats::BOOKMARK_COUNT);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue