예제 #1
0
static int add_id(PyObject *module, const char* name, sd_id128_t id) {
        PyObject *obj;

        obj = make_uuid(id);
        if (!obj)
                return -1;

        return PyModule_AddObject(module, name, obj);
}
예제 #2
0
 /// Get a new UUID as a string, suitable as a session id.
 string_type make_session_id()
 {
   try {
       return boost::lexical_cast<string_type>(make_uuid());
   } catch (...) {
       // pass
   }
   return "";
 }
예제 #3
0
파일: util.cpp 프로젝트: cebu4u/Trickplay
String Util::make_v4_uuid()
{
    return make_uuid( UUID_MAKE_V4 );
}
예제 #4
0
파일: util.cpp 프로젝트: cebu4u/Trickplay
String Util::make_v1_uuid()
{
    return make_uuid( UUID_MAKE_V1 );
}