File: gpg_init.c

package info (click to toggle)
x42-plugins 20180803-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 14,752 kB
  • sloc: ansic: 94,316; cpp: 6,670; makefile: 3,388; objc: 951; sh: 75
file content (24 lines) | stat: -rw-r--r-- 581 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifdef WITH_SIGNATURE // gpg sign tested releases
#include "lv2_rgext.h"
#ifdef _WIN32
# include <windows.h>
#endif
#include "gp3.h"
#include <sys/types.h>
#include <sys/stat.h>

/* test if file exists and is a regular file - returns 1 if ok */
static int testfile (const char *filename) {
	struct stat s;
	if (!filename || strlen(filename) < 1) return 0;
	int result= stat(filename, &s);
	if (result != 0) return 0; /* stat() failed */
	if (S_ISREG(s.st_mode)) return 1; /* is a regular file - ok */
	return 0;
}

struct license_info {
	char name[64];
	char store[128];
};
#endif