~ubuntu-branches/ubuntu/edgy/gnome-pilot-conduits/edgy

« back to all changes in this revision

Viewing changes to time/time-conduit.h

  • Committer: Bazaar Package Importer
  • Author(s): Mike Markley
  • Date: 2005-01-17 01:08:21 UTC
  • Revision ID: james.westby@ubuntu.com-20050117010821-d8omp6psfwhzdmna
Tags: upstream-2.0.12
ImportĀ upstreamĀ versionĀ 2.0.12

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- *//* 
 
2
 * Copyright (C) 2001 Free Software Foundation
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or
 
5
 * modify it under the terms of the GNU General Public License as
 
6
 * published by the Free Software Foundation; either version 2 of the
 
7
 * License, or (at your option) any later version.
 
8
 *
 
9
 * This program is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
12
 * General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU General Public
 
15
 * License along with this program; if not, write to the
 
16
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
17
 * Boston, MA 02111-1307, USA.
 
18
 *
 
19
 * Authors: Eskil Heyn Olsen
 
20
 */
 
21
 
 
22
#ifndef __TIME_CONDUIT_H__
 
23
#define __TIME_CONDUIT_H__
 
24
 
 
25
#include <time.h>
 
26
#include <gpilotd/gnome-pilot-conduit-standard.h>
 
27
 
 
28
#define OBJ_DATA_CONDUIT "conduit_data"
 
29
#define OBJ_DATA_CONFIG  "conduit_config"
 
30
#define OBJ_DATA_OLDCONFIG  "conduit_oldconfig"
 
31
#define OBJ_DATA_CONFIG_WINDOW  "config_window"
 
32
#define CONFIG_PREFIX    "/gnome-pilot.d/time-conduit/Pilot_%u/"
 
33
 
 
34
#define GET_CONDUIT_CFG(s) ((ConduitCfg*)gtk_object_get_data(GTK_OBJECT(s),OBJ_DATA_CONFIG))
 
35
#define GET_CONDUIT_OLDCFG(s) ((ConduitCfg*)gtk_object_get_data(GTK_OBJECT(s),OBJ_DATA_OLDCONFIG))
 
36
#define GET_CONDUIT_DATA(s) ((ConduitData*)gtk_object_get_data(GTK_OBJECT(s),OBJ_DATA_CONDUIT))
 
37
#define GET_CONDUIT_WINDOW(s) ((GtkWidget*)gtk_object_get_data(GTK_OBJECT(s),OBJ_DATA_CONFIG_WINDOW))
 
38
 
 
39
typedef struct ConduitCfg {
 
40
        GnomePilotConduitSyncType  sync_type;   /* only used by capplet */
 
41
        guint32 pilotId;
 
42
        time_t t;
 
43
} ConduitCfg;
 
44
 
 
45
#endif