~ubuntu-branches/ubuntu/quantal/rhythmbox/quantal

« back to all changes in this revision

Viewing changes to shell/rb-play-order-random-equal-weights.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2005-03-25 23:58:54 UTC
  • Revision ID: james.westby@ubuntu.com-20050325235854-2212vevw1u4074w8
Tags: upstream-0.8.8
ImportĀ upstreamĀ versionĀ 0.8.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* 
 
2
 *  arch-tag: Header for random navigation method with equal weights for each song
 
3
 *
 
4
 *  Copyright (C) 2003 Jeffrey Yasskin <jyasskin@mail.utexas.edu>
 
5
 *
 
6
 *  This program is free software; you can redistribute it and/or modify
 
7
 *  it under the terms of the GNU General Public License as published by
 
8
 *  the Free Software Foundation; either version 2 of the License, or
 
9
 *  (at your option) any later version.
 
10
 *
 
11
 *  This program is distributed in the hope that it will be useful,
 
12
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 *  GNU General Public License for more details.
 
15
 *
 
16
 *  You should have received a copy of the GNU General Public License
 
17
 *  along with this program; if not, write to the Free Software
 
18
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
19
 *
 
20
 */
 
21
 
 
22
#ifndef __RB_PLAY_ORDER_RANDOM_EQUAL_WEIGHTS_H
 
23
#define __RB_PLAY_ORDER_RANDOM_EQUAL_WEIGHTS_H
 
24
 
 
25
#include "rb-play-order-random.h"
 
26
 
 
27
#include "rb-shell-player.h"
 
28
 
 
29
G_BEGIN_DECLS
 
30
 
 
31
#define RB_TYPE_RANDOM_PLAY_ORDER_EQUAL_WEIGHTS         (rb_random_play_order_equal_weights_get_type ())
 
32
#define RB_RANDOM_PLAY_ORDER_EQUAL_WEIGHTS(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), RB_TYPE_RANDOM_PLAY_ORDER_EQUAL_WEIGHTS, RBRandomPlayOrderEqualWeights))
 
33
#define RB_RANDOM_PLAY_ORDER_EQUAL_WEIGHTS_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST ((k), RB_TYPE_RANDOM_PLAY_ORDER_EQUAL_WEIGHTS, RBRandomPlayOrderEqualWeightsClass))
 
34
#define RB_IS_RANDOM_PLAY_ORDER_EQUAL_WEIGHTS(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), RB_TYPE_RANDOM_PLAY_ORDER_EQUAL_WEIGHTS))
 
35
#define RB_IS_RANDOM_PLAY_ORDER_EQUAL_WEIGHTS_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_RANDOM_PLAY_ORDER_EQUAL_WEIGHTS))
 
36
#define RB_RANDOM_PLAY_ORDER_EQUAL_WEIGHTS_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_RANDOM_PLAY_ORDER_EQUAL_WEIGHTS, RBRandomPlayOrderEqualWeightsClass))
 
37
 
 
38
typedef struct
 
39
{
 
40
        RBRandomPlayOrder parent;
 
41
} RBRandomPlayOrderEqualWeights;
 
42
 
 
43
typedef struct
 
44
{
 
45
        RBRandomPlayOrderClass parent_class;
 
46
} RBRandomPlayOrderEqualWeightsClass;
 
47
 
 
48
GType                                   rb_random_play_order_equal_weights_get_type     (void);
 
49
 
 
50
RBPlayOrder *                           rb_random_play_order_equal_weights_new          (RBShellPlayer *player);
 
51
 
 
52
G_END_DECLS
 
53
 
 
54
#endif /* __RB_PLAY_ORDER_RANDOM_EQUAL_WEIGHTS_H */