1
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- *//*
2
* Copyright (C) 2001 Free Software Foundation
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.
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.
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.
19
* Authors: Eskil Heyn Olsen
22
#ifndef __TIME_CONDUIT_H__
23
#define __TIME_CONDUIT_H__
26
#include <gpilotd/gnome-pilot-conduit-standard.h>
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/"
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))
39
typedef struct ConduitCfg {
40
GnomePilotConduitSyncType sync_type; /* only used by capplet */