X-Git-Url: http://wpitchoune.net/gitweb/?p=psensor-pkg-debian.git;a=blobdiff_plain;f=src%2Fpxdg.h;fp=src%2Fpxdg.h;h=78aa571e814dbdb6d1cd66f74700b3a81f060588;hp=0000000000000000000000000000000000000000;hb=e248180cc4ebc258fdd5778a26c08287089165b1;hpb=162a992f0f857ef0969d64206b9762f0d054528f diff --git a/src/pxdg.h b/src/pxdg.h new file mode 100644 index 0000000..78aa571 --- /dev/null +++ b/src/pxdg.h @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2010-2014 jeanfi@gmail.com + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + * 02110-1301 USA + */ +#ifndef _PXDG_H_ +#define _PXDG_H_ + +/* + * returns: + * - 1 if psensor is currently launch during session startup. + * - 0 if psensor is not currently launch during session startup. + * - -1 if it cannot be determined. + */ +int pxdg_is_autostarted(); +void pxdg_set_autostart(unsigned int); + +#endif