~ubuntu-core-dev/update-notifier/ubuntu

« back to all changes in this revision

Viewing changes to src/hooks.h

  • Committer: Balint Reczey
  • Date: 2020-06-11 18:46:02 UTC
  • Revision ID: balint.reczey@canonical.com-20200611184602-2rv1zan3xu723x2u
Moved to git at https://git.launchpad.net/update-notifier

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef _HOOKS_H_
2
 
#define _HOOKS_H_
3
 
 
4
 
 
5
 
 
6
 
gboolean check_update_hooks(TrayApplet *ta);
7
 
void hook_tray_icon_init(TrayApplet *ta);
8
 
 
9
 
 
10
 
 
11
 
typedef struct _HookFile HookFile;
12
 
struct _HookFile
13
 
{
14
 
   char *filename;
15
 
   time_t mtime;
16
 
   guint8 md5[16];
17
 
   gboolean cmd_run;
18
 
   gboolean seen;
19
 
};
20
 
 
21
 
 
22
 
typedef struct _HookTrayAppletPrivate HookTrayAppletPrivate;
23
 
struct _HookTrayAppletPrivate
24
 
{
25
 
   GtkWidget *dialog_hooks;
26
 
   GtkWidget *label_title;
27
 
   GtkWidget *textview_hook;
28
 
   GtkWidget *button_next;
29
 
   GtkWidget *button_run;
30
 
 
31
 
   // the list of all hook files
32
 
   GList *hook_files;   
33
 
 
34
 
   // the notification
35
 
   NotifyNotification *active_notification;
36
 
};
37
 
 
38
 
#endif