| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
#include "config.h" |
| 23 |
|
| 24 |
#include "dex-infinite-private.h" |
| 25 |
|
| 26 |
typedef struct _DexInfinite |
| 27 |
{ |
| 28 |
DexFuture parent_instance; |
| 29 |
} DexInfinite; |
| 30 |
|
| 31 |
typedef struct _DexInfiniteClass |
| 32 |
{ |
| 33 |
DexFutureClass parent_class; |
| 34 |
} DexInfiniteClass; |
| 35 |
|
| 36 |
DEX_DEFINE_FINAL_TYPE (DexInfinite, dex_infinite, DEX_TYPE_FUTURE) |
| 37 |
|
| 38 |
#undef DEX_TYPE_INFINITE |
| 39 |
#define DEX_TYPE_INFINITE dex_infinite_type |
| 40 |
|
| 41 |
static void |
| 42 |
dex_infinite_discard (DexFuture *future) |
| 43 |
{ |
| 44 |
} |
| 45 |
|
| 46 |
static gboolean |
| 47 |
dex_infinite_propagate (DexFuture *future, |
| 48 |
DexFuture *completed) |
| 49 |
{ |
| 50 |
g_return_val_if_reached (FALSE); |
| 51 |
} |
| 52 |
|
| 53 |
static void |
| 54 |
dex_infinite_class_init (DexInfiniteClass *infinite_class) |
| 55 |
{ |
| 56 |
DexFutureClass *future_class = DEX_FUTURE_CLASS (infinite_class); |
| 57 |
|
| 58 |
future_class->propagate = dex_infinite_propagate; |
| 59 |
future_class->discard = dex_infinite_discard; |
| 60 |
} |
| 61 |
|
| 62 |
static void |
| 63 |
dex_infinite_init (DexInfinite *infinite) |
| 64 |
{ |
| 65 |
} |
| 66 |
|
| 67 |
DexFuture * |
| 68 |
dex_infinite_new (void) |
| 69 |
{ |
| 70 |
return (DexFuture *)dex_object_create_instance (dex_infinite_type); |
| 71 |
} |