Example #1
0
static void asap_file_info_box(char *filename)
{
	ASAPInfo *info = asap_get_info(filename);
	char s[3 * ASAPInfo_MAX_TEXT_LENGTH + 100];
	char *p;
	if (info == NULL)
		return;
	p = asap_stpcpy(s, "Author: ");
	p = asap_stpcpy(p, ASAPInfo_GetAuthor(info));
	p = asap_stpcpy(p, "\nName: ");
	p = asap_stpcpy(p, ASAPInfo_GetTitle(info));
	p = asap_stpcpy(p, "\nDate: ");
	p = asap_stpcpy(p, ASAPInfo_GetDate(info));
	*p = '\0';
	ASAPInfo_Delete(info);
	asap_show_message("File information", s);
}
Example #2
0
static void asap_file_info_box(char *filename)
{
	ASAP_ModuleInfo module_info;
	char info[512];
	char *p;
	if (!asap_load_file(filename))
		return;
	if (!ASAP_GetModuleInfo(&module_info, filename, module, module_len))
		return;
	p = asap_stpcpy(info, "Author: ");
	p = asap_stpcpy(p, module_info.author);
	p = asap_stpcpy(p, "\nName: ");
	p = asap_stpcpy(p, module_info.name);
	p = asap_stpcpy(p, "\nDate: ");
	p = asap_stpcpy(p, module_info.date);
	*p = '\0';
	asap_show_message("File information", info);
}
Example #3
0
static void asap_about(void)
{
	asap_show_message("About ASAP XMMS plugin " ASAPInfo_VERSION,
		ASAPInfo_CREDITS "\n" ASAPInfo_COPYRIGHT);
}