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

« back to all changes in this revision

Viewing changes to src/hooks.h

  • Committer: Balint Reczey
  • Date: 2019-09-20 20:02:13 UTC
  • mfrom: (975.1.4 master)
  • Revision ID: balint.reczey@canonical.com-20190920200213-8mx0d8aitaf1xo9c
MergeĀ lp:~rbalint/update-notifier/updates-available-world-readable

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