Merge from vendor branch TNF:
[pkgsrc.git] / comms / jpilot-libplugin / patches / patch-ad
1 $NetBSD$
2
3 --- libplugin.c.orig    Tue Feb 15 21:08:21 2000
4 +++ libplugin.c Thu Jun 15 22:13:01 2000
5 @@ -97,18 +97,21 @@
6  static int get_next_unique_pc_id(unsigned int *next_unique_id);
7  static FILE *open_file(char *filename, char *mode);  
8  
9 +#if 0
10  int jp_logf(int level, char *format, ...)
11  {
12     jpilot_logf(level, format);
13     return 0;
14  }
15 +#endif
16  
17 -/*
18  int null_logf(int level, char *format, ...)
19  {
20     return 0;
21  }
22  
23 +int (*jp_logf)(int level, char *format, ...) = null_logf;
24 +
25  void plugin_set_jpilot_logf(int (*Pjpilot_logf)(int level, char *format, ...))
26  {
27     if (Pjpilot_logf==NULL) {
28 @@ -118,7 +121,6 @@
29     jp_logf=Pjpilot_logf;
30     jp_logf(LOG_DEBUG, "I got the log function pointer\n");
31  }
32 -*/
33  
34  void plugin_version(int *major_version, int *minor_version)
35  {