~jbicha/hud/build-depend-on-valac-not-gir

« back to all changes in this revision

Viewing changes to tests/hudrandomsource.h

  • Committer: Tarmac
  • Author(s): Ted Gould, Pete Woods, Antti Kaijanmäki, Ted Gould, Albert Astals, Ryan Lortie, Łukasz 'sil2100' Zemczak, Albert Astals Cid, Mathieu Trudel-Lapierre, Kaleo, Tarmac, Ricardo Salveti de Araujo, Michael Terry, Automatic PS uploader
  • Date: 2013-04-10 16:04:51 UTC
  • mfrom: (227.3.148 phablet)
  • Revision ID: tarmac-20130410160451-o3owpv3zaxulm5of
HUD 2.0 Merge.

Approved by PS Jenkins bot, Mathieu Trudel-Lapierre.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright © 2012 Canonical Ltd.
 
3
 *
 
4
 * This program is free software: you can redistribute it and/or modify it
 
5
 * under the terms of the GNU General Public License version 3, as
 
6
 * published by the Free Software Foundation.
 
7
 *
 
8
 * This program is distributed in the hope that it will be useful, but
 
9
 * WITHOUT ANY WARRANTY; without even the implied warranties of
 
10
 * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
 
11
 * PURPOSE.  See the GNU General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU General Public License along
 
14
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
 
15
 */
 
16
 
 
17
#ifndef HUDRANDOMSOURCE_H_
 
18
#define HUDRANDOMSOURCE_H_
 
19
 
 
20
#include <glib-object.h>
 
21
 
 
22
/*
 
23
 * Type macros.
 
24
 */
 
25
#define HUD_TYPE_RANDOM_SOURCE                  (hud_random_source_get_type ())
 
26
#define HUD_RANDOM_SOURCE(obj)                  (G_TYPE_CHECK_INSTANCE_CAST ((obj), HUD_TYPE_RANDOM_SOURCE, HudRandomSource))
 
27
#define HUD_IS_RANDOM_SOURCE(obj)               (G_TYPE_CHECK_INSTANCE_TYPE ((obj), HUD_TYPE_RANDOM_SOURCE))
 
28
#define HUD_RANDOM_SOURCE_CLASS(klass)          (G_TYPE_CHECK_CLASS_CAST ((klass), HUD_TYPE_RANDOM_SOURCE, HudRandomSourceClass))
 
29
#define HUD_IS_RANDOM_SOURCE_CLASS(klass)       (G_TYPE_CHECK_CLASS_TYPE ((klass), HUD_TYPE_RANDOM_SOURCE))
 
30
#define HUD_RANDOM_SOURCE_GET_CLASS(obj)        (G_TYPE_INSTANCE_GET_CLASS ((obj), HUD_TYPE_RANDOM_SOURCE, HudRandomSourceClass))
 
31
 
 
32
typedef struct _HudRandomSource        HudRandomSource;
 
33
 
 
34
/* used by HUD_TYPE_RANDOM_SOURCE */
 
35
GType hud_random_source_get_type (void);
 
36
 
 
37
/*
 
38
 * Method definitions.
 
39
 */
 
40
 
 
41
gchar * hud_random_source_make_words (GRand *rand,
 
42
    gint n_words);
 
43
 
 
44
HudSource * hud_random_source_new (GRand *rand);
 
45
 
 
46
HudSource * hud_random_source_new_full (GRand *rand, const gint max_depth,
 
47
    const gint max_items, const gint max_words, const gchar *application_id, const gchar *app_icon);
 
48
 
 
49
#endif /* HUDRANDOMSOURCE_H_ */