Logo Search packages:      
Sourcecode: herbstluftwm version File versions  Download package


/** Copyright 2011 Thorsten WiƟmann. All rights reserved.
 * This software is licensed under the "Simplified BSD License".
 * See LICENSE for details */


#include <glib.h>

enum {
    HS_String = 0,

00016 typedef struct {
    char*   name;
    union {
        int     i;
        char*   s;
    }   value;
    int type;
    void (*on_change)(); // what to call on change
} SettingsPair;

extern SettingsPair g_settings[];

void settings_init();
void settings_destroy();

SettingsPair* settings_find(char* name);

int settings_set(int argc, char** argv);
int settings_toggle(int argc, char** argv);
int settings_count();
int settings_get(int argc, char** argv, GString** output);


Generated by  Doxygen 1.6.0   Back to index