util.h 658 B

123456789101112131415161718192021222324
  1. /* SLiM - Simple Login Manager
  2. Copyright (C) 2009 Eygene Ryabinkin <rea@codelabs.ru>
  3. This program is free software; you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation; either version 2 of the License, or
  6. (at your option) any later version.
  7. */
  8. #ifndef __UTIL_H__
  9. #define __UTIL_H__
  10. #include <string>
  11. namespace Util {
  12. bool add_mcookie(const std::string &mcookie, const char *display,
  13. const std::string &xauth_cmd, const std::string &authfile);
  14. void srandom(unsigned long seed);
  15. long random(void);
  16. long makeseed(void);
  17. };
  18. #endif /* __UTIL_H__ */