~seb128/unity-settings-daemon/battery-info-key

« back to all changes in this revision

Viewing changes to plugins/xsettings/xsettings-manager.h

  • Committer: William Jon McCann
  • Author(s): William Jon McCann
  • Date: 2007-12-14 05:06:55 UTC
  • Revision ID: git-v1:b7f5d9895c19338f10b0bdd494b221b13b540d9d
Initial checkin. Previously lived in gdm module.

2007-12-14  William Jon McCann  <mccann@jhu.edu>

        * configure.ac, etc: Initial checkin.  Previously
        lived in gdm module.


svn path=/trunk/; revision=2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright © 2001 Red Hat, Inc.
 
3
 *
 
4
 * Permission to use, copy, modify, distribute, and sell this software and its
 
5
 * documentation for any purpose is hereby granted without fee, provided that
 
6
 * the above copyright notice appear in all copies and that both that
 
7
 * copyright notice and this permission notice appear in supporting
 
8
 * documentation, and that the name of Red Hat not be used in advertising or
 
9
 * publicity pertaining to distribution of the software without specific,
 
10
 * written prior permission.  Red Hat makes no representations about the
 
11
 * suitability of this software for any purpose.  It is provided "as is"
 
12
 * without express or implied warranty.
 
13
 *
 
14
 * RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
 
15
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL RED HAT
 
16
 * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 
17
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
 
18
 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 
 
19
 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
20
 *
 
21
 * Author:  Owen Taylor, Red Hat, Inc.
 
22
 */
 
23
#ifndef XSETTINGS_MANAGER_H
 
24
#define XSETTINGS_MANAGER_H
 
25
 
 
26
#include <X11/Xlib.h>
 
27
#include "xsettings-common.h"
 
28
 
 
29
#ifdef __cplusplus
 
30
extern "C" {
 
31
#endif /* __cplusplus */
 
32
 
 
33
typedef struct _XSettingsManager XSettingsManager;
 
34
 
 
35
typedef void (*XSettingsTerminateFunc)  (void *cb_data);
 
36
 
 
37
Bool xsettings_manager_check_running (Display *display,
 
38
                                      int      screen);
 
39
 
 
40
XSettingsManager *xsettings_manager_new (Display                *display,
 
41
                                         int                     screen,
 
42
                                         XSettingsTerminateFunc  terminate,
 
43
                                         void                   *cb_data);
 
44
 
 
45
void   xsettings_manager_destroy       (XSettingsManager *manager);
 
46
Window xsettings_manager_get_window    (XSettingsManager *manager);
 
47
Bool   xsettings_manager_process_event (XSettingsManager *manager,
 
48
                                        XEvent           *xev);
 
49
 
 
50
XSettingsResult xsettings_manager_delete_setting (XSettingsManager *manager,
 
51
                                                  const char       *name);
 
52
XSettingsResult xsettings_manager_set_setting    (XSettingsManager *manager,
 
53
                                                  XSettingsSetting *setting);
 
54
XSettingsResult xsettings_manager_set_int        (XSettingsManager *manager,
 
55
                                                  const char       *name,
 
56
                                                  int               value);
 
57
XSettingsResult xsettings_manager_set_string     (XSettingsManager *manager,
 
58
                                                  const char       *name,
 
59
                                                  const char       *value);
 
60
XSettingsResult xsettings_manager_set_color      (XSettingsManager *manager,
 
61
                                                  const char       *name,
 
62
                                                  XSettingsColor   *value);
 
63
XSettingsResult xsettings_manager_notify         (XSettingsManager *manager);
 
64
 
 
65
 
 
66
 
 
67
#ifdef __cplusplus
 
68
}
 
69
#endif /* __cplusplus */
 
70
 
 
71
#endif /* XSETTINGS_MANAGER_H */