File: util.h

package info (click to toggle)
slim 1.4.1-2.2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,780 kB
  • sloc: cpp: 4,383; sh: 202; makefile: 23
file content (25 lines) | stat: -rw-r--r-- 651 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* SLiM - Simple Login Manager
   Copyright (C) 2009 Eygene Ryabinkin <rea@codelabs.ru>

   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.
*/
#ifndef _UTIL_H__
#define _UTIL_H__

#include <string>

namespace Util
{
	bool add_mcookie(const std::string &mcookie, const char *display,
		const std::string &xauth_cmd, const std::string &authfile);

	void srandom(unsigned long seed);
	long random(void);

	long makeseed(void);
}

#endif /* _UTIL_H__ */