guuid.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* guuid.h - UUID functions
  2. *
  3. * Copyright (C) 2013-2015, 2017 Red Hat, Inc.
  4. *
  5. * This library is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU Lesser General Public License as
  7. * published by the Free Software Foundation; either version 2.1 of the
  8. * licence, or (at your option) any later version.
  9. *
  10. * This is distributed in the hope that it will be useful, but WITHOUT
  11. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
  13. * License for more details.
  14. *
  15. * You should have received a copy of the GNU Lesser General Public
  16. * License along with this library; if not, write to the Free Software
  17. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
  18. * USA.
  19. *
  20. * Authors: Marc-André Lureau <marcandre.lureau@redhat.com>
  21. */
  22. #ifndef __G_UUID_H__
  23. #define __G_UUID_H__
  24. #if !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION)
  25. #error "Only <glib.h> can be included directly."
  26. #endif
  27. #include <glib/gtypes.h>
  28. G_BEGIN_DECLS
  29. GLIB_AVAILABLE_IN_2_52
  30. gboolean g_uuid_string_is_valid (const gchar *str);
  31. GLIB_AVAILABLE_IN_2_52
  32. gchar * g_uuid_string_random (void);
  33. G_END_DECLS
  34. #endif /* __G_UUID_H__ */