294702d3f1
Cut down on boilerplate by using the (no longer that) new helper macros. We don't care about breaking ABI in private libraries, so use G_DECLARE_FINAL_TYPE even where the class struct used to be exposed in the header, except for types we inherit from ourselves (obviously) or where the class exposes any vfuncs (where changes could affect inheritance in extensions).
26 lines
806 B
C
26 lines
806 B
C
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
|
#ifndef __SHELL_APP_USAGE_H__
|
|
#define __SHELL_APP_USAGE_H__
|
|
|
|
#include "shell-app.h"
|
|
#include "shell-window-tracker.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define SHELL_TYPE_APP_USAGE (shell_app_usage_get_type ())
|
|
G_DECLARE_FINAL_TYPE (ShellAppUsage, shell_app_usage,
|
|
SHELL, APP_USAGE, GObject)
|
|
|
|
ShellAppUsage* shell_app_usage_get_default(void);
|
|
|
|
GSList *shell_app_usage_get_most_used (ShellAppUsage *usage,
|
|
const char *context);
|
|
int shell_app_usage_compare (ShellAppUsage *self,
|
|
const char *context,
|
|
const char *id_a,
|
|
const char *id_b);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __SHELL_APP_USAGE_H__ */
|