code
stringlengths 3
10M
| language
stringclasses 31
values |
---|---|
/**
* Forms the symbols available to all D programs. Includes Object, which is
* the root of the class object hierarchy. This module is implicitly
* imported.
* Macros:
* WIKI = Object
*
* Copyright: Copyright Digital Mars 2000 - 2011.
* License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.
* Authors: Walter Bright, Sean Kelly
*/
/* Copyright Digital Mars 2000 - 2011.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
module object;
//debug=PRINTF;
private
{
import core.atomic;
import core.stdc.string;
import core.stdc.stdlib;
import core.memory;
import rt.util.hash;
import rt.util.string;
import rt.util.console;
import rt.minfo;
debug(PRINTF) import core.stdc.stdio;
extern (C) void onOutOfMemoryError();
extern (C) Object _d_newclass(const TypeInfo_Class ci);
extern (C) void _d_arrayshrinkfit(const TypeInfo ti, void[] arr);
extern (C) size_t _d_arraysetcapacity(const TypeInfo ti, size_t newcapacity, void *arrptr) pure nothrow;
extern (C) void rt_finalize(void *data, bool det=true);
}
version (druntime_unittest)
{
string __unittest_toString(T)(T) { return T.stringof; }
}
// NOTE: For some reason, this declaration method doesn't work
// in this particular file (and this file only). It must
// be a DMD thing.
//alias typeof(int.sizeof) size_t;
//alias typeof(cast(void*)0 - cast(void*)0) ptrdiff_t;
version(D_LP64)
{
alias ulong size_t;
alias long ptrdiff_t;
}
else
{
alias uint size_t;
alias int ptrdiff_t;
}
alias ptrdiff_t sizediff_t; //For backwards compatibility only.
alias size_t hash_t; //For backwards compatibility only.
alias bool equals_t; //For backwards compatibility only.
alias immutable(char)[] string;
alias immutable(wchar)[] wstring;
alias immutable(dchar)[] dstring;
/**
* All D class objects inherit from Object.
*/
class Object
{
/**
* Convert Object to a human readable string.
*/
string toString()
{
return this.classinfo.name;
}
/**
* Compute hash function for Object.
*/
size_t toHash() @trusted nothrow
{
// BUG: this prevents a compacting GC from working, needs to be fixed
return cast(size_t)cast(void*)this;
}
/**
* Compare with another Object obj.
* Returns:
* $(TABLE
* $(TR $(TD this < obj) $(TD < 0))
* $(TR $(TD this == obj) $(TD 0))
* $(TR $(TD this > obj) $(TD > 0))
* )
*/
int opCmp(Object o)
{
// BUG: this prevents a compacting GC from working, needs to be fixed
//return cast(int)cast(void*)this - cast(int)cast(void*)o;
throw new Exception("need opCmp for class " ~ this.classinfo.name);
//return this !is o;
}
/**
* Returns !=0 if this object does have the same contents as obj.
*/
bool opEquals(Object o)
{
return this is o;
}
interface Monitor
{
void lock();
void unlock();
}
/**
* Create instance of class specified by classname.
* The class must either have no constructors or have
* a default constructor.
* Returns:
* null if failed
*/
static Object factory(string classname)
{
auto ci = TypeInfo_Class.find(classname);
if (ci)
{
return ci.create();
}
return null;
}
}
/************************
* Returns true if lhs and rhs are equal.
*/
bool opEquals(const Object lhs, const Object rhs)
{
// A hack for the moment.
return opEquals(cast()lhs, cast()rhs);
}
bool opEquals(Object lhs, Object rhs)
{
// If aliased to the same object or both null => equal
if (lhs is rhs) return true;
// If either is null => non-equal
if (lhs is null || rhs is null) return false;
// If same exact type => one call to method opEquals
if (typeid(lhs) is typeid(rhs) || typeid(lhs).opEquals(typeid(rhs)))
return lhs.opEquals(rhs);
// General case => symmetric calls to method opEquals
return lhs.opEquals(rhs) && rhs.opEquals(lhs);
}
/**
* Information about an interface.
* When an object is accessed via an interface, an Interface* appears as the
* first entry in its vtbl.
*/
struct Interface
{
TypeInfo_Class classinfo; /// .classinfo for this interface (not for containing class)
void*[] vtbl;
ptrdiff_t offset; /// offset to Interface 'this' from Object 'this'
}
/**
* Runtime type information about a class. Can be retrieved for any class type
* or instance by using the .classinfo property.
* A pointer to this appears as the first entry in the class's vtbl[].
*/
alias TypeInfo_Class Classinfo;
/**
* Array of pairs giving the offset and type information for each
* member in an aggregate.
*/
struct OffsetTypeInfo
{
size_t offset; /// Offset of member from start of object
TypeInfo ti; /// TypeInfo for this member
}
/**
* Runtime type information about a type.
* Can be retrieved for any type using a
* <a href="../expression.html#typeidexpression">TypeidExpression</a>.
*/
class TypeInfo
{
override string toString() const
{
// hack to keep const qualifiers for TypeInfo member functions
return (cast()super).toString();
}
override size_t toHash() @trusted const
{
try
{
auto data = this.toString();
return hashOf(data.ptr, data.length);
}
catch (Throwable)
{
// This should never happen; remove when toString() is made nothrow
// BUG: this prevents a compacting GC from working, needs to be fixed
return cast(size_t)cast(void*)this;
}
}
override int opCmp(Object o)
{
if (this is o)
return 0;
TypeInfo ti = cast(TypeInfo)o;
if (ti is null)
return 1;
return dstrcmp(this.toString(), ti.toString());
}
override bool opEquals(Object o)
{
/* TypeInfo instances are singletons, but duplicates can exist
* across DLL's. Therefore, comparing for a name match is
* sufficient.
*/
if (this is o)
return true;
auto ti = cast(const TypeInfo)o;
return ti && this.toString() == ti.toString();
}
/// Returns a hash of the instance of a type.
size_t getHash(in void* p) @trusted nothrow const { return cast(size_t)p; }
/// Compares two instances for equality.
bool equals(in void* p1, in void* p2) const { return p1 == p2; }
/// Compares two instances for <, ==, or >.
int compare(in void* p1, in void* p2) const { return 0; }
/// Returns size of the type.
@property size_t tsize() nothrow pure const @safe { return 0; }
/// Swaps two instances of the type.
void swap(void* p1, void* p2) const
{
size_t n = tsize;
for (size_t i = 0; i < n; i++)
{
byte t = (cast(byte *)p1)[i];
(cast(byte*)p1)[i] = (cast(byte*)p2)[i];
(cast(byte*)p2)[i] = t;
}
}
/// Get TypeInfo for 'next' type, as defined by what kind of type this is,
/// null if none.
@property inout(TypeInfo) next() nothrow pure inout { return null; }
/// Return default initializer. If the type should be initialized to all zeros,
/// an array with a null ptr and a length equal to the type size will be returned.
// TODO: make this a property, but may need to be renamed to diambiguate with T.init...
const(void)[] init() nothrow pure const @safe { return null; }
/// Get flags for type: 1 means GC should scan for pointers
@property uint flags() nothrow pure const @safe { return 0; }
/// Get type information on the contents of the type; null if not available
const(OffsetTypeInfo)[] offTi() const { return null; }
/// Run the destructor on the object and all its sub-objects
void destroy(void* p) const {}
/// Run the postblit on the object and all its sub-objects
void postblit(void* p) const {}
/// Return alignment of type
@property size_t talign() nothrow pure const @safe { return tsize; }
/** Return internal info on arguments fitting into 8byte.
* See X86-64 ABI 3.2.3
*/
version (X86_64) int argTypes(out TypeInfo arg1, out TypeInfo arg2) @safe nothrow
{
arg1 = this;
return 0;
}
/** Return info used by the garbage collector to do precise collection.
*/
@property immutable(void)* rtInfo() nothrow pure const @safe { return null; }
}
class TypeInfo_Typedef : TypeInfo
{
override string toString() const { return name; }
override bool opEquals(Object o)
{
if (this is o)
return true;
auto c = cast(const TypeInfo_Typedef)o;
return c && this.name == c.name &&
this.base == c.base;
}
override size_t getHash(in void* p) const { return base.getHash(p); }
override bool equals(in void* p1, in void* p2) const { return base.equals(p1, p2); }
override int compare(in void* p1, in void* p2) const { return base.compare(p1, p2); }
override @property size_t tsize() nothrow pure const { return base.tsize; }
override void swap(void* p1, void* p2) const { return base.swap(p1, p2); }
override @property inout(TypeInfo) next() nothrow pure inout { return base.next; }
override @property uint flags() nothrow pure const { return base.flags; }
override const(void)[] init() nothrow pure const @safe { return m_init.length ? m_init : base.init(); }
override @property size_t talign() nothrow pure const { return base.talign; }
version (X86_64) override int argTypes(out TypeInfo arg1, out TypeInfo arg2)
{
return base.argTypes(arg1, arg2);
}
override @property immutable(void)* rtInfo() const { return base.rtInfo; }
TypeInfo base;
string name;
void[] m_init;
}
class TypeInfo_Enum : TypeInfo_Typedef
{
}
class TypeInfo_Pointer : TypeInfo
{
override string toString() const { return m_next.toString() ~ "*"; }
override bool opEquals(Object o)
{
if (this is o)
return true;
auto c = cast(const TypeInfo_Pointer)o;
return c && this.m_next == c.m_next;
}
override size_t getHash(in void* p) @trusted const
{
return cast(size_t)*cast(void**)p;
}
override bool equals(in void* p1, in void* p2) const
{
return *cast(void**)p1 == *cast(void**)p2;
}
override int compare(in void* p1, in void* p2) const
{
if (*cast(void**)p1 < *cast(void**)p2)
return -1;
else if (*cast(void**)p1 > *cast(void**)p2)
return 1;
else
return 0;
}
override @property size_t tsize() nothrow pure const
{
return (void*).sizeof;
}
override void swap(void* p1, void* p2) const
{
void* tmp = *cast(void**)p1;
*cast(void**)p1 = *cast(void**)p2;
*cast(void**)p2 = tmp;
}
override @property inout(TypeInfo) next() nothrow pure inout { return m_next; }
override @property uint flags() nothrow pure const { return 1; }
TypeInfo m_next;
}
class TypeInfo_Array : TypeInfo
{
override string toString() const { return value.toString() ~ "[]"; }
override bool opEquals(Object o)
{
if (this is o)
return true;
auto c = cast(const TypeInfo_Array)o;
return c && this.value == c.value;
}
override size_t getHash(in void* p) @trusted const
{
void[] a = *cast(void[]*)p;
return hashOf(a.ptr, a.length * value.tsize);
}
override bool equals(in void* p1, in void* p2) const
{
void[] a1 = *cast(void[]*)p1;
void[] a2 = *cast(void[]*)p2;
if (a1.length != a2.length)
return false;
size_t sz = value.tsize;
for (size_t i = 0; i < a1.length; i++)
{
if (!value.equals(a1.ptr + i * sz, a2.ptr + i * sz))
return false;
}
return true;
}
override int compare(in void* p1, in void* p2) const
{
void[] a1 = *cast(void[]*)p1;
void[] a2 = *cast(void[]*)p2;
size_t sz = value.tsize;
size_t len = a1.length;
if (a2.length < len)
len = a2.length;
for (size_t u = 0; u < len; u++)
{
int result = value.compare(a1.ptr + u * sz, a2.ptr + u * sz);
if (result)
return result;
}
return cast(int)a1.length - cast(int)a2.length;
}
override @property size_t tsize() nothrow pure const
{
return (void[]).sizeof;
}
override void swap(void* p1, void* p2) const
{
void[] tmp = *cast(void[]*)p1;
*cast(void[]*)p1 = *cast(void[]*)p2;
*cast(void[]*)p2 = tmp;
}
TypeInfo value;
override @property inout(TypeInfo) next() nothrow pure inout
{
return value;
}
override @property uint flags() nothrow pure const { return 1; }
override @property size_t talign() nothrow pure const
{
return (void[]).alignof;
}
version (X86_64) override int argTypes(out TypeInfo arg1, out TypeInfo arg2)
{
arg1 = typeid(size_t);
arg2 = typeid(void*);
return 0;
}
}
class TypeInfo_StaticArray : TypeInfo
{
override string toString() const
{
char[20] tmp = void;
return cast(string)(value.toString() ~ "[" ~ tmp.uintToString(len) ~ "]");
}
override bool opEquals(Object o)
{
if (this is o)
return true;
auto c = cast(const TypeInfo_StaticArray)o;
return c && this.len == c.len &&
this.value == c.value;
}
override size_t getHash(in void* p) @trusted const
{
size_t sz = value.tsize;
size_t hash = 0;
for (size_t i = 0; i < len; i++)
hash += value.getHash(p + i * sz);
return hash;
}
override bool equals(in void* p1, in void* p2) const
{
size_t sz = value.tsize;
for (size_t u = 0; u < len; u++)
{
if (!value.equals(p1 + u * sz, p2 + u * sz))
return false;
}
return true;
}
override int compare(in void* p1, in void* p2) const
{
size_t sz = value.tsize;
for (size_t u = 0; u < len; u++)
{
int result = value.compare(p1 + u * sz, p2 + u * sz);
if (result)
return result;
}
return 0;
}
override @property size_t tsize() nothrow pure const
{
return len * value.tsize;
}
override void swap(void* p1, void* p2) const
{
void* tmp;
size_t sz = value.tsize;
ubyte[16] buffer;
void* pbuffer;
if (sz < buffer.sizeof)
tmp = buffer.ptr;
else
tmp = pbuffer = (new void[sz]).ptr;
for (size_t u = 0; u < len; u += sz)
{
size_t o = u * sz;
memcpy(tmp, p1 + o, sz);
memcpy(p1 + o, p2 + o, sz);
memcpy(p2 + o, tmp, sz);
}
if (pbuffer)
GC.free(pbuffer);
}
override const(void)[] init() nothrow pure const { return value.init(); }
override @property inout(TypeInfo) next() nothrow pure inout { return value; }
override @property uint flags() nothrow pure const { return value.flags; }
override void destroy(void* p) const
{
auto sz = value.tsize;
p += sz * len;
foreach (i; 0 .. len)
{
p -= sz;
value.destroy(p);
}
}
override void postblit(void* p) const
{
auto sz = value.tsize;
foreach (i; 0 .. len)
{
value.postblit(p);
p += sz;
}
}
TypeInfo value;
size_t len;
override @property size_t talign() nothrow pure const
{
return value.talign;
}
version (X86_64) override int argTypes(out TypeInfo arg1, out TypeInfo arg2)
{
arg1 = typeid(void*);
return 0;
}
}
class TypeInfo_AssociativeArray : TypeInfo
{
override string toString() const
{
return cast(string)(next.toString() ~ "[" ~ key.toString() ~ "]");
}
override bool opEquals(Object o)
{
if (this is o)
return true;
auto c = cast(const TypeInfo_AssociativeArray)o;
return c && this.key == c.key &&
this.value == c.value;
}
override hash_t getHash(in void* p) nothrow @trusted const
{
return _aaGetHash(cast(void*)p, this);
}
// BUG: need to add the rest of the functions
override @property size_t tsize() nothrow pure const
{
return (char[int]).sizeof;
}
override @property inout(TypeInfo) next() nothrow pure inout { return value; }
override @property uint flags() nothrow pure const { return 1; }
TypeInfo value;
TypeInfo key;
TypeInfo impl;
override @property size_t talign() nothrow pure const
{
return (char[int]).alignof;
}
version (X86_64) override int argTypes(out TypeInfo arg1, out TypeInfo arg2)
{
arg1 = typeid(void*);
return 0;
}
}
class TypeInfo_Vector : TypeInfo
{
override string toString() const { return "__vector(" ~ base.toString() ~ ")"; }
override bool opEquals(Object o)
{
if (this is o)
return true;
auto c = cast(const TypeInfo_Vector)o;
return c && this.base == c.base;
}
override size_t getHash(in void* p) const { return base.getHash(p); }
override bool equals(in void* p1, in void* p2) const { return base.equals(p1, p2); }
override int compare(in void* p1, in void* p2) const { return base.compare(p1, p2); }
override @property size_t tsize() nothrow pure const { return base.tsize; }
override void swap(void* p1, void* p2) const { return base.swap(p1, p2); }
override @property inout(TypeInfo) next() nothrow pure inout { return base.next; }
override @property uint flags() nothrow pure const { return base.flags; }
override const(void)[] init() nothrow pure const { return base.init(); }
override @property size_t talign() nothrow pure const { return 16; }
version (X86_64) override int argTypes(out TypeInfo arg1, out TypeInfo arg2)
{
return base.argTypes(arg1, arg2);
}
TypeInfo base;
}
class TypeInfo_Function : TypeInfo
{
override string toString() const
{
return cast(string)(next.toString() ~ "()");
}
override bool opEquals(Object o)
{
if (this is o)
return true;
auto c = cast(const TypeInfo_Function)o;
return c && this.deco == c.deco;
}
// BUG: need to add the rest of the functions
override @property size_t tsize() nothrow pure const
{
return 0; // no size for functions
}
TypeInfo next;
string deco;
}
class TypeInfo_Delegate : TypeInfo
{
override string toString() const
{
return cast(string)(next.toString() ~ " delegate()");
}
override bool opEquals(Object o)
{
if (this is o)
return true;
auto c = cast(const TypeInfo_Delegate)o;
return c && this.deco == c.deco;
}
// BUG: need to add the rest of the functions
override @property size_t tsize() nothrow pure const
{
alias int delegate() dg;
return dg.sizeof;
}
override @property uint flags() nothrow pure const { return 1; }
TypeInfo next;
string deco;
override @property size_t talign() nothrow pure const
{
alias int delegate() dg;
return dg.alignof;
}
version (X86_64) override int argTypes(out TypeInfo arg1, out TypeInfo arg2)
{
arg1 = typeid(void*);
arg2 = typeid(void*);
return 0;
}
}
/**
* Runtime type information about a class.
* Can be retrieved from an object instance by using the
* $(LINK2 ../property.html#classinfo, .classinfo) property.
*/
class TypeInfo_Class : TypeInfo
{
override string toString() const { return info.name; }
override bool opEquals(Object o)
{
if (this is o)
return true;
auto c = cast(const TypeInfo_Class)o;
return c && this.info.name == c.info.name;
}
override size_t getHash(in void* p) @trusted const
{
auto o = *cast(Object*)p;
return o ? o.toHash() : 0;
}
override bool equals(in void* p1, in void* p2) const
{
Object o1 = *cast(Object*)p1;
Object o2 = *cast(Object*)p2;
return (o1 is o2) || (o1 && o1.opEquals(o2));
}
override int compare(in void* p1, in void* p2) const
{
Object o1 = *cast(Object*)p1;
Object o2 = *cast(Object*)p2;
int c = 0;
// Regard null references as always being "less than"
if (o1 !is o2)
{
if (o1)
{
if (!o2)
c = 1;
else
c = o1.opCmp(o2);
}
else
c = -1;
}
return c;
}
override @property size_t tsize() nothrow pure const
{
return Object.sizeof;
}
override @property uint flags() nothrow pure const { return 1; }
override @property const(OffsetTypeInfo)[] offTi() nothrow pure const
{
return m_offTi;
}
@property auto info() @safe nothrow pure const { return this; }
@property auto typeinfo() @safe nothrow pure const { return this; }
byte[] init; /** class static initializer
* (init.length gives size in bytes of class)
*/
string name; /// class name
void*[] vtbl; /// virtual function pointer table
Interface[] interfaces; /// interfaces this class implements
TypeInfo_Class base; /// base class
void* destructor;
void function(Object) classInvariant;
uint m_flags;
// 1: // is IUnknown or is derived from IUnknown
// 2: // has no possible pointers into GC memory
// 4: // has offTi[] member
// 8: // has constructors
// 16: // has xgetMembers member
// 32: // has typeinfo member
// 64: // is not constructable
void* deallocator;
OffsetTypeInfo[] m_offTi;
void function(Object) defaultConstructor; // default Constructor
immutable(void)* m_RTInfo; // data for precise GC
override @property immutable(void)* rtInfo() const { return m_RTInfo; }
/**
* Search all modules for TypeInfo_Class corresponding to classname.
* Returns: null if not found
*/
static const(TypeInfo_Class) find(in char[] classname)
{
foreach (m; ModuleInfo)
{
if (m)
//writefln("module %s, %d", m.name, m.localClasses.length);
foreach (c; m.localClasses)
{
//writefln("\tclass %s", c.name);
if (c.name == classname)
return c;
}
}
return null;
}
/**
* Create instance of Object represented by 'this'.
*/
Object create() const
{
if (m_flags & 8 && !defaultConstructor)
return null;
if (m_flags & 64) // abstract
return null;
Object o = _d_newclass(this);
if (m_flags & 8 && defaultConstructor)
{
defaultConstructor(o);
}
return o;
}
}
alias TypeInfo_Class ClassInfo;
class TypeInfo_Interface : TypeInfo
{
override string toString() const { return info.name; }
override bool opEquals(Object o)
{
if (this is o)
return true;
auto c = cast(const TypeInfo_Interface)o;
return c && this.info.name == c.classinfo.name;
}
override size_t getHash(in void* p) @trusted const
{
Interface* pi = **cast(Interface ***)*cast(void**)p;
Object o = cast(Object)(*cast(void**)p - pi.offset);
assert(o);
return o.toHash();
}
override bool equals(in void* p1, in void* p2) const
{
Interface* pi = **cast(Interface ***)*cast(void**)p1;
Object o1 = cast(Object)(*cast(void**)p1 - pi.offset);
pi = **cast(Interface ***)*cast(void**)p2;
Object o2 = cast(Object)(*cast(void**)p2 - pi.offset);
return o1 == o2 || (o1 && o1.opCmp(o2) == 0);
}
override int compare(in void* p1, in void* p2) const
{
Interface* pi = **cast(Interface ***)*cast(void**)p1;
Object o1 = cast(Object)(*cast(void**)p1 - pi.offset);
pi = **cast(Interface ***)*cast(void**)p2;
Object o2 = cast(Object)(*cast(void**)p2 - pi.offset);
int c = 0;
// Regard null references as always being "less than"
if (o1 != o2)
{
if (o1)
{
if (!o2)
c = 1;
else
c = o1.opCmp(o2);
}
else
c = -1;
}
return c;
}
override @property size_t tsize() nothrow pure const
{
return Object.sizeof;
}
override @property uint flags() nothrow pure const { return 1; }
TypeInfo_Class info;
}
class TypeInfo_Struct : TypeInfo
{
override string toString() const { return name; }
override bool opEquals(Object o)
{
if (this is o)
return true;
auto s = cast(const TypeInfo_Struct)o;
return s && this.name == s.name &&
this.init().length == s.init().length;
}
override size_t getHash(in void* p) @safe pure nothrow const
{
assert(p);
if (xtoHash)
{
return (*xtoHash)(p);
}
else
{
return hashOf(p, init().length);
}
}
override bool equals(in void* p1, in void* p2) @trusted pure nothrow const
{
if (!p1 || !p2)
return false;
else if (xopEquals)
return (*xopEquals)(p1, p2);
else if (p1 == p2)
return true;
else
// BUG: relies on the GC not moving objects
return memcmp(p1, p2, init().length) == 0;
}
override int compare(in void* p1, in void* p2) @trusted pure nothrow const
{
// Regard null references as always being "less than"
if (p1 != p2)
{
if (p1)
{
if (!p2)
return true;
else if (xopCmp)
return (*xopCmp)(p2, p1);
else
// BUG: relies on the GC not moving objects
return memcmp(p1, p2, init().length);
}
else
return -1;
}
return 0;
}
override @property size_t tsize() nothrow pure const
{
return init().length;
}
override const(void)[] init() nothrow pure const @safe { return m_init; }
override @property uint flags() nothrow pure const { return m_flags; }
override @property size_t talign() nothrow pure const { return m_align; }
override void destroy(void* p) const
{
if (xdtor)
(*xdtor)(p);
}
override void postblit(void* p) const
{
if (xpostblit)
(*xpostblit)(p);
}
string name;
void[] m_init; // initializer; init.ptr == null if 0 initialize
@safe pure nothrow
{
size_t function(in void*) xtoHash;
bool function(in void*, in void*) xopEquals;
int function(in void*, in void*) xopCmp;
char[] function(in void*) xtoString;
uint m_flags;
}
void function(void*) xdtor;
void function(void*) xpostblit;
uint m_align;
override @property immutable(void)* rtInfo() const { return m_RTInfo; }
version (X86_64)
{
override int argTypes(out TypeInfo arg1, out TypeInfo arg2)
{
arg1 = m_arg1;
arg2 = m_arg2;
return 0;
}
TypeInfo m_arg1;
TypeInfo m_arg2;
}
immutable(void)* m_RTInfo; // data for precise GC
}
unittest
{
struct S
{
const bool opEquals(ref const S rhs)
{
return false;
}
}
S s;
assert(!typeid(S).equals(&s, &s));
}
class TypeInfo_Tuple : TypeInfo
{
TypeInfo[] elements;
override string toString() const
{
string s = "(";
foreach (i, element; elements)
{
if (i)
s ~= ',';
s ~= element.toString();
}
s ~= ")";
return s;
}
override bool opEquals(Object o)
{
if (this is o)
return true;
auto t = cast(const TypeInfo_Tuple)o;
if (t && elements.length == t.elements.length)
{
for (size_t i = 0; i < elements.length; i++)
{
if (elements[i] != t.elements[i])
return false;
}
return true;
}
return false;
}
override size_t getHash(in void* p) const
{
assert(0);
}
override bool equals(in void* p1, in void* p2) const
{
assert(0);
}
override int compare(in void* p1, in void* p2) const
{
assert(0);
}
override @property size_t tsize() nothrow pure const
{
assert(0);
}
override void swap(void* p1, void* p2) const
{
assert(0);
}
override void destroy(void* p) const
{
assert(0);
}
override void postblit(void* p) const
{
assert(0);
}
override @property size_t talign() nothrow pure const
{
assert(0);
}
version (X86_64) override int argTypes(out TypeInfo arg1, out TypeInfo arg2)
{
assert(0);
}
}
class TypeInfo_Const : TypeInfo
{
override string toString() const
{
return cast(string) ("const(" ~ base.toString() ~ ")");
}
//override bool opEquals(Object o) { return base.opEquals(o); }
override bool opEquals(Object o)
{
if (this is o)
return true;
if (typeid(this) != typeid(o))
return false;
auto t = cast(TypeInfo_Const)o;
return base.opEquals(t.base);
}
override size_t getHash(in void *p) const { return base.getHash(p); }
override bool equals(in void *p1, in void *p2) const { return base.equals(p1, p2); }
override int compare(in void *p1, in void *p2) const { return base.compare(p1, p2); }
override @property size_t tsize() nothrow pure const { return base.tsize; }
override void swap(void *p1, void *p2) const { return base.swap(p1, p2); }
override @property inout(TypeInfo) next() nothrow pure inout { return base.next; }
override @property uint flags() nothrow pure const { return base.flags; }
override const(void)[] init() nothrow pure const { return base.init(); }
override @property size_t talign() nothrow pure const { return base.talign; }
version (X86_64) override int argTypes(out TypeInfo arg1, out TypeInfo arg2)
{
return base.argTypes(arg1, arg2);
}
TypeInfo base;
}
class TypeInfo_Invariant : TypeInfo_Const
{
override string toString() const
{
return cast(string) ("immutable(" ~ base.toString() ~ ")");
}
}
class TypeInfo_Shared : TypeInfo_Const
{
override string toString() const
{
return cast(string) ("shared(" ~ base.toString() ~ ")");
}
}
class TypeInfo_Inout : TypeInfo_Const
{
override string toString() const
{
return cast(string) ("inout(" ~ base.toString() ~ ")");
}
}
abstract class MemberInfo
{
@property string name() nothrow pure;
}
class MemberInfo_field : MemberInfo
{
this(string name, TypeInfo ti, size_t offset)
{
m_name = name;
m_typeinfo = ti;
m_offset = offset;
}
override @property string name() nothrow pure { return m_name; }
@property TypeInfo typeInfo() nothrow pure { return m_typeinfo; }
@property size_t offset() nothrow pure { return m_offset; }
string m_name;
TypeInfo m_typeinfo;
size_t m_offset;
}
class MemberInfo_function : MemberInfo
{
this(string name, TypeInfo ti, void* fp, uint flags)
{
m_name = name;
m_typeinfo = ti;
m_fp = fp;
m_flags = flags;
}
override @property string name() nothrow pure { return m_name; }
@property TypeInfo typeInfo() nothrow pure { return m_typeinfo; }
@property void* fp() nothrow pure { return m_fp; }
@property uint flags() nothrow pure { return m_flags; }
string m_name;
TypeInfo m_typeinfo;
void* m_fp;
uint m_flags;
}
///////////////////////////////////////////////////////////////////////////////
// Throwable
///////////////////////////////////////////////////////////////////////////////
/**
* The base class of all thrown objects.
*
* All thrown objects must inherit from Throwable. Class $(D Exception), which
* derives from this class, represents the category of thrown objects that are
* safe to catch and handle. In principle, one should not catch Throwable
* objects that are not derived from $(D Exception), as they represent
* unrecoverable runtime errors. Certain runtime guarantees may fail to hold
* when these errors are thrown, making it unsafe to continue execution after
* catching them.
*/
class Throwable : Object
{
interface TraceInfo
{
int opApply(scope int delegate(ref const(char[]))) const;
int opApply(scope int delegate(ref size_t, ref const(char[]))) const;
string toString() const;
}
string msg; /// A message describing the error.
/**
* The _file name and line number of the D source code corresponding with
* where the error was thrown from.
*/
string file;
size_t line; /// ditto
/**
* The stack trace of where the error happened. This is an opaque object
* that can either be converted to $(D string), or iterated over with $(D
* foreach) to extract the items in the stack trace (as strings).
*/
TraceInfo info;
/**
* A reference to the _next error in the list. This is used when a new
* $(D Throwable) is thrown from inside a $(D catch) block. The originally
* caught $(D Exception) will be chained to the new $(D Throwable) via this
* field.
*/
Throwable next;
@safe pure nothrow this(string msg, Throwable next = null)
{
this.msg = msg;
this.next = next;
//this.info = _d_traceContext();
}
@safe pure nothrow this(string msg, string file, size_t line, Throwable next = null)
{
this(msg, next);
this.file = file;
this.line = line;
//this.info = _d_traceContext();
}
override string toString()
{
char[20] tmp = void;
char[] buf;
if (file)
{
buf ~= this.classinfo.name ~ "@" ~ file ~ "(" ~ tmp.uintToString(line) ~ ")";
}
else
{
buf ~= this.classinfo.name;
}
if (msg)
{
buf ~= ": " ~ msg;
}
if (info)
{
try
{
buf ~= "\n----------------";
foreach (t; info)
buf ~= "\n" ~ t;
}
catch (Throwable)
{
// ignore more errors
}
}
return cast(string) buf;
}
}
alias Throwable.TraceInfo function(void* ptr) TraceHandler;
private __gshared TraceHandler traceHandler = null;
/**
* Overrides the default trace hander with a user-supplied version.
*
* Params:
* h = The new trace handler. Set to null to use the default handler.
*/
extern (C) void rt_setTraceHandler(TraceHandler h)
{
traceHandler = h;
}
/**
* Return the current trace handler
*/
extern (C) TraceHandler rt_getTraceHandler()
{
return traceHandler;
}
/**
* This function will be called when an exception is constructed. The
* user-supplied trace handler will be called if one has been supplied,
* otherwise no trace will be generated.
*
* Params:
* ptr = A pointer to the location from which to generate the trace, or null
* if the trace should be generated from within the trace handler
* itself.
*
* Returns:
* An object describing the current calling context or null if no handler is
* supplied.
*/
extern (C) Throwable.TraceInfo _d_traceContext(void* ptr = null)
{
if (traceHandler is null)
return null;
return traceHandler(ptr);
}
/**
* The base class of all errors that are safe to catch and handle.
*
* In principle, only thrown objects derived from this class are safe to catch
* inside a $(D catch) block. Thrown objects not derived from Exception
* represent runtime errors that should not be caught, as certain runtime
* guarantees may not hold, making it unsafe to continue program execution.
*/
class Exception : Throwable
{
/**
* Creates a new instance of Exception. The next parameter is used
* internally and should be always be $(D null) when passed by user code.
* This constructor does not automatically throw the newly-created
* Exception; the $(D throw) statement should be used for that purpose.
*/
@safe pure nothrow this(string msg, string file = __FILE__, size_t line = __LINE__, Throwable next = null)
{
super(msg, file, line, next);
}
@safe pure nothrow this(string msg, Throwable next, string file = __FILE__, size_t line = __LINE__)
{
super(msg, file, line, next);
}
}
unittest
{
{
auto e = new Exception("msg");
assert(e.file == __FILE__);
assert(e.line == __LINE__ - 2);
assert(e.next is null);
assert(e.msg == "msg");
}
{
auto e = new Exception("msg", new Exception("It's an Excepton!"), "hello", 42);
assert(e.file == "hello");
assert(e.line == 42);
assert(e.next !is null);
assert(e.msg == "msg");
}
{
auto e = new Exception("msg", "hello", 42, new Exception("It's an Exception!"));
assert(e.file == "hello");
assert(e.line == 42);
assert(e.next !is null);
assert(e.msg == "msg");
}
}
class Error : Throwable
{
@safe pure nothrow this(string msg, Throwable next = null)
{
super(msg, next);
bypassedException = null;
}
@safe pure nothrow this(string msg, string file, size_t line, Throwable next = null)
{
super(msg, file, line, next);
bypassedException = null;
}
/// The first Exception which was bypassed when this Error was thrown,
/// or null if no Exceptions were pending.
Throwable bypassedException;
}
unittest
{
{
auto e = new Error("msg");
assert(e.file is null);
assert(e.line == 0);
assert(e.next is null);
assert(e.msg == "msg");
assert(e.bypassedException is null);
}
{
auto e = new Error("msg", new Exception("It's an Excepton!"));
assert(e.file is null);
assert(e.line == 0);
assert(e.next !is null);
assert(e.msg == "msg");
assert(e.bypassedException is null);
}
{
auto e = new Error("msg", "hello", 42, new Exception("It's an Exception!"));
assert(e.file == "hello");
assert(e.line == 42);
assert(e.next !is null);
assert(e.msg == "msg");
assert(e.bypassedException is null);
}
}
///////////////////////////////////////////////////////////////////////////////
// ModuleInfo
///////////////////////////////////////////////////////////////////////////////
enum
{
MIctorstart = 1, // we've started constructing it
MIctordone = 2, // finished construction
MIstandalone = 4, // module ctor does not depend on other module
// ctors being done first
MItlsctor = 8,
MItlsdtor = 0x10,
MIctor = 0x20,
MIdtor = 0x40,
MIxgetMembers = 0x80,
MIictor = 0x100,
MIunitTest = 0x200,
MIimportedModules = 0x400,
MIlocalClasses = 0x800,
MInew = 0x80000000 // it's the "new" layout
}
struct ModuleInfo
{
struct New
{
uint flags;
uint index; // index into _moduleinfo_array[]
/* Order of appearance, depending on flags
* tlsctor
* tlsdtor
* xgetMembers
* ctor
* dtor
* ictor
* importedModules
* localClasses
* name
*/
}
struct Old
{
string name;
ModuleInfo*[] importedModules;
TypeInfo_Class[] localClasses;
uint flags;
void function() ctor; // module shared static constructor (order dependent)
void function() dtor; // module shared static destructor
void function() unitTest; // module unit tests
void* xgetMembers; // module getMembers() function
void function() ictor; // module shared static constructor (order independent)
void function() tlsctor; // module thread local static constructor (order dependent)
void function() tlsdtor; // module thread local static destructor
uint index; // index into _moduleinfo_array[]
void*[1] reserved; // for future expansion
}
union
{
New n;
Old o;
}
@property bool isNew() nothrow pure { return (n.flags & MInew) != 0; }
@property uint index() nothrow pure { return isNew ? n.index : o.index; }
@property void index(uint i) nothrow pure { if (isNew) n.index = i; else o.index = i; }
@property uint flags() nothrow pure { return isNew ? n.flags : o.flags; }
@property void flags(uint f) nothrow pure { if (isNew) n.flags = f; else o.flags = f; }
@property void function() tlsctor() nothrow pure
{
if (isNew)
{
if (n.flags & MItlsctor)
{
size_t off = New.sizeof;
return *cast(typeof(return)*)(cast(void*)(&this) + off);
}
return null;
}
else
return o.tlsctor;
}
@property void function() tlsdtor() nothrow pure
{
if (isNew)
{
if (n.flags & MItlsdtor)
{
size_t off = New.sizeof;
if (n.flags & MItlsctor)
off += o.tlsctor.sizeof;
return *cast(typeof(return)*)(cast(void*)(&this) + off);
}
return null;
}
else
return o.tlsdtor;
}
@property void* xgetMembers() nothrow pure
{
if (isNew)
{
if (n.flags & MIxgetMembers)
{
size_t off = New.sizeof;
if (n.flags & MItlsctor)
off += o.tlsctor.sizeof;
if (n.flags & MItlsdtor)
off += o.tlsdtor.sizeof;
return *cast(typeof(return)*)(cast(void*)(&this) + off);
}
return null;
}
return o.xgetMembers;
}
@property void function() ctor() nothrow pure
{
if (isNew)
{
if (n.flags & MIctor)
{
size_t off = New.sizeof;
if (n.flags & MItlsctor)
off += o.tlsctor.sizeof;
if (n.flags & MItlsdtor)
off += o.tlsdtor.sizeof;
if (n.flags & MIxgetMembers)
off += o.xgetMembers.sizeof;
return *cast(typeof(return)*)(cast(void*)(&this) + off);
}
return null;
}
return o.ctor;
}
@property void function() dtor() nothrow pure
{
if (isNew)
{
if (n.flags & MIdtor)
{
size_t off = New.sizeof;
if (n.flags & MItlsctor)
off += o.tlsctor.sizeof;
if (n.flags & MItlsdtor)
off += o.tlsdtor.sizeof;
if (n.flags & MIxgetMembers)
off += o.xgetMembers.sizeof;
if (n.flags & MIctor)
off += o.ctor.sizeof;
return *cast(typeof(return)*)(cast(void*)(&this) + off);
}
return null;
}
return o.ctor;
}
@property void function() ictor() nothrow pure
{
if (isNew)
{
if (n.flags & MIictor)
{
size_t off = New.sizeof;
if (n.flags & MItlsctor)
off += o.tlsctor.sizeof;
if (n.flags & MItlsdtor)
off += o.tlsdtor.sizeof;
if (n.flags & MIxgetMembers)
off += o.xgetMembers.sizeof;
if (n.flags & MIctor)
off += o.ctor.sizeof;
if (n.flags & MIdtor)
off += o.ctor.sizeof;
return *cast(typeof(return)*)(cast(void*)(&this) + off);
}
return null;
}
return o.ictor;
}
@property void function() unitTest() nothrow pure
{
if (isNew)
{
if (n.flags & MIunitTest)
{
size_t off = New.sizeof;
if (n.flags & MItlsctor)
off += o.tlsctor.sizeof;
if (n.flags & MItlsdtor)
off += o.tlsdtor.sizeof;
if (n.flags & MIxgetMembers)
off += o.xgetMembers.sizeof;
if (n.flags & MIctor)
off += o.ctor.sizeof;
if (n.flags & MIdtor)
off += o.ctor.sizeof;
if (n.flags & MIictor)
off += o.ictor.sizeof;
return *cast(typeof(return)*)(cast(void*)(&this) + off);
}
return null;
}
return o.unitTest;
}
@property ModuleInfo*[] importedModules() nothrow pure
{
if (isNew)
{
if (n.flags & MIimportedModules)
{
size_t off = New.sizeof;
if (n.flags & MItlsctor)
off += o.tlsctor.sizeof;
if (n.flags & MItlsdtor)
off += o.tlsdtor.sizeof;
if (n.flags & MIxgetMembers)
off += o.xgetMembers.sizeof;
if (n.flags & MIctor)
off += o.ctor.sizeof;
if (n.flags & MIdtor)
off += o.ctor.sizeof;
if (n.flags & MIictor)
off += o.ictor.sizeof;
if (n.flags & MIunitTest)
off += o.unitTest.sizeof;
auto plength = cast(size_t*)(cast(void*)(&this) + off);
ModuleInfo** pm = cast(ModuleInfo**)(plength + 1);
return pm[0 .. *plength];
}
return null;
}
return o.importedModules;
}
@property TypeInfo_Class[] localClasses() nothrow pure
{
if (isNew)
{
if (n.flags & MIlocalClasses)
{
size_t off = New.sizeof;
if (n.flags & MItlsctor)
off += o.tlsctor.sizeof;
if (n.flags & MItlsdtor)
off += o.tlsdtor.sizeof;
if (n.flags & MIxgetMembers)
off += o.xgetMembers.sizeof;
if (n.flags & MIctor)
off += o.ctor.sizeof;
if (n.flags & MIdtor)
off += o.ctor.sizeof;
if (n.flags & MIictor)
off += o.ictor.sizeof;
if (n.flags & MIunitTest)
off += o.unitTest.sizeof;
if (n.flags & MIimportedModules)
{
auto plength = cast(size_t*)(cast(void*)(&this) + off);
off += size_t.sizeof + *plength * plength.sizeof;
}
auto plength = cast(size_t*)(cast(void*)(&this) + off);
TypeInfo_Class* pt = cast(TypeInfo_Class*)(plength + 1);
return pt[0 .. *plength];
}
return null;
}
return o.localClasses;
}
@property string name() nothrow pure
{
if (isNew)
{
size_t off = New.sizeof;
if (n.flags & MItlsctor)
off += o.tlsctor.sizeof;
if (n.flags & MItlsdtor)
off += o.tlsdtor.sizeof;
if (n.flags & MIxgetMembers)
off += o.xgetMembers.sizeof;
if (n.flags & MIctor)
off += o.ctor.sizeof;
if (n.flags & MIdtor)
off += o.ctor.sizeof;
if (n.flags & MIictor)
off += o.ictor.sizeof;
if (n.flags & MIunitTest)
off += o.unitTest.sizeof;
if (n.flags & MIimportedModules)
{
auto plength = cast(size_t*)(cast(void*)(&this) + off);
off += size_t.sizeof + *plength * plength.sizeof;
}
if (n.flags & MIlocalClasses)
{
auto plength = cast(size_t*)(cast(void*)(&this) + off);
off += size_t.sizeof + *plength * plength.sizeof;
}
auto p = cast(immutable(char)*)(cast(void*)(&this) + off);
auto len = strlen(p);
return p[0 .. len];
}
return o.name;
}
alias int delegate(ref ModuleInfo*) ApplyDg;
static int opApply(scope ApplyDg dg)
{
return rt.minfo.moduleinfos_apply(dg);
}
}
///////////////////////////////////////////////////////////////////////////////
// Monitor
///////////////////////////////////////////////////////////////////////////////
alias Object.Monitor IMonitor;
alias void delegate(Object) DEvent;
// NOTE: The dtor callback feature is only supported for monitors that are not
// supplied by the user. The assumption is that any object with a user-
// supplied monitor may have special storage or lifetime requirements and
// that as a result, storing references to local objects within Monitor
// may not be safe or desirable. Thus, devt is only valid if impl is
// null.
struct Monitor
{
IMonitor impl;
/* internal */
DEvent[] devt;
size_t refs;
/* stuff */
}
Monitor* getMonitor(Object h)
{
return cast(Monitor*) h.__monitor;
}
void setMonitor(Object h, Monitor* m)
{
h.__monitor = m;
}
void setSameMutex(shared Object ownee, shared Object owner)
in
{
assert(ownee.__monitor is null);
}
body
{
auto m = cast(shared(Monitor)*) owner.__monitor;
if (m is null)
{
_d_monitor_create(cast(Object) owner);
m = cast(shared(Monitor)*) owner.__monitor;
}
auto i = m.impl;
if (i is null)
{
atomicOp!("+=")(m.refs, cast(size_t)1);
ownee.__monitor = owner.__monitor;
return;
}
// If m.impl is set (ie. if this is a user-created monitor), assume
// the monitor is garbage collected and simply copy the reference.
ownee.__monitor = owner.__monitor;
}
extern (C) void _d_monitor_create(Object);
extern (C) void _d_monitor_destroy(Object);
extern (C) void _d_monitor_lock(Object);
extern (C) int _d_monitor_unlock(Object);
extern (C) void _d_monitordelete(Object h, bool det)
{
// det is true when the object is being destroyed deterministically (ie.
// when it is explicitly deleted or is a scope object whose time is up).
Monitor* m = getMonitor(h);
if (m !is null)
{
IMonitor i = m.impl;
if (i is null)
{
auto s = cast(shared(Monitor)*) m;
if(!atomicOp!("-=")(s.refs, cast(size_t) 1))
{
_d_monitor_devt(m, h);
_d_monitor_destroy(h);
setMonitor(h, null);
}
return;
}
// NOTE: Since a monitor can be shared via setSameMutex it isn't safe
// to explicitly delete user-created monitors--there's no
// refcount and it may have multiple owners.
/+
if (det && (cast(void*) i) !is (cast(void*) h))
{
destroy(i);
GC.free(cast(void*)i);
}
+/
setMonitor(h, null);
}
}
extern (C) void _d_monitorenter(Object h)
{
Monitor* m = getMonitor(h);
if (m is null)
{
_d_monitor_create(h);
m = getMonitor(h);
}
IMonitor i = m.impl;
if (i is null)
{
_d_monitor_lock(h);
return;
}
i.lock();
}
extern (C) void _d_monitorexit(Object h)
{
Monitor* m = getMonitor(h);
IMonitor i = m.impl;
if (i is null)
{
_d_monitor_unlock(h);
return;
}
i.unlock();
}
extern (C) void _d_monitor_devt(Monitor* m, Object h)
{
if (m.devt.length)
{
DEvent[] devt;
synchronized (h)
{
devt = m.devt;
m.devt = null;
}
foreach (v; devt)
{
if (v)
v(h);
}
free(devt.ptr);
}
}
extern (C) void rt_attachDisposeEvent(Object h, DEvent e)
{
synchronized (h)
{
Monitor* m = getMonitor(h);
assert(m.impl is null);
foreach (ref v; m.devt)
{
if (v is null || v == e)
{
v = e;
return;
}
}
auto len = m.devt.length + 4; // grow by 4 elements
auto pos = m.devt.length; // insert position
auto p = realloc(m.devt.ptr, DEvent.sizeof * len);
if (!p)
onOutOfMemoryError();
m.devt = (cast(DEvent*)p)[0 .. len];
m.devt[pos+1 .. len] = null;
m.devt[pos] = e;
}
}
extern (C) void rt_detachDisposeEvent(Object h, DEvent e)
{
synchronized (h)
{
Monitor* m = getMonitor(h);
assert(m.impl is null);
foreach (p, v; m.devt)
{
if (v == e)
{
memmove(&m.devt[p],
&m.devt[p+1],
(m.devt.length - p - 1) * DEvent.sizeof);
m.devt[$ - 1] = null;
return;
}
}
}
}
extern (C)
{
// from druntime/src/compiler/dmd/aaA.d
size_t _aaLen(void* p);
void* _aaGet(void** pp, TypeInfo keyti, size_t valuesize, ...);
void* _aaGetRvalue(void* p, TypeInfo keyti, size_t valuesize, ...);
void* _aaIn(void* p, TypeInfo keyti);
void _aaDel(void* p, TypeInfo keyti, ...);
void[] _aaValues(void* p, size_t keysize, size_t valuesize);
void[] _aaKeys(void* p, size_t keysize);
void* _aaRehash(void** pp, TypeInfo keyti);
extern (D) alias scope int delegate(void *) _dg_t;
int _aaApply(void* aa, size_t keysize, _dg_t dg);
extern (D) alias scope int delegate(void *, void *) _dg2_t;
int _aaApply2(void* aa, size_t keysize, _dg2_t dg);
void* _d_assocarrayliteralT(TypeInfo_AssociativeArray ti, size_t length, ...);
hash_t _aaGetHash(void* aa, const(TypeInfo) tiRaw) nothrow;
}
private template _Unqual(T)
{
static if (is(T U == shared(const U))) alias U _Unqual;
else static if (is(T U == const U )) alias U _Unqual;
else static if (is(T U == immutable U )) alias U _Unqual;
else static if (is(T U == inout U )) alias U _Unqual;
else static if (is(T U == shared U )) alias U _Unqual;
else alias T _Unqual;
}
struct AssociativeArray(Key, Value)
{
private:
// Duplicates of the stuff found in druntime/src/rt/aaA.d
struct Slot
{
Slot *next;
size_t hash;
Key key;
version(D_LP64) align(16) _Unqual!Value value; // c.f. rt/aaA.d, aligntsize()
else align(4) _Unqual!Value value;
// Stop creating built-in opAssign
@disable void opAssign(Slot);
}
struct Hashtable
{
Slot*[] b;
size_t nodes;
TypeInfo keyti;
Slot*[4] binit;
}
void* p; // really Hashtable*
struct Range
{
// State
Slot*[] slots;
Slot* current;
this(void * aa)
{
if (!aa) return;
auto pImpl = cast(Hashtable*) aa;
slots = pImpl.b;
nextSlot();
}
void nextSlot()
{
foreach (i, slot; slots)
{
if (!slot) continue;
current = slot;
slots = slots.ptr[i .. slots.length];
break;
}
}
public:
@property bool empty() const
{
return current is null;
}
@property ref inout(Slot) front() inout
{
assert(current);
return *current;
}
void popFront()
{
assert(current);
current = current.next;
if (!current)
{
slots = slots[1 .. $];
nextSlot();
}
}
}
public:
@property size_t length() { return _aaLen(p); }
Value[Key] rehash() @property
{
auto p = _aaRehash(&p, typeid(Value[Key]));
return *cast(Value[Key]*)(&p);
}
Value[] values() @property
{
auto a = _aaValues(p, Key.sizeof, Value.sizeof);
return *cast(Value[]*) &a;
}
Key[] keys() @property
{
auto a = _aaKeys(p, Key.sizeof);
return *cast(Key[]*) &a;
}
int opApply(scope int delegate(ref Key, ref Value) dg)
{
return _aaApply2(p, Key.sizeof, cast(_dg2_t)dg);
}
int opApply(scope int delegate(ref Value) dg)
{
return _aaApply(p, Key.sizeof, cast(_dg_t)dg);
}
Value get(Key key, lazy Value defaultValue)
{
auto p = key in *cast(Value[Key]*)(&p);
return p ? *p : defaultValue;
}
static if (is(typeof({ Value[Key] r; r[Key.init] = Value.init; }())))
@property Value[Key] dup()
{
Value[Key] result;
foreach (k, v; this)
{
result[k] = v;
}
return result;
}
@property auto byKey()
{
static struct Result
{
Range state;
this(void* p)
{
state = Range(p);
}
@property ref Key front()
{
return state.front.key;
}
alias state this;
}
return Result(p);
}
@property auto byValue()
{
static struct Result
{
Range state;
this(void* p)
{
state = Range(p);
}
@property ref Value front()
{
return *cast(Value*)&state.front.value;
}
alias state this;
}
return Result(p);
}
}
unittest
{
int[int] a;
foreach (i; a.byKey)
{
assert(false);
}
foreach (i; a.byValue)
{
assert(false);
}
}
unittest
{
auto a = [ 1:"one", 2:"two", 3:"three" ];
auto b = a.dup;
assert(b == [ 1:"one", 2:"two", 3:"three" ]);
int[] c;
foreach (k; a.byKey)
{
c ~= k;
}
assert(c.length == 3);
c.sort;
assert(c[0] == 1);
assert(c[1] == 2);
assert(c[2] == 3);
}
unittest
{
// test for bug 5925
const a = [4:0];
const b = [4:0];
assert(a == b);
}
unittest
{
// test for bug 9052
static struct Json {
Json[string] aa;
void opAssign(Json) {}
size_t length() const { return aa.length; }
// This length() instantiates AssociativeArray!(string, const(Json)) to call AA.length(), and
// inside ref Slot opAssign(Slot p); (which is automatically generated by compiler in Slot),
// this.value = p.value would actually fail, because both side types of the assignment
// are const(Json).
}
}
unittest
{
// test for bug 8583: ensure Slot and aaA are on the same page wrt value alignment
string[byte] aa0 = [0: "zero"];
string[uint[3]] aa1 = [[1,2,3]: "onetwothree"];
ushort[uint[3]] aa2 = [[9,8,7]: 987];
ushort[uint[4]] aa3 = [[1,2,3,4]: 1234];
string[uint[5]] aa4 = [[1,2,3,4,5]: "onetwothreefourfive"];
assert(aa0.byValue.front == "zero");
assert(aa1.byValue.front == "onetwothree");
assert(aa2.byValue.front == 987);
assert(aa3.byValue.front == 1234);
assert(aa4.byValue.front == "onetwothreefourfive");
}
deprecated("Please use destroy instead of clear.")
alias destroy clear;
/++
Destroys the given object and puts it in an invalid state. It's used to
destroy an object so that any cleanup which its destructor or finalizer
does is done and so that it no longer references any other objects. It does
$(I not) initiate a GC cycle or free any GC memory.
+/
void destroy(T)(T obj) if (is(T == class))
{
rt_finalize(cast(void*)obj);
}
void destroy(T)(T obj) if (is(T == interface))
{
destroy(cast(Object)obj);
}
version(unittest) unittest
{
interface I { }
{
class A: I { string s = "A"; this() {} }
auto a = new A, b = new A;
a.s = b.s = "asd";
destroy(a);
assert(a.s == "A");
I i = b;
destroy(i);
assert(b.s == "A");
}
{
static bool destroyed = false;
class B: I
{
string s = "B";
this() {}
~this()
{
destroyed = true;
}
}
auto a = new B, b = new B;
a.s = b.s = "asd";
destroy(a);
assert(destroyed);
assert(a.s == "B");
destroyed = false;
I i = b;
destroy(i);
assert(destroyed);
assert(b.s == "B");
}
// this test is invalid now that the default ctor is not run after clearing
version(none)
{
class C
{
string s;
this()
{
s = "C";
}
}
auto a = new C;
a.s = "asd";
destroy(a);
assert(a.s == "C");
}
}
void destroy(T)(ref T obj) if (is(T == struct))
{
typeid(T).destroy( &obj );
auto buf = (cast(ubyte*) &obj)[0 .. T.sizeof];
auto init = cast(ubyte[])typeid(T).init();
if(init.ptr is null) // null ptr means initialize to 0s
buf[] = 0;
else
buf[] = init[];
}
version(unittest) unittest
{
{
struct A { string s = "A"; }
A a;
a.s = "asd";
destroy(a);
assert(a.s == "A");
}
{
static int destroyed = 0;
struct C
{
string s = "C";
~this()
{
destroyed ++;
}
}
struct B
{
C c;
string s = "B";
~this()
{
destroyed ++;
}
}
B a;
a.s = "asd";
a.c.s = "jkl";
destroy(a);
assert(destroyed == 2);
assert(a.s == "B");
assert(a.c.s == "C" );
}
}
void destroy(T : U[n], U, size_t n)(ref T obj)
{
obj[] = U.init;
}
version(unittest) unittest
{
int[2] a;
a[0] = 1;
a[1] = 2;
destroy(a);
assert(a == [ 0, 0 ]);
}
void destroy(T)(ref T obj)
if (!is(T == struct) && !is(T == interface) && !is(T == class) && !_isStaticArray!T)
{
obj = T.init;
}
template _isStaticArray(T : U[N], U, size_t N)
{
enum bool _isStaticArray = true;
}
template _isStaticArray(T)
{
enum bool _isStaticArray = false;
}
version(unittest) unittest
{
{
int a = 42;
destroy(a);
assert(a == 0);
}
{
float a = 42;
destroy(a);
assert(isnan(a));
}
}
version (unittest)
{
bool isnan(float x)
{
return x != x;
}
}
/**
* (Property) Get the current capacity of a slice. The capacity is the size
* that the slice can grow to before the underlying array must be
* reallocated or extended.
*
* If an append must reallocate a slice with no possibility of extension, then
* 0 is returned. This happens when the slice references a static array, or
* if another slice references elements past the end of the current slice.
*
* Note: The capacity of a slice may be impacted by operations on other slices.
*/
@property size_t capacity(T)(T[] arr) pure nothrow
{
return _d_arraysetcapacity(typeid(T[]), 0, cast(void *)&arr);
}
///
unittest
{
//Static array slice: no capacity
int[4] sarray = [1, 2, 3, 4];
int[] slice = sarray[];
assert(sarray.capacity == 0);
//Appending to slice will reallocate to a new array
slice ~= 5;
assert(slice.capacity >= 5);
//Dynamic array slices
int[] a = [1, 2, 3, 4];
int[] b = a[1 .. $];
int[] c = a[1 .. $ - 1];
assert(a.capacity != 0);
assert(a.capacity == b.capacity + 1); //both a and b share the same tail
assert(c.capacity == 0); //an append to c must relocate c.
}
/**
* Reserves capacity for a slice. The capacity is the size
* that the slice can grow to before the underlying array must be
* reallocated or extended.
*
* The return value is the new capacity of the array (which may be larger than
* the requested capacity).
*/
size_t reserve(T)(ref T[] arr, size_t newcapacity) pure nothrow
{
return _d_arraysetcapacity(typeid(T[]), newcapacity, cast(void *)&arr);
}
///
unittest
{
//Static array slice: no capacity. Reserve relocates.
int[4] sarray = [1, 2, 3, 4];
int[] slice = sarray[];
auto u = slice.reserve(8);
assert(u >= 8);
assert(sarray.ptr !is slice.ptr);
assert(slice.capacity == u);
//Dynamic array slices
int[] a = [1, 2, 3, 4];
a.reserve(8); //prepare a for appending 4 more items
auto p = a.ptr;
u = a.capacity;
a ~= [5, 6, 7, 8];
assert(p == a.ptr); //a should not have been reallocated
assert(u == a.capacity); //a should not have been extended
}
/**
* Assume that it is safe to append to this array. Appends made to this array
* after calling this function may append in place, even if the array was a
* slice of a larger array to begin with.
*
* Use this only when you are sure no elements are in use beyond the array in
* the memory block. If there are, those elements could be overwritten by
* appending to this array.
*
* Calling this function, and then using references to data located after the
* given array results in undefined behavior.
*/
void assumeSafeAppend(T)(T[] arr)
{
_d_arrayshrinkfit(typeid(T[]), *(cast(void[]*)&arr));
}
///
unittest
{
int[] a = [1, 2, 3, 4];
int[] b = a[1 .. $ - 1];
assert(a.capacity >= 4);
assert(b.capacity == 0);
b.assumeSafeAppend();
assert(b.capacity >= 3);
}
unittest
{
int[] arr;
auto newcap = arr.reserve(2000);
assert(newcap >= 2000);
assert(newcap == arr.capacity);
auto ptr = arr.ptr;
foreach(i; 0..2000)
arr ~= i;
assert(ptr == arr.ptr);
arr = arr[0..1];
arr.assumeSafeAppend();
arr ~= 5;
assert(ptr == arr.ptr);
}
version (none)
{
// enforce() copied from Phobos std.contracts for destroy(), left out until
// we decide whether to use it.
T _enforce(T, string file = __FILE__, int line = __LINE__)
(T value, lazy const(char)[] msg = null)
{
if (!value) bailOut(file, line, msg);
return value;
}
T _enforce(T, string file = __FILE__, int line = __LINE__)
(T value, scope void delegate() dg)
{
if (!value) dg();
return value;
}
T _enforce(T)(T value, lazy Exception ex)
{
if (!value) throw ex();
return value;
}
private void _bailOut(string file, int line, in char[] msg)
{
char[21] buf;
throw new Exception(cast(string)(file ~ "(" ~ ulongToString(buf[], line) ~ "): " ~ (msg ? msg : "Enforcement failed")));
}
}
/***************************************
* Helper function used to see if two containers of different
* types have the same contents in the same sequence.
*/
bool _ArrayEq(T1, T2)(T1[] a1, T2[] a2)
{
if (a1.length != a2.length)
return false;
foreach(i, a; a1)
{
if (a != a2[i])
return false;
}
return true;
}
bool _xopEquals(in void*, in void*)
{
throw new Error("TypeInfo.equals is not implemented");
}
/******************************************
* Create RTInfo for type T
*/
template RTInfo(T)
{
enum RTInfo = null;
}
| D |
/*
Copyright (c) 2019-2020 Timur Gafarov
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:
The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/
module dagon.resource.image;
import std.stdio;
import std.path;
import dlib.core.memory;
import dlib.core.ownership;
import dlib.core.stream;
import dlib.core.compound;
import dlib.image.image;
/*
import dlib.image.io.bmp;
import dlib.image.io.png;
import dlib.image.io.tga;
import dlib.image.io.jpeg;
*/
import dlib.image.io.hdr;
import dlib.image.unmanaged;
import dlib.image.hdri;
import dlib.filesystem.filesystem;
import dagon.graphics.compressedimage;
import dagon.resource.asset;
import dagon.resource.stbi;
import dagon.resource.dds;
class ImageAsset: Asset
{
UnmanagedImageFactory imageFactory;
UnmanagedHDRImageFactory hdrImageFactory;
SuperImage image;
this(UnmanagedImageFactory imgfac, UnmanagedHDRImageFactory hdrImgFac, Owner o)
{
super(o);
imageFactory = imgfac;
hdrImageFactory = hdrImgFac;
}
~this()
{
release();
}
override bool loadThreadSafePart(string filename, InputStream istrm, ReadOnlyFileSystem fs, AssetManager mngr)
{
string errMsg;
if (filename.extension == ".hdr" ||
filename.extension == ".HDR")
{
Compound!(SuperHDRImage, string) res;
res = loadHDR(istrm, hdrImageFactory);
image = res[0];
errMsg = res[1];
}
else if (filename.extension == ".dds" ||
filename.extension == ".DDS")
{
Compound!(CompressedImage, string) res;
res = loadDDS(istrm);
image = res[0];
errMsg = res[1];
}
else
{
Compound!(SuperImage, string) res;
switch(filename.extension)
{
case ".bmp", ".BMP",
".jpg", ".JPG", ".jpeg", ".JPEG",
".png", ".PNG",
".tga", ".TGA",
".gif", ".GIF",
".psd", ".PSD":
res = loadImageSTB(istrm, imageFactory);
break;
default:
return false;
}
image = res[0];
errMsg = res[1];
}
if (image !is null)
{
return true;
}
else
{
writeln(errMsg);
return false;
}
}
override bool loadThreadUnsafePart()
{
if (image !is null)
return true;
else
return false;
}
override void release()
{
if (image)
Delete(image);
}
}
ImageAsset imageAsset(AssetManager assetManager, string filename)
{
ImageAsset asset;
if (assetManager.assetExists(filename))
{
asset = cast(ImageAsset)assetManager.getAsset(filename);
}
else
{
asset = New!ImageAsset(assetManager.imageFactory, assetManager.hdrImageFactory, assetManager);
assetManager.preloadAsset(asset, filename);
}
return asset;
}
| D |
module webtank.ivy.user;
import ivy.types.data.decl_class_node: DeclClassNode;
class IvyUserIdentity: DeclClassNode
{
import ivy.types.data: IvyDataType, IvyData;
import ivy.interpreter.directive.utils: IvyMethodAttr;
import ivy.types.data.decl_class: DeclClass;
import ivy.types.data.decl_class_utils: makeClass;
import ivy.types.symbol.dir_attr: DirAttr;
import ivy.types.symbol.consts: IvyAttrType;
import webtank.security.auth.iface.user_identity: IUserIdentity;
private:
IUserIdentity _identity;
public:
import std.exception: enforce;
this(IUserIdentity identity)
{
super(_declClass);
enforce(identity !is null, "IUserIdentity object is null");
_identity = identity;
}
override {
IvyData __getAttr__(string attrName)
{
switch(attrName)
{
case "id": return IvyData(this._identity.id);
case "name": return IvyData(this._identity.name);
case "data": return IvyData(this._identity.data);
case "isAuthenticated": return IvyData(this._identity.isAuthenticated);
case "accessRoles": return IvyData(this._accessRoles);
default: break;
}
return super.__getAttr__(attrName);
}
}
@IvyMethodAttr()
IvyData __serialize__()
{
IvyData res;
foreach( field; ["id", "name", "data", "isAuthenticated", "accessRoles"] ) {
res[field] = this.__getAttr__(field);
}
return res;
}
string[] _accessRoles() @property
{
import std.array: split;
return this._identity.data.get("accessRoles", null).split(";");
}
@IvyMethodAttr(null, [
DirAttr("role", IvyAttrType.Any)
])
bool isInRole(string role)
{
import std.algorithm: canFind;
return this._accessRoles.canFind(role);
}
private __gshared DeclClass _declClass;
shared static this()
{
_declClass = makeClass!(typeof(this))("UserIdentity");
}
} | D |
module jamc.util.gpu.ibuffer;
interface IGpuAllocator( BufferFormat )
{
alias value_type = BufferFormat.value_type;
alias size_type = BufferFormat.size_type;
alias format = BufferFormat;
size_type upload( value_type[] data, size_type block );
enum nullBlock = ~cast(size_type)0;
}
| D |
# FIXED
TOOLS/onboard.obj: C:/ti/simplelink/ble_sdk_2_02_01_18/src/common/cc26xx/onboard.c
TOOLS/onboard.obj: C:/ti/simplelink/ble_sdk_2_02_01_18/src/inc/bcomdef.h
TOOLS/onboard.obj: C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/osal/src/inc/comdef.h
TOOLS/onboard.obj: C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/target/_common/hal_types.h
TOOLS/onboard.obj: C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/target/_common/../_common/cc26xx/_hal_types.h
TOOLS/onboard.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_5.2.6/include/stdint.h
TOOLS/onboard.obj: C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/inc/hal_defs.h
TOOLS/onboard.obj: C:/ti/simplelink/ble_sdk_2_02_01_18/src/common/cc26xx/onboard.h
TOOLS/onboard.obj: C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/target/_common/hal_mcu.h
TOOLS/onboard.obj: C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/target/_common/hal_types.h
TOOLS/onboard.obj: C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/inc/hw_nvic.h
TOOLS/onboard.obj: C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/inc/hw_ints.h
TOOLS/onboard.obj: C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/inc/hw_types.h
TOOLS/onboard.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_5.2.6/include/stdbool.h
TOOLS/onboard.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_5.2.6/include/yvals.h
TOOLS/onboard.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_5.2.6/include/stdarg.h
TOOLS/onboard.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_5.2.6/include/linkage.h
TOOLS/onboard.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_5.2.6/include/_lock.h
TOOLS/onboard.obj: C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/inc/hw_chip_def.h
TOOLS/onboard.obj: C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/inc/hw_gpio.h
TOOLS/onboard.obj: C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/inc/hw_memmap.h
TOOLS/onboard.obj: C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/driverlib/systick.h
TOOLS/onboard.obj: C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/driverlib/debug.h
TOOLS/onboard.obj: C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/driverlib/interrupt.h
TOOLS/onboard.obj: C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/driverlib/cpu.h
TOOLS/onboard.obj: C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/inc/hw_cpu_scs.h
TOOLS/onboard.obj: C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/driverlib/rom.h
TOOLS/onboard.obj: C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/driverlib/uart.h
TOOLS/onboard.obj: C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/inc/hw_uart.h
TOOLS/onboard.obj: C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/driverlib/gpio.h
TOOLS/onboard.obj: C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/driverlib/flash.h
TOOLS/onboard.obj: C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/inc/hw_flash.h
TOOLS/onboard.obj: C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/inc/hw_aon_sysctl.h
TOOLS/onboard.obj: C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/inc/hw_fcfg1.h
TOOLS/onboard.obj: C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/driverlib/ioc.h
TOOLS/onboard.obj: C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/inc/hw_ioc.h
TOOLS/onboard.obj: C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/icall/src/inc/ICall.h
TOOLS/onboard.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_5.2.6/include/stdlib.h
TOOLS/onboard.obj: C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/inc/hal_assert.h
TOOLS/onboard.obj: C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/target/_common/hal_types.h
TOOLS/onboard.obj: C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/inc/hal_sleep.h
TOOLS/onboard.obj: C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/osal/src/inc/osal.h
TOOLS/onboard.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_5.2.6/include/limits.h
TOOLS/onboard.obj: C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/osal/src/inc/OSAL_Memory.h
TOOLS/onboard.obj: C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/osal/src/inc/OSAL_Timers.h
TOOLS/onboard.obj: C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/target/_common/hal_board_cfg.h
TOOLS/onboard.obj: C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/target/_common/hal_types.h
TOOLS/onboard.obj: C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/inc/hal_key.h
TOOLS/onboard.obj: C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/inc/hal_board.h
C:/ti/simplelink/ble_sdk_2_02_01_18/src/common/cc26xx/onboard.c:
C:/ti/simplelink/ble_sdk_2_02_01_18/src/inc/bcomdef.h:
C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/osal/src/inc/comdef.h:
C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/target/_common/hal_types.h:
C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/target/_common/../_common/cc26xx/_hal_types.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_5.2.6/include/stdint.h:
C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/inc/hal_defs.h:
C:/ti/simplelink/ble_sdk_2_02_01_18/src/common/cc26xx/onboard.h:
C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/target/_common/hal_mcu.h:
C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/target/_common/hal_types.h:
C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/inc/hw_nvic.h:
C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/inc/hw_ints.h:
C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/inc/hw_types.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_5.2.6/include/stdbool.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_5.2.6/include/yvals.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_5.2.6/include/stdarg.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_5.2.6/include/linkage.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_5.2.6/include/_lock.h:
C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/inc/hw_chip_def.h:
C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/inc/hw_gpio.h:
C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/inc/hw_memmap.h:
C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/driverlib/systick.h:
C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/driverlib/debug.h:
C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/driverlib/interrupt.h:
C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/driverlib/cpu.h:
C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/inc/hw_cpu_scs.h:
C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/driverlib/rom.h:
C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/driverlib/uart.h:
C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/inc/hw_uart.h:
C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/driverlib/gpio.h:
C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/driverlib/flash.h:
C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/inc/hw_flash.h:
C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/inc/hw_aon_sysctl.h:
C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/inc/hw_fcfg1.h:
C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/driverlib/ioc.h:
C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393/inc/hw_ioc.h:
C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/icall/src/inc/ICall.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_5.2.6/include/stdlib.h:
C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/inc/hal_assert.h:
C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/target/_common/hal_types.h:
C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/inc/hal_sleep.h:
C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/osal/src/inc/osal.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_5.2.6/include/limits.h:
C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/osal/src/inc/OSAL_Memory.h:
C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/osal/src/inc/OSAL_Timers.h:
C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/target/_common/hal_board_cfg.h:
C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/target/_common/hal_types.h:
C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/inc/hal_key.h:
C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/inc/hal_board.h:
| D |
module memutils.debugger;
import memutils.allocators;
import memutils.hashmap;
import memutils.dictionarylist;
import memutils.utils : Malloc;
import std.conv : emplace, to;
/**
* Another proxy allocator used to aggregate statistics and to enforce correct usage.
*/
final class DebugAllocator(Base : Allocator) : Allocator {
private {
static if (HasDictionaryDebugger) DictionaryListRef!(size_t, size_t, Malloc) m_blocks;
else HashMap!(size_t, size_t, Malloc) m_blocks;
size_t m_bytes;
size_t m_maxBytes;
void function(size_t) m_allocSizeCallback;
void function(size_t) m_freeSizeCallback;
}
package Base m_baseAlloc;
this()
{
version(TLSGC) { } else {
if (!mtx) mtx = new Mutex;
}
m_baseAlloc = getAllocator!Base();
}
public {
void setAllocSizeCallbacks(void function(size_t) alloc_sz_cb, void function(size_t) free_sz_cb) {
m_allocSizeCallback = alloc_sz_cb;
m_freeSizeCallback = free_sz_cb;
}
@property size_t allocatedBlockCount() const { return m_blocks.length; }
@property size_t bytesAllocated() const { return m_bytes; }
@property size_t maxBytesAllocated() const { return m_maxBytes; }
void printMap() {
foreach(const ref size_t ptr, const ref size_t sz; m_blocks) {
logDebug(cast(void*)ptr, " sz ", sz);
}
}
static if (HasDictionaryDebugger) auto getMap() {
return m_blocks;
}
}
void[] alloc(size_t sz)
{
version(TLSGC) { } else {
mtx.lock_nothrow();
scope(exit) mtx.unlock_nothrow();
}
assert(sz > 0, "Cannot serve a zero-length allocation");
//logTrace("Bytes allocated in ", Base.stringof, ": ", bytesAllocated());
auto ret = m_baseAlloc.alloc(sz);
synchronized(this) {
assert(ret.length == sz, "base.alloc() returned block with wrong size.");
assert( cast(size_t)ret.ptr !in m_blocks, "Returning already allocated pointer");
m_blocks[cast(size_t)ret.ptr] = sz;
m_bytes += sz;
if (m_allocSizeCallback)
m_allocSizeCallback(sz);
if( m_bytes > m_maxBytes ){
m_maxBytes = m_bytes;
//logTrace("New allocation maximum: %d (%d blocks)", m_maxBytes, m_blocks.length);
}
}
//logDebug("Alloc ptr: ", ret.ptr, " sz: ", ret.length);
return ret;
}
void[] realloc(void[] mem, size_t new_size)
{
version(TLSGC) { } else {
mtx.lock_nothrow();
scope(exit) mtx.unlock_nothrow();
}
assert(new_size > 0 && mem.length > 0, "Cannot serve a zero-length reallocation");
void[] ret;
size_t sz;
synchronized(this) {
sz = m_blocks.get(cast(size_t)mem.ptr, size_t.max);
assert(sz != size_t.max, "realloc() called with non-allocated pointer.");
assert(sz == mem.length, "realloc() called with block of wrong size.");
}
ret = m_baseAlloc.realloc(mem, new_size);
synchronized(this) {
//assert( cast(size_t)ret.ptr !in m_blocks, "Returning from realloc already allocated pointer");
assert(ret.length == new_size, "base.realloc() returned block with wrong size.");
//assert(ret.ptr is mem.ptr || m_blocks.get(ret.ptr, size_t.max) == size_t.max, "base.realloc() returned block that is already allocated.");
m_bytes -= sz;
m_blocks.remove(cast(size_t)mem.ptr);
m_blocks[cast(size_t)ret.ptr] = new_size;
m_bytes += new_size;
if (m_freeSizeCallback)
m_freeSizeCallback(sz);
if (m_allocSizeCallback)
m_allocSizeCallback(new_size);
}
return ret;
}
void free(void[] mem)
{
version(TLSGC) { } else {
mtx.lock_nothrow();
scope(exit) mtx.unlock_nothrow();
}
assert(mem.length > 0, "Cannot serve a zero-length deallocation");
size_t sz;
synchronized(this) {
sz = m_blocks.get(cast(const size_t)mem.ptr, size_t.max);
assert(sz != size_t.max, "free() called with non-allocated object. "~ mem.ptr.to!string ~ " (" ~ mem.length.to!string ~" B) m_blocks len: "~ m_blocks.length.to!string);
assert(sz == mem.length, "free() called with block of wrong size: got " ~ mem.length.to!string ~ "B but should be " ~ sz.to!string ~ "B");
}
//logDebug("free ptr: ", mem.ptr, " sz: ", mem.length);
m_baseAlloc.free(mem);
synchronized(this) {
m_bytes -= sz;
if (m_freeSizeCallback)
m_freeSizeCallback(sz);
m_blocks.remove(cast(size_t)mem.ptr);
}
}
package void ignore(void* ptr) {
synchronized(this) {
size_t sz = m_blocks.get(cast(const size_t) ptr, size_t.max);
m_bytes -= sz;
m_blocks.remove(cast(size_t)ptr);
}
}
} | D |
module parseBase;
import casts;
version(Windows) {
int bcmp (char* from, char* to, int count) {
while (count-- > 0) {
if (*from++ != *to++) return 1;
}
return 0;
}
} else {
extern(C) int bcmp(char*, char*, int);
}
version(Windows) { } else pragma(set_attribute, faststreq_samelen_nonz, optimize("-fomit-frame-pointer"));
int faststreq_samelen_nonz(string a, string b) {
// the chance of this happening is approximately 0.1% (I benched it)
// as such, it's not worth it
// if (a.ptr == b.ptr) return true; // strings are assumed immutable
if (a.length > 4) {
if ((cast(int*) a.ptr)[0] != (cast(int*) b.ptr)[0]) return false;
return bcmp(a.ptr + 4, b.ptr + 4, a.length - 4) == 0;
}
int ai = *cast(int*) a.ptr, bi = *cast(int*) b.ptr;
/**
1 => 0x000000ff => 2^8 -1
2 => 0x0000ffff => 2^16-1
3 => 0x00ffffff => 2^24-1
4 => 0xffffffff => 2^32-1
**/
uint mask = (0x01010101U >> ((4-a.length)*8))*0xff;
// uint mask = (1<<((a.length<<3)&0x1f))-(((a.length<<3)&32)>>5)-1;
// uint mask = (((1<<((a.length<<3)-1))-1)<<1)|1;
return (ai & mask) == (bi & mask);
}
// version(Windows) { } else pragma(set_attribute, faststreq, optimize("-O3"));
int faststreq(string a, string b) {
if (a.length != b.length) return false;
if (!b.length) return true;
return faststreq_samelen_nonz(a, b);
}
int[int] accesses;
char takech(ref string s, char deflt) {
if (!s.length) return deflt;
else {
auto res = s[0];
s = s[1 .. $];
return res;
}
}
import tools.base, errors;
struct StatCache {
tools.base.Stuple!(Object, char*, int)[char*] cache;
int depth;
tools.base.Stuple!(Object, char*)* opIn_r(char* p) {
auto res = p in cache;
if (!res) return null;
auto delta = depth - res._2;
if (!(delta in accesses)) accesses[delta] = 0;
accesses[delta] ++;
return cast(tools.base.Stuple!(Object, char*)*) res;
}
void opIndexAssign(tools.base.Stuple!(Object, char*) thing, char* idx) {
cache[idx] = stuple(thing._0, thing._1, depth++);
}
}
struct SpeedCache {
tools.base.Stuple!(char*, Object, char*)[24] cache;
int curPos;
tools.base.Stuple!(Object, char*)* opIn_r(char* p) {
int start = curPos - 1;
if (start == -1) start += cache.length;
int i = start;
do {
if (cache[i]._0 == p)
return cast(tools.base.Stuple!(Object, char*)*) &cache[i]._1;
if (--i == -1) i += cache.length;
} while (i != start);
return null;
}
void opIndexAssign(tools.base.Stuple!(Object, char*) thing, char* idx) {
cache[curPos++] = stuple(idx, thing._0, thing._1);
if (curPos == cache.length) curPos = 0;
}
}
enum Scheme { Binary, Octal, Decimal, Hex }
bool gotInt(ref string text, out int i, bool* unsigned = null) {
auto t2 = text;
t2.eatComments();
if (auto rest = t2.startsWith("-")) {
return gotInt(rest, i)
&& (
i = -i,
(text = rest),
true
);
}
ubyte ub;
bool accept(ubyte from, ubyte to = 0xff) {
if (!t2.length) return false;
ubyte nub = t2[0];
if (nub < from) return false;
if (to != 0xff) { if (nub > to) return false; }
else { if (nub > from) return false; }
nub -= from;
t2.take();
ub = nub;
return true;
}
int res;
bool must_uint;
bool getDigits(Scheme scheme) {
static int[4] factor = [2, 8, 10, 16];
bool gotSomeDigits = false;
outer:while (true) {
// if it starts with _, it's an identifier
while (gotSomeDigits && accept('_')) { }
switch (scheme) {
case Scheme.Hex:
if (accept('a', 'f')) { ub += 10; break; }
if (accept('A', 'F')) { ub += 10; break; }
case Scheme.Decimal: if (accept('0', '9')) break;
case Scheme.Octal: if (accept('0', '7')) break;
case Scheme.Binary: if (accept('0', '1')) break;
default: break outer;
}
gotSomeDigits = true;
assert(ub < factor[scheme]);
long nres = cast(long) res * cast(long) factor[scheme] + cast(long) ub;
if (cast(long) cast(int) nres != nres) must_uint = true; // prevent this check from passing once via uint, once via int. See test169fail.nt
if ((must_uint || cast(long) cast(int) nres != nres) && cast(long) cast(uint) nres != nres) {
text.setError("Number too large for 32-bit integer representation");
return false;
}
res = cast(int) nres;
}
if (gotSomeDigits && unsigned) *unsigned = must_uint;
return gotSomeDigits;
}
if (accept('0')) {
if (accept('b') || accept('B')) {
if (!getDigits(Scheme.Binary)) return false;
} else if (accept('x') || accept('X')) {
if (!getDigits(Scheme.Hex)) return false;
} else {
if (!getDigits(Scheme.Octal)) res = 0;
}
} else {
if (!getDigits(Scheme.Decimal)) return false;
}
i = res;
text = t2;
return true;
}
import tools.compat: replace;
import tools.base: Stuple, stuple;
string returnTrueIf(dstring list, string var) {
string res = "switch ("~var~") {";
foreach (dchar d; list) {
string myu; myu ~= d;
res ~= "case '"~myu~"': return true;";
}
res ~= "default: break; }";
return res;
}
// copypasted from phobos to enable inlining
version(Windows) { } else pragma(set_attribute, decode, optimize("-fomit-frame-pointer"));
dchar decode(char[] s, ref size_t idx) {
size_t len = s.length;
dchar V;
size_t i = idx;
char u = s[i];
if (u & 0x80)
{
uint n;
char u2;
/* The following encodings are valid, except for the 5 and 6 byte
* combinations:
* 0xxxxxxx
* 110xxxxx 10xxxxxx
* 1110xxxx 10xxxxxx 10xxxxxx
* 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx
* 111110xx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx
* 1111110x 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx
*/
for (n = 1; ; n++)
{
if (n > 4) goto Lerr; // only do the first 4 of 6 encodings
if (((u << n) & 0x80) == 0) {
if (n == 1) goto Lerr;
break;
}
}
// Pick off (7 - n) significant bits of B from first byte of octet
V = cast(dchar)(u & ((1 << (7 - n)) - 1));
if (i + (n - 1) >= len) goto Lerr; // off end of string
/* The following combinations are overlong, and illegal:
* 1100000x (10xxxxxx)
* 11100000 100xxxxx (10xxxxxx)
* 11110000 1000xxxx (10xxxxxx 10xxxxxx)
* 11111000 10000xxx (10xxxxxx 10xxxxxx 10xxxxxx)
* 11111100 100000xx (10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx)
*/
u2 = s[i + 1];
if ((u & 0xFE) == 0xC0 ||
(u == 0xE0 && (u2 & 0xE0) == 0x80) ||
(u == 0xF0 && (u2 & 0xF0) == 0x80) ||
(u == 0xF8 && (u2 & 0xF8) == 0x80) ||
(u == 0xFC && (u2 & 0xFC) == 0x80))
goto Lerr; // overlong combination
for (uint j = 1; j != n; j++)
{
u = s[i + j];
if ((u & 0xC0) != 0x80) goto Lerr; // trailing bytes are 10xxxxxx
V = (V << 6) | (u & 0x3F);
}
// if (!isValidDchar(V)) goto Lerr;
i += n;
} else {
V = cast(dchar) u;
i++;
}
idx = i;
return V;
Lerr:
//printf("\ndecode: idx = %d, i = %d, length = %d s = \n'%.*s'\n%x\n'%.*s'\n", idx, i, s.length, s, s[i], s[i .. length]);
throw new UtfException("4invalid UTF-8 sequence", i);
}
// TODO: unicode
bool isNormal(dchar c) {
if (c < 128) {
return (c >= 'a' && c <= 'z') ||
(c >= 'A' && c <= 'Z') ||
(c >= '0' && c <= '9') ||
c == '_';
}
mixin(returnTrueIf(
"µð" // different mu
"αβγδεζηθικλμνξοπρσςτυφχψωΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ"
, "c"));
return false;
}
string lastAccepted, lastAccepted_stripped;
template acceptT(bool USECACHE) {
// pragma(attribute, optimize("-O3"))
bool acceptT(ref string s, string t) {
string s2;
debug if (t !is t.strip()) {
logln("bad t: '", t, "'");
fail;
}
static if (USECACHE) {
if (s.ptr == lastAccepted.ptr && s.length == lastAccepted.length) {
s2 = lastAccepted_stripped;
} else {
s2 = s;
s2.eatComments();
lastAccepted = s;
lastAccepted_stripped = s2;
}
} else {
s2 = s;
s2.eatComments();
}
size_t idx = t.length, zero = 0;
if (!s2.startsWith(t)) return false;
if (isNormal(t.decode(zero)) && s2.length > t.length && isNormal(s2.decode(idx))) {
return false;
}
s = s2[t.length .. $];
if (!(t.length && t[$-1] == ' ') || !s.length) return true;
if (s[0] != ' ') return false;
s = s[1 .. $];
return true;
}
}
alias acceptT!(true)/*.acceptT*/ accept;
alias acceptT!(false)/*.acceptT*/ accept_mt;
bool hadABracket(string s) {
auto s2 = (s.ptr - 1)[0..s.length + 1];
if (s2.accept("}")) return true;
return false;
}
// statement terminator.
// multiple semicolons can be substituted with a single one
// and "}" counts as "};"
bool acceptTerminatorSoft(ref string s) {
if (!s.ptr) return true; // yeagh. Just assume it worked and leave me alone.
if (s.accept(";")) return true;
auto s2 = (s.ptr - 1)[0..s.length + 1];
if (s2.accept(";") || s2.accept("}")) return true;
return false;
}
bool mustAcceptTerminatorSoft(ref string s, lazy string err) {
string s2 = s;
if (!acceptTerminatorSoft(s2)) s.failparse(err());
s = s2;
return true;
}
bool mustAccept(ref string s, string t, lazy string err) {
if (s.accept(t)) return true;
s.failparse(err());
}
bool bjoin(ref string s, lazy bool c1, lazy bool c2, void delegate() dg,
bool allowEmpty = true) {
auto s2 = s;
if (!c1) { s = s2; return allowEmpty; }
dg();
while (true) {
s2 = s;
if (!c2) { s = s2; return true; }
s2 = s;
if (!c1) { s = s2; return false; }
dg();
}
}
// while expr
bool many(ref string s, lazy bool b, void delegate() dg = null, string abort = null) {
while (true) {
auto s2 = s, s3 = s2;
if (abort && s3.accept(abort)
||
!b()
) {
s = s2;
break;
}
if (dg) dg();
}
return true;
}
import std.utf;
version(Windows) { } else pragma(set_attribute, gotIdentifier, optimize("-fomit-frame-pointer"));
bool gotIdentifier(ref string text, out string ident, bool acceptDots = false, bool acceptNumbers = false) {
auto t2 = text;
t2.eatComments();
bool isValid(dchar d, bool first = false) {
return isNormal(d) || (!first && d == '-') || (acceptDots && d == '.');
}
// array length special handling
if (t2.length && t2[0] == '$') { text = t2; ident = "$"; return true; }
if (!acceptNumbers && t2.length && t2[0] >= '0' && t2[0] <= '9') { return false; /* identifiers must not start with numbers */ }
size_t idx = 0;
if (!t2.length || !isValid(t2.decode(idx), true)) return false;
size_t prev_idx = 0;
dchar cur;
do {
prev_idx = idx;
if (idx == t2.length) break;
cur = t2.decode(idx);
// } while (isValid(cur));
} while (isNormal(cur) || (cur == '-') || (acceptDots && cur == '.'));
// prev_idx now is the start of the first invalid character
/*if (ident in reserved) {
// logln("reject ", ident);
return false;
}*/
ident = t2[0 .. prev_idx];
if (ident == "λ") return false;
text = t2[prev_idx .. $];
return true;
}
bool isCNormal(char ch) {
return ch >= 'a' && ch <= 'z' || ch >= 'A' && ch <= 'Z' || ch >= '0' && ch <= '9';
}
bool gotCIdentifier(ref string text, out string ident) {
auto t2 = text;
t2.eatComments();
if (t2.length && t2[0] >= '0' && t2[0] <= '9') { return false; /* identifiers must not start with numbers */ }
size_t idx = 0;
if (!t2.length || !isCNormal(t2[idx++])) return false;
size_t prev_idx = 0;
dchar cur;
do {
prev_idx = idx;
if (idx == t2.length) break;
cur = t2[idx++];
} while (isCNormal(cur));
ident = t2[0 .. prev_idx];
text = t2[prev_idx .. $];
return true;
}
bool[string] reserved, reservedPropertyNames;
static this() {
reserved["auto"] = true;
reserved["return"] = true;
reserved["function"] = true;
reserved["delegate"] = true;
reserved["type-of"] = true;
reserved["string-of"] = true;
reservedPropertyNames["eval"] = true;
reservedPropertyNames["iterator"] = true;
}
// This isn't a symbol! Maybe I was wrong about the dash ..
// Remove the last dash part from "id" that was taken from "text"
// and re-add it to "text" via dark pointer magic.
bool eatDash(ref string text, ref string id) {
auto dp = id.rfind("-");
if (dp == -1) return false;
auto removed = id.length - dp;
id = id[0 .. dp];
// give back
text = (text.ptr - removed)[0 .. text.length + removed];
return true;
}
// see above
bool eatDot(ref string text, ref string id) {
auto dp = id.rfind(".");
if (dp == -1) return false;
auto removed = id.length - dp;
id = id[0 .. dp];
// give back also
text = (text.ptr - removed)[0 .. text.length + removed];
return true;
}
bool ckbranch(ref string s, bool delegate()[] dgs...) {
auto s2 = s;
foreach (dg; dgs) {
if (dg()) return true;
s = s2;
}
return false;
}
bool verboseParser = false;
string[bool delegate(string)] condInfo;
bool sectionStartsWith(string section, string rule) {
if (section.length == rule.length && section.faststreq_samelen_nonz(rule)) return true;
if (section.length < rule.length) return false;
if (!section[0..rule.length].faststreq_samelen_nonz(rule)) return false;
if (section.length == rule.length) return true;
// only count hits that match a complete section
return section[rule.length] == '.';
}
string matchrule_static(string rules) {
// string res = "false /apply/ delegate bool(ref bool hit, string text) {";
string res;
int i;
int falses;
string preparams;
while (rules.length) {
string passlabel = "pass"~ctToString(i);
string flagname = "flag"~ctToString(i);
i++;
auto rule = ctSlice(rules, " ");
auto first = rule[0], rest = rule[1 .. $];
bool smaller, greater, equal, before, after, after_incl;
switch (first) {
case '<': smaller = true; rule = rest; break;
case '>': greater = true; rule = rest; break;
case '=': equal = true; rule = rest; break;
case '^': before = true; preparams ~= "bool "~flagname~", "; falses ++; rule = rest; break;
case '_': after = true; preparams ~= "bool "~flagname~", "; falses ++; rule = rest; break;
case ',': after_incl = true; preparams ~= "bool "~flagname~", "; falses ++; rule = rest; break;
default: break;
}
if (!smaller && !greater && !equal && !before && !after && !after_incl)
smaller = equal = true; // default (see below)
if (smaller) res ~= "if (text.sectionStartsWith(\""~rule~"\")) goto "~passlabel~";\n";
if (equal) res ~= "if (text == \""~rule~"\") goto "~passlabel~";\n";
if (greater) res ~= "if (!text.sectionStartsWith(\""~rule~"\")) goto "~passlabel~";\n";
if (before) res ~= "if (text.sectionStartsWith(\""~rule~"\")) hit = true; if (!hit) goto "~passlabel~";\n";
if (after) res ~= "if (text.sectionStartsWith(\""~rule~"\")) hit = true; else if (hit) goto "~passlabel~";\n";
if (after_incl)res~="if (text.sectionStartsWith(\""~rule~"\")) hit = true; if (hit) goto "~passlabel~";\n";
res ~= "return false; "~passlabel~": \n";
}
string falsestr;
if (falses == 1) falsestr = "false /apply/ ";
else if (falses > 1) {
falsestr = "false";
for (int k = 1; k < falses; ++k) falsestr ~= ", false";
falsestr = "stuple("~falsestr~") /apply/ ";
}
return falsestr ~ "delegate bool("~preparams~"string text) { \n" ~ res ~ "return true; \n}";
}
bool delegate(string)[string] rulefuns;
bool delegate(string) matchrule(string rules) {
if (auto p = rules in rulefuns) return *p;
bool delegate(string) res;
auto rules_backup = rules;
while (rules.length) {
auto rule = rules.slice(" ");
bool smaller, greater, equal, before, after, after_incl;
assert(rule.length);
restartRule:
auto first = rule[0], rest = rule[1 .. $];
switch (first) {
case '<': smaller = true; rule = rest; goto restartRule;
case '>': greater = true; rule = rest; goto restartRule;
case '=': equal = true; rule = rest; goto restartRule;
case '^': before = true; rule = rest; goto restartRule;
case '_': after = true; rule = rest; goto restartRule;
case ',': after_incl = true; rule = rest; goto restartRule;
default: break;
}
if (!smaller && !greater && !equal && !before && !after && !after_incl)
smaller = equal = true; // default
// different modes
assert((smaller || greater || equal) ^ before ^ after ^ after_incl);
res = stuple(smaller, greater, equal, before, after, after_incl, rule, res, false) /apply/
(bool smaller, bool greater, bool equal, bool before, bool after, bool after_incl, string rule, bool delegate(string) prev, ref bool hit, string text) {
// logln(smaller, " ", greater, " ", equal, " ", before, " ", after, " ", after_incl, " ", hit, " and ", rule, " onto ", text, ":", text.sectionStartsWith(rule));
if (prev && !prev(text)) return false;
if (equal && text == rule) return true;
bool startswith = text.sectionStartsWith(rule);
if (smaller && startswith) return true; // all "below" in the tree
if (greater && !startswith) return true; // arguable
if (before) {
if (startswith)
hit = true;
return !hit;
}
if (after) {
if (startswith)
hit = true;
else return hit;
}
if (after_incl) {
if (startswith)
hit = true;
return hit;
}
return false;
};
}
rulefuns[rules_backup] = res;
return res;
}
import tools.functional;
struct ParseCb {
Object delegate(ref string text,
bool delegate(string)
) dg;
bool delegate(string) cur;
Object opCall(T...)(ref string text, T t) {
bool delegate(string) matchdg;
static if (T.length && is(T[0]: char[])) {
alias T[1..$] Rest1;
matchdg = matchrule(t[0]);
auto rest1 = t[1..$];
} else static if (T.length && is(T[0] == bool delegate(string))) {
alias T[1..$] Rest1;
matchdg = t[1];
auto rest1 = t[1..$];
} else {
matchdg = cur;
alias T Rest1;
alias t rest1;
}
static if (Rest1.length == 1 && is(typeof(*rest1[0])) && !is(MustType))
alias typeof(*rest1[0]) MustType;
static if (Rest1.length == 1 && is(Rest1[0] == delegate)) {
alias Params!(Rest1[0])[0] MustType;
auto callback = rest1[0];
}
static if (Rest1.length == 1 && is(typeof(*rest1[0])) || is(typeof(callback))) {
auto backup = text;
static if (is(typeof(callback))) {
// if the type doesn't match, error?
auto res = dg(text, matchdg);
if (!res) text = backup;
else {
auto t = fastcast!(MustType) (res);
if (!t) backup.failparse("Type (", MustType.stringof, ") not matched: ", res);
callback(t);
}
return fastcast!(Object) (res);
} else {
*rest1[0] = fastcast!(typeof(*rest1[0])) (dg(text, matchdg));
if (!*rest1[0]) text = backup;
return fastcast!(Object) (*rest1[0]);
}
} else {
static assert(!Rest1.length, "Left: "~Rest1.stringof~" of "~T.stringof);
return dg(text, matchdg);
}
}
}
// used to be class, flattened for speed
struct Parser {
string key, id;
Object delegate
(ref string text,
ParseCb cont,
ParseCb rest) match;
}
// stuff that it's unsafe to memoize due to side effects
bool delegate(string)[] globalStateMatchers;
int cachedepth;
int[] cachecount;
static this() { cachecount = new int[8]; }
void delegate() pushCache() {
cachedepth ++;
if (cachecount.length <= cachedepth) cachecount.length = cachedepth + 1;
cachecount[cachedepth] ++;
return { cachedepth --; };
}
struct Stash(T) {
const StaticSize = 4;
T[StaticSize] static_backing_array;
int[StaticSize] static_backing_lastcount;
T[] backing_array;
int[] backing_lastcount;
T* getPointerInternal(ref int* countp) {
int i = cachedepth;
if (i < StaticSize) {
countp = &static_backing_lastcount[i];
return &static_backing_array[i];
}
i -= StaticSize;
if (!backing_array.length) {
backing_array .length = 1;
backing_lastcount.length = 1;
}
while (i >= backing_array.length) {
backing_array .length = backing_array .length * 2;
backing_lastcount.length = backing_lastcount.length * 2;
}
countp = &backing_lastcount[i];
return &backing_array[i];
}
T* getPointer() {
int* countp;
auto p = getPointerInternal(countp);
int cmp = cachecount[cachedepth];
if (*countp != cmp) {
*countp = cmp;
*p = Init!(T);
}
return p;
}
}
bool[string] unreserved;
static this() {
unreserved["enum"] = true;
unreserved["sum"] = true;
unreserved["prefix"] = true;
unreserved["suffix"] = true;
unreserved["vec"] = true;
unreserved["context"] = true;
unreserved["do"] = true;
}
void reserve(string key) {
if (key in unreserved) return;
reserved[key] = true;
}
template DefaultParserImpl(alias Fn, string Id, bool Memoize, string Key, bool MemoizeForever) {
final class DefaultParserImpl {
Object info;
bool dontMemoMe;
static this() {
static if (Key) reserve(Key);
}
this(Object obj = null) {
info = obj;
foreach (dg; globalStateMatchers)
if (dg(Id)) { dontMemoMe = true; break; }
}
Parser genParser() {
Parser res;
res.key = Key;
res.id = Id;
res.match = &match;
return res;
}
Object fnredir(ref string text, ParseCb cont, ParseCb rest) {
static if (is(typeof((&Fn)(info, text, cont, rest))))
return Fn(info, text, cont, rest);
else static if (is(typeof((&Fn)(info, text, cont, rest))))
return Fn(info, text, cont, rest);
else static if (is(typeof((&Fn)(text, cont, rest))))
return Fn(text, cont, rest);
else
return Fn(text, cont, rest);
}
static if (!Memoize) {
Object match(ref string text, ParseCb cont, ParseCb rest) {
return fnredir(text, cont, rest);
}
} else {
// Stuple!(Object, char*)[char*] cache;
static if (MemoizeForever) {
Stash!(Stuple!(Object, char*)[char*]) cachestash;
} else {
Stash!(SpeedCache) cachestash;
}
Object match(ref string text, ParseCb cont, ParseCb rest) {
auto t2 = text;
if (.accept(t2, "]")) return null; // never a valid start
if (dontMemoMe) {
static if (Key) if (!.accept(t2, Key)) return null;
auto res = fnredir(t2, cont, rest);
if (res) text = t2;
return res;
}
auto ptr = t2.ptr;
auto cache = cachestash.getPointer();
if (auto p = ptr in *cache) {
if (!p._1) text = null;
else text = p._1[0 .. t2.ptr + t2.length - p._1];
return p._0;
}
static if (Key) if (!.accept(t2, Key)) return null;
auto res = fnredir(t2, cont, rest);
(*cache)[ptr] = stuple(res, t2.ptr);
if (res) text = t2;
return res;
}
}
}
}
import tools.threads, tools.compat: rfind;
static this() { New(sync); }
template DefaultParser(alias Fn, string Id, string Prec = null, string Key = null, bool Memoize = true, bool MemoizeForever = false) {
static this() {
static if (Prec) addParser((new DefaultParserImpl!(Fn, Id, Memoize, Key, MemoizeForever)).genParser(), Prec);
else addParser((new DefaultParserImpl!(Fn, Id, Memoize, Key, MemoizeForever)).genParser());
}
}
import tools.log;
struct SplitIter(T) {
T data, sep;
T front, frontIncl, all;
T pop() {
for (int i = 0; i <= cast(int) data.length - cast(int) sep.length; ++i) {
if (data[i .. i + sep.length] == sep) {
auto res = data[0 .. i];
data = data[i + sep.length .. $];
front = all[0 .. $ - data.length - sep.length - res.length];
frontIncl = all[0 .. front.length + res.length];
return res;
}
}
auto res = data;
data = null;
front = null;
frontIncl = all;
return res;
}
}
SplitIter!(T) splitIter(T)(T d, T s) {
SplitIter!(T) res;
res.data = d; res.sep = s;
res.all = res.data;
return res;
}
void delegate(string) justAcceptedCallback;
int[string] idepth;
Parser[] parsers;
Parser[][bool delegate(string)] prefiltered_parsers;
string[string] prec; // precedence mapping
Object sync;
void addPrecedence(string id, string val) { synchronized(sync) { prec[id] = val; } }
string lookupPrecedence(string id) {
synchronized(sync)
if (auto p = id in prec) return *p;
return null;
}
import tools.compat: split, join;
string dumpInfo() {
if (listModified) resort;
string res;
int maxlen;
foreach (parser; parsers) {
auto id = parser.id;
if (id.length > maxlen) maxlen = id.length;
}
auto reserved = maxlen + 2;
string[] prevId;
foreach (parser; parsers) {
auto id = parser.id;
auto n = id.dup.split(".");
foreach (i, str; n[0 .. min(n.length, prevId.length)]) {
if (str == prevId[i]) foreach (ref ch; str) ch = ' ';
}
prevId = id.split(".");
res ~= n.join(".");
if (auto p = id in prec) {
for (int i = 0; i < reserved - id.length; ++i)
res ~= " ";
res ~= ":" ~ *p;;
}
res ~= "\n";
}
return res;
}
bool idSmaller(Parser pa, Parser pb) {
auto a = splitIter(pa.id, "."), b = splitIter(pb.id, ".");
string ap, bp;
while (true) {
ap = a.pop(); bp = b.pop();
if (!ap && !bp) return false; // equal
if (ap && !bp) return true; // longer before shorter
if (bp && !ap) return false;
if (ap == bp) continue; // no information here
auto aprec = lookupPrecedence(a.frontIncl), bprec = lookupPrecedence(b.frontIncl);
if (!aprec && bprec)
throw new Exception("Patterns "~a.frontIncl~" vs. "~b.frontIncl~": first is missing precedence info! ");
if (!bprec && aprec)
throw new Exception("Patterns "~a.frontIncl~" vs. "~b.frontIncl~": second is missing precedence info! ");
if (!aprec && !bprec) return ap < bp; // lol
if (aprec == bprec) throw new Exception("Error: patterns '"~a.frontIncl~"' and '"~b.frontIncl~"' have the same precedence! ");
for (int i = 0; i < min(aprec.length, bprec.length); ++i) {
// precedence needs to be _inverted_, ie. lower-precedence rules must come first
// this is because "higher-precedence" means it binds tighter.
// if (aprec[i] > bprec[i]) return true;
// if (aprec[i] < bprec[i]) return false;
if (aprec[i] < bprec[i]) return true;
if (aprec[i] > bprec[i]) return false;
}
bool flip;
// this gets a bit hairy
// 50 before 5, 509 before 5, but 51 after 5.
if (aprec.length < bprec.length) { swap(aprec, bprec); flip = true; }
if (aprec[bprec.length] != '0') return flip;
return !flip;
}
}
bool listModified;
void addParser(Parser p) {
parsers ~= p;
listModified = true;
}
void addParser(Parser p, string pred) {
addParser(p);
addPrecedence(p.id, pred);
}
import quicksort: qsort_ = qsort;
import tools.time: sec, µsec;
void resort() {
parsers.qsort_(&idSmaller);
prefiltered_parsers = null; // invalid; regenerate
rulefuns = null; // also reset this to regenerate the closures
listModified = false;
}
Object parse(ref string text, bool delegate(string) cond,
int offs = 0)
{
if (verboseParser) return _parse!(true).parse(text, cond, offs);
else return _parse!(false).parse(text, cond, offs);
}
string condStr;
Object parse(ref string text, string cond) {
condStr = cond;
scope(exit) condStr = null;
try return parse(text, matchrule(cond));
catch (ParseEx pe) { pe.addRule(cond); throw pe; }
catch (Exception ex) throw new Exception(Format("Matching rule '"~cond~"': ", ex));
}
template _parse(bool Verbose) {
Object parse(ref string text, bool delegate(string) cond,
int offs = 0) {
if (!text.length) return null;
if (listModified) resort;
bool matched;
static if (Verbose)
logln("BEGIN PARSE '", text.nextText(16), "'");
ParseCb cont = void, rest = void;
cont.dg = null; // needed for null check further in
int i = void;
Object cont_dg(ref string text, bool delegate(string) cond) {
return parse(text, cond, offs + i + 1); // same verbosity - it's a global flag
}
Object rest_dg(ref string text, bool delegate(string) cond) {
return parse(text, cond, 0);
}
const ProfileMode = false;
static if (ProfileMode) {
auto start_time = µsec();
auto start_text = text;
static float min_speed = float.infinity;
scope(exit) if (text.ptr !is start_text.ptr) {
auto delta = (µsec() - start_time) / 1000f;
auto speed = (text.ptr - start_text.ptr) / delta;
if (speed < min_speed) {
min_speed = speed;
if (delta > 5) {
logln("New worst slowdown: '",
condStr, "' at '", start_text.nextText(), "'"
": ", speed, " characters/ms "
"(", (text.ptr - start_text.ptr), " in ", delta, "ms). ");
}
}
// min_speed *= 1.01;
}
}
Parser[] pref_parsers;
if (auto p = cond in prefiltered_parsers) pref_parsers = *p;
else {
foreach (parser; parsers) if (cond(parser.id)) pref_parsers ~= parser;
prefiltered_parsers[cond] = pref_parsers;
}
auto tx = text;
tx.eatComments();
if (!tx.length) return null;
bool tried;
// logln("use ", pref_parsers /map/ ex!("p -> p.id"), " [", offs, "..", pref_parsers.length, "]");
foreach (j, ref parser; pref_parsers[offs..$]) {
i = j;
// auto tx = text;
// skip early. accept is slightly faster than cond.
// if (parser.key && !.accept(tx, parser.key)) continue;
if (parser.key.ptr) {
auto pk = parser.key;
if (tx.length < pk.length) continue;
if (pk.length >= 4) {
if (*cast(int*) pk.ptr != *cast(int*) tx.ptr) continue;
}
if (tx[0..pk.length] != pk) continue;
}
// rulestack ~= stuple(id, text);
// scope(exit) rulestack = rulestack[0 .. $-1];
auto id = parser.id;
static if (Verbose) {
if (!(id in idepth)) idepth[id] = 0;
idepth[id] ++;
scope(exit) idepth[id] --;
logln("TRY PARSER [", idepth[id], " ", id, "] for '", text.nextText(16), "'");
}
matched = true;
if (!cont.dg) {
cont.dg = &cont_dg;
cont.cur = cond;
rest.dg = &rest_dg;
rest.cur = cond;
}
auto backup = text;
if (auto res = parser.match(text, cont, rest)) {
static if (Verbose) logln(" PARSER [", idepth[id], " ", id, "] succeeded with ", res, ", left '", text.nextText(16), "'");
if (justAcceptedCallback) justAcceptedCallback(text);
return res;
} else {
static if (Verbose) logln(" PARSER [", idepth[id], " ", id, "] failed");
}
text = backup;
}
return null;
}
// version(Windows) { } else pragma(set_attribute, parse, optimize("-O3", "-fno-tree-vrp"));
}
bool test(T)(T t) { if (t) return true; else return false; }
void noMoreHeredoc(string text) {
if (text.accept("<<"))
text.failparse("Please switch from heredoc to {}!");
}
string startsWith(string text, string match)
{
if (text.length < match.length) return null;
// if (!match.length) return text; // doesn't actually happen
if (!text.ptr[0..match.length].faststreq_samelen_nonz(match)) return null;
return text.ptr[match.length .. text.length];
}
string hex(ubyte u) {
auto hs = "0123456789ABCDEF";
return ""~hs[u>>8]~hs[u&0xf];
}
string cleanup(string s) {
string res;
foreach (b; cast(ubyte[]) s) {
if (b >= 'a' && b <= 'z' || b >= 'A' && b <= 'Z' || b >= '0' && b <= '9' || b == '_') {
res ~= b;
} else {
res ~= "_"~hex(b)~"_";
}
}
return res;
}
bool acceptLeftArrow(ref string text) {
return text.accept("<-") || text.accept("←");
}
string filenamepart(string path) {
if (path.find("/") == -1) return path;
auto rpos = path.rfind("/");
return path[rpos + 1 .. $];
}
string dirpart(string path) {
if (path.find("/") == -1) return null;
auto rpos = path.rfind("/");
return path[0 .. rpos];
}
| D |
; Copyright (C) 2008 The Android Open Source Project
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS,
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
; See the License for the specific language governing permissions and
; limitations under the License.
.source T_invoke_super_range_20.java
.class public dot.junit.opcodes.invoke_super_range.d.T_invoke_super_range_20
.super java/lang/Object
.method public <init>()V
.limit regs 2
invoke-direct {v1}, java/lang/Object/<init>()V
return-void
.end method
.method public run(Ldot/junit/opcodes/invoke_super_range/TestStubs;)V
.limit regs 5
invoke-super/range {v4}, dot/junit/opcodes/invoke_super_range/TestStubs/TestStubP()V
return-void
.end method
| D |
/**
Copyright: Copyright (c) 2014 Andrey Penechko.
License: a$(WEB boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: Andrey Penechko.
*/
module anchovy.gui.tooltipmanager;
import anchovy.gui;
struct TooltipManager
{
private:
GuiContext _context;
Widget _tooltip;
public:
@disable this();
this(GuiContext context)
{
_context = context;
}
void onWidgetHovered(Widget widget)
{
if (widget is null)
{
hideTooltip();
return;
}
if (widget.hasProperty("tooltip"))
{
showTooltip(widget.coercePropertyAs!("tooltip", string),
_context.eventDispatcher.lastPointerPosition() + ivec2(0, 20));
}
else
{
hideTooltip();
}
}
void showTooltip(string text, ivec2 pos)
{
if (_tooltip is null)
{
_tooltip = _context.getWidgetById("tooltip");
if (_tooltip is null)
{
_tooltip = _context.createWidget("tooltip");
}
}
_tooltip["text"] = text;
_tooltip["position"] = pos;
_context.overlay.addChild(_tooltip);
}
void hideTooltip()
{
_context.overlay.removeChild(_tooltip);
}
}
| D |
/Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/ToArray.o : /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Deprecated.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Cancelable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/ObservableType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/ObserverType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Reactive.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/Platform/RecursiveLock.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/Platform/DeprecationWarner.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Errors.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Event.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/First.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Rx.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/Platform/Platform.Linux.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/sunchuyue/Documents/test/RX_Product/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/ToArray~partial.swiftmodule : /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Deprecated.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Cancelable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/ObservableType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/ObserverType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Reactive.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/Platform/RecursiveLock.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/Platform/DeprecationWarner.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Errors.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Event.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/First.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Rx.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/Platform/Platform.Linux.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/sunchuyue/Documents/test/RX_Product/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/ToArray~partial.swiftdoc : /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Deprecated.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Cancelable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/ObservableType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/ObserverType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Reactive.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/Platform/RecursiveLock.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/Platform/DeprecationWarner.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Errors.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Event.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/First.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Rx.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/Platform/Platform.Linux.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/sunchuyue/Documents/test/RX_Product/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
| D |
module fluentasserts.core.base;
public import fluentasserts.core.array;
public import fluentasserts.core.string;
public import fluentasserts.core.objects;
public import fluentasserts.core.basetype;
public import fluentasserts.core.callable;
public import fluentasserts.core.results;
import std.traits;
import std.stdio;
import std.algorithm;
import std.array;
import std.range;
import std.conv;
import std.string;
import std.file;
import std.datetime;
import std.range.primitives;
import std.typecons;
@safe:
struct Result {
bool willThrow;
IResult[] results;
MessageResult message;
string file;
size_t line;
private string reason;
auto because(string reason) {
this.reason = "Because " ~ reason ~ ", ";
return this;
}
void perform() {
if(!willThrow) {
return;
}
version(DisableMessageResult) {
IResult[] localResults = this.results;
} else {
IResult[] localResults = message ~ this.results;
}
version(DisableSourceResult) {} else {
auto sourceResult = new SourceResult(file, line);
message.prependValue(sourceResult.getValue);
message.prependText(reason);
localResults ~= sourceResult;
}
throw new TestException(localResults, file, line);
}
~this() {
this.perform;
}
static Result success() {
return Result(false);
}
}
struct Message {
bool isValue;
string text;
}
mixin template DisabledShouldThrowableCommons() {
auto throwSomething(string file = __FILE__, size_t line = __LINE__) {
static assert("`throwSomething` does not work for arrays and ranges");
}
auto throwAnyException(const string file = __FILE__, const size_t line = __LINE__) {
static assert("`throwAnyException` does not work for arrays and ranges");
}
auto throwException(T)(const string file = __FILE__, const size_t line = __LINE__) {
static assert("`throwException` does not work for arrays and ranges");
}
}
mixin template ShouldThrowableCommons() {
auto throwSomething(string file = __FILE__, size_t line = __LINE__) {
addMessage(" throw ");
addValue("something");
beginCheck;
return throwException!Throwable(file, line);
}
auto throwAnyException(const string file = __FILE__, const size_t line = __LINE__) {
addMessage(" throw ");
addValue("any exception");
beginCheck;
return throwException!Exception(file, line);
}
auto throwException(T)(const string file = __FILE__, const size_t line = __LINE__) {
addMessage(" throw a `");
addValue(T.stringof);
addMessage("`");
return ThrowableProxy!T(valueEvaluation.throwable, expectedValue, messages, file, line);
}
private {
ThrowableProxy!T throwExceptionImplementation(T)(Throwable t, string file = __FILE__, size_t line = __LINE__) {
addMessage(" throw a `");
addValue(T.stringof);
addMessage("`");
bool rightType = true;
if(t !is null) {
T castedThrowable = cast(T) t;
rightType = castedThrowable !is null;
}
return ThrowableProxy!T(t, expectedValue, rightType, messages, file, line);
}
}
}
mixin template ShouldCommons()
{
import std.string;
import fluentasserts.core.results;
private ValueEvaluation valueEvaluation;
private void validateException() {
if(valueEvaluation.throwable !is null) {
throw valueEvaluation.throwable;
}
}
auto be() {
addMessage(" be");
return this;
}
auto should() {
return this;
}
auto not() {
addMessage(" not");
expectedValue = !expectedValue;
return this;
}
auto forceMessage(string message) {
messages = [];
addMessage(message);
return this;
}
auto forceMessage(Message[] messages) {
this.messages = messages;
return this;
}
private {
Message[] messages;
ulong mesageCheckIndex;
bool expectedValue = true;
void addMessage(string msg) {
if(mesageCheckIndex != 0) {
return;
}
messages ~= Message(false, msg);
}
void addValue(string msg) {
if(mesageCheckIndex != 0) {
return;
}
messages ~= Message(true, msg);
}
void beginCheck() {
if(mesageCheckIndex != 0) {
return;
}
mesageCheckIndex = messages.length;
}
Result simpleResult(bool value, Message[] msg, string file, size_t line) {
return result(value, msg, [ ], file, line);
}
Result result(bool value, Message[] msg, IResult res, string file, size_t line) {
return result(value, msg, [ res ], file, line);
}
Result result(bool value, IResult res, string file, size_t line) {
return result(value, [], [ res ], file, line);
}
Result result(bool value, Message[] msg, IResult[] res, const string file, const size_t line) {
if(res.length == 0 && msg.length == 0) {
return Result(false);
}
auto finalMessage = new MessageResult(" should");
messages ~= Message(false, ".");
if(msg.length > 0) {
messages ~= Message(false, " ") ~ msg;
}
foreach(message; messages) {
if(message.isValue) {
finalMessage.addValue(message.text);
} else {
finalMessage.addText(message.text);
}
}
return Result(expectedValue != value, res, finalMessage, file, line);
}
}
}
version(Have_unit_threaded) {
import unit_threaded.should;
alias ReferenceException = UnitTestException;
} else {
alias ReferenceException = Exception;
}
class TestException : ReferenceException {
private {
IResult[] results;
}
this(IResult[] results, string fileName, size_t line, Throwable next = null) {
auto msg = results.map!"a.toString".filter!"a != ``".join("\n") ~ '\n';
this.results = results;
super(msg, fileName, line, next);
}
void print(ResultPrinter printer) {
foreach(result; results) {
result.print(printer);
printer.primary("\n");
}
}
}
/// Test Exception should sepparate the results by a new line
unittest {
import std.stdio;
IResult[] results = [
cast(IResult) new MessageResult("message"),
cast(IResult) new SourceResult("test/missing.txt", 10),
cast(IResult) new DiffResult("a", "b"),
cast(IResult) new ExpectedActualResult("a", "b"),
cast(IResult) new ExtraMissingResult("a", "b") ];
auto exception = new TestException(results, "unknown", 0);
exception.msg.should.equal(`message
--------------------
test/missing.txt:10
--------------------
Diff:
[-a][+b]
Expected:a
Actual:b
Extra:a
Missing:b
`);
}
@("TestException should concatenate all the Result strings")
unittest {
class TestResult : IResult {
override string toString() {
return "message";
}
void print(ResultPrinter) {}
}
auto exception = new TestException([ new TestResult, new TestResult, new TestResult], "", 0);
exception.msg.should.equal("message\nmessage\nmessage\n");
}
@("TestException should call all the result print methods on print")
unittest {
int count;
class TestResult : IResult {
override string toString() {
return "";
}
void print(ResultPrinter) {
count++;
}
}
auto exception = new TestException([ new TestResult, new TestResult, new TestResult], "", 0);
exception.print(new DefaultResultPrinter);
count.should.equal(3);
}
struct ThrowableProxy(T : Throwable) {
import fluentasserts.core.results;
private const {
bool expectedValue;
const string _file;
size_t _line;
}
private {
Message[] messages;
string reason;
bool check;
Throwable thrown;
T thrownTyped;
}
this(Throwable thrown, bool expectedValue, Message[] messages, const string file, size_t line) {
this.expectedValue = expectedValue;
this._file = file;
this._line = line;
this.thrown = thrown;
this.thrownTyped = cast(T) thrown;
this.messages = messages;
this.check = true;
}
~this() {
checkException;
}
auto msg() {
checkException;
check = false;
return thrown.msg.dup.to!string;
}
auto original() {
checkException;
check = false;
return thrownTyped;
}
auto file() {
checkException;
check = false;
return thrown.file;
}
auto info() {
checkException;
check = false;
return thrown.info;
}
auto line() {
checkException;
check = false;
return thrown.line;
}
auto next() {
checkException;
check = false;
return thrown.next;
}
auto withMessage() {
auto s = ShouldString(msg);
check = false;
return s.forceMessage(messages ~ Message(false, " with message"));
}
auto withMessage(string expectedMessage) {
auto s = ShouldString(msg);
check = false;
return s.forceMessage(messages ~ Message(false, " with message")).equal(expectedMessage);
}
private void checkException() {
if(!check) {
return;
}
bool hasException = thrown !is null;
bool hasTypedException = thrownTyped !is null;
if(hasException == expectedValue && hasTypedException == expectedValue) {
return;
}
auto sourceResult = new SourceResult(_file, _line);
auto message = new MessageResult("");
if(reason != "") {
message.addText("Because " ~ reason ~ ", ");
}
message.addText(sourceResult.getValue ~ " should");
foreach(msg; messages) {
if(msg.isValue) {
message.addValue(msg.text);
} else {
message.addText(msg.text);
}
}
message.addText(".");
if(thrown is null) {
message.addText(" Nothing was thrown.");
} else {
message.addText(" An exception of type `");
message.addValue(thrown.classinfo.name);
message.addText("` saying `");
message.addValue(thrown.msg);
message.addText("` was thrown.");
}
throw new TestException([ cast(IResult) message ], _file, _line);
}
auto because(string reason) {
this.reason = reason;
return this;
}
}
struct ValueEvaluation {
Throwable throwable;
Duration duration;
}
auto evaluate(T)(lazy T testData) @trusted {
auto begin = Clock.currTime;
alias Result = Tuple!(T, "value", ValueEvaluation, "evaluation");
try {
auto value = testData;
static if(isCallable!T) {
if(value !is null) {
begin = Clock.currTime;
value();
}
}
auto duration = Clock.currTime - begin;
return Result(value, ValueEvaluation(null, duration));
} catch(Throwable t) {
T result;
static if(isCallable!T) {
result = testData;
}
return Result(result, ValueEvaluation(t, Clock.currTime - begin));
}
}
/// evaluate should capture an exception
unittest {
int value() {
throw new Exception("message");
}
auto result = evaluate(value);
result.evaluation.throwable.should.not.beNull;
result.evaluation.throwable.msg.should.equal("message");
}
/// evaluate should capture an exception thrown by a callable
unittest {
void value() {
throw new Exception("message");
}
auto result = evaluate(&value);
result.evaluation.throwable.should.not.beNull;
result.evaluation.throwable.msg.should.equal("message");
}
auto should(T)(lazy T testData) {
version(Have_vibe_d_data) {
import vibe.data.json;
import fluentasserts.vibe.json;
static if(is(Unqual!T == Json)) {
enum returned = true;
return ShouldJson!T(testData.evaluate);
} else {
enum returned = false;
}
} else {
enum returned = false;
}
static if(is(T == void)) {
auto callable = ({ testData; });
return ShouldCallable!(typeof(callable))(callable);
} else static if(!returned) {
static if(is(T == class) || is(T == interface)) {
return ShouldObject!T(testData.evaluate);
} else static if(is(T == string)) {
return ShouldString(testData.evaluate);
} else static if(isInputRange!T) {
return ShouldList!T(testData);
} else static if(isCallable!T) {
return ShouldCallable!T(testData);
} else {
return ShouldBaseType!T(testData.evaluate);
}
}
}
@("because")
unittest {
auto msg = ({
true.should.equal(false).because("of test reasons");
}).should.throwException!TestException.msg;
msg.split("\n")[0].should.equal("Because of test reasons, true should equal `false`.");
}
struct Assert {
static void opDispatch(string s, T, U)(T actual, U expected, string reason = "", const string file = __FILE__, const size_t line = __LINE__)
{
auto sh = actual.should;
static if(s[0..3] == "not") {
sh.not;
enum assertName = s[3..4].toLower ~ s[4..$];
} else {
enum assertName = s;
}
static if(assertName == "greaterThan" ||
assertName == "lessThan" ||
assertName == "above" ||
assertName == "below" ||
assertName == "between" ||
assertName == "within" ||
assertName == "approximately") {
sh.be;
}
mixin("auto result = sh." ~ assertName ~ "(expected, file, line);");
if(reason != "") {
result.because(reason);
}
}
static void between(T, U)(T actual, U begin, U end, string reason = "", const string file = __FILE__, const size_t line = __LINE__)
{
auto s = actual.should.be.between(begin, end, file, line);
if(reason != "") {
s.because(reason);
}
}
static void notBetween(T, U)(T actual, U begin, U end, string reason = "", const string file = __FILE__, const size_t line = __LINE__)
{
auto s = actual.should.not.be.between(begin, end, file, line);
if(reason != "") {
s.because(reason);
}
}
static void within(T, U)(T actual, U begin, U end, string reason = "", const string file = __FILE__, const size_t line = __LINE__)
{
auto s = actual.should.be.within(begin, end, file, line);
if(reason != "") {
s.because(reason);
}
}
static void notWithin(T, U)(T actual, U begin, U end, string reason = "", const string file = __FILE__, const size_t line = __LINE__)
{
auto s = actual.should.not.be.within(begin, end, file, line);
if(reason != "") {
s.because(reason);
}
}
static void approximately(T, U, V)(T actual, U expected, V delta, string reason = "", const string file = __FILE__, const size_t line = __LINE__)
{
auto s = actual.should.be.approximately(expected, delta, file, line);
if(reason != "") {
s.because(reason);
}
}
static void notApproximately(T, U, V)(T actual, U expected, V delta, string reason = "", const string file = __FILE__, const size_t line = __LINE__)
{
auto s = actual.should.not.be.approximately(expected, delta, file, line);
if(reason != "") {
s.because(reason);
}
}
static void beNull(T)(T actual, string reason = "", const string file = __FILE__, const size_t line = __LINE__)
{
auto s = actual.should.beNull(file, line);
if(reason != "") {
s.because(reason);
}
}
static void notNull(T)(T actual, string reason = "", const string file = __FILE__, const size_t line = __LINE__)
{
auto s = actual.should.not.beNull(file, line);
if(reason != "") {
s.because(reason);
}
}
}
/// Assert should work for base types
unittest {
Assert.equal(1, 1, "they are the same value");
Assert.notEqual(1, 2, "they are not the same value");
Assert.greaterThan(1, 0);
Assert.notGreaterThan(0, 1);
Assert.lessThan(0, 1);
Assert.notLessThan(1, 0);
Assert.above(1, 0);
Assert.notAbove(0, 1);
Assert.below(0, 1);
Assert.notBelow(1, 0);
Assert.between(1, 0, 2);
Assert.notBetween(3, 0, 2);
Assert.within(1, 0, 2);
Assert.notWithin(3, 0, 2);
Assert.approximately(1.5f, 1, 0.6f);
Assert.notApproximately(1.5f, 1, 0.2f);
}
/// Assert should work for objects
unittest {
Object o = null;
Assert.beNull(o, "it's a null");
Assert.notNull(new Object, "it's not a null");
}
/// Assert should work for strings
unittest {
Assert.equal("abcd", "abcd");
Assert.notEqual("abcd", "abwcd");
Assert.contain("abcd", "bc");
Assert.notContain("abcd", 'e');
Assert.startWith("abcd", "ab");
Assert.notStartWith("abcd", "bc");
Assert.startWith("abcd", 'a');
Assert.notStartWith("abcd", 'b');
Assert.endWith("abcd", "cd");
Assert.notEndWith("abcd", "bc");
Assert.endWith("abcd", 'd');
Assert.notEndWith("abcd", 'c');
}
/// Assert should work for ranges
unittest {
Assert.equal([1, 2, 3], [1, 2, 3]);
Assert.notEqual([1, 2, 3], [1, 1, 3]);
Assert.contain([1, 2, 3], 3);
Assert.notContain([1, 2, 3], [5, 6]);
Assert.containOnly([1, 2, 3], [3, 2, 1]);
Assert.notContainOnly([1, 2, 3], [3, 1]);
}
void fluentHandler(string file, size_t line, string msg) nothrow {
import core.exception;
auto message = new MessageResult("Assert failed. " ~ msg);
auto source = new SourceResult(file, line);
throw new AssertError(message.toString ~ "\n\n" ~ source.toString, file, line);
}
void setupFluentHandler() {
import core.exception;
core.exception.assertHandler = &fluentHandler;
}
/// It should call the fluent handler
@trusted unittest {
import core.exception;
setupFluentHandler;
scope(exit) core.exception.assertHandler = null;
bool thrown = false;
try {
assert(false, "What?");
} catch(Throwable t) {
thrown = true;
t.msg.should.startWith("Assert failed. What?\n");
}
thrown.should.equal(true);
}
| D |
/*
[The "BSD licence"]
Copyright (c) 2005-2008 Terence Parr
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. The name of the author may not be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
module antlr.runtime.EarlyExitException;
import antlr.runtime.RecognitionException;
import antlr.runtime.IntStream;
/** The recognizer did not match anything for a (..)+ loop. */
class EarlyExitException(char_t) : RecognitionException!(char_t) {
public int decisionNumber;
/** Used for remote debugger deserialization */
//this() {;}
this(int decisionNumber, IntStream input) {
super(input);
this.decisionNumber = decisionNumber;
}
}
| D |
instance Mod_1768_KDF_Magier_PAT (Npc_Default)
{
// ------ NSC ------
name = "Ordenspriester";
guild = GIL_VLK;
id = 1768;
voice = 13;
flags = 0;
npctype = NPCTYPE_MAIN;
//--------Aivars-------------
aivar[AIV_ToughGuy] = TRUE;
// ------ Attribute ------
B_SetAttributesToChapter (self, 5);
aivar[AIV_MagicUser] = MAGIC_ALWAYS;
// ------ Kampf-Taktik ------
fight_tactic = FAI_HUMAN_STRONG;
// ------ Equippte Waffen ------
EquipItem (self, ItMW_Addon_Stab01);
// ------ Inventory ------
B_CreateAmbientInv (self);
// ------ visuals ------
B_SetNpcVisual (self, MALE, "Hum_Head_Bald", Face_N_Whistler, BodyTex_N, ITAR_KDF_H);
Mdl_SetModelFatness (self, 1);
Mdl_ApplyOverlayMds (self, "Humans_Mage.mds");
// ------ NSC-relevante Talente vergeben ------
B_GiveNpcTalents (self);
// ------ Kampf-Talente ------
B_SetFightSkills (self, 75);
// ------ TA anmelden ------
daily_routine = Rtn_Start_1768;
};
FUNC VOID Rtn_Start_1768 ()
{
TA_Stand_WP (08,00,23,00,"WP_PAT_WEG_155");
TA_Stand_WP (23,00,08,00,"WP_PAT_WEG_155");
};
FUNC VOID Rtn_Flucht_1768 ()
{
TA_Stand_WP (08,00,23,00,"TOT");
TA_Stand_WP (23,00,08,00,"TOT");
};
FUNC VOID Rtn_Mine_1768 ()
{
TA_Stand_WP (08,00,23,00,"WP_PAT_UNTERGRUND_08");
TA_Stand_WP (23,00,08,00,"WP_PAT_UNTERGRUND_08");
}; | D |
/**
This is a submodule of $(MREF std, experimental, ndslice).
License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: Ilya Yaroshenko
Source: $(PHOBOSSRC std/_experimental/_ndslice/_slice.d)
Macros:
T2=$(TR $(TDNW $(LREF $1)) $(TD $+))
T4=$(TR $(TDNW $(LREF $1)) $(TD $2) $(TD $3) $(TD $4))
STD = $(TD $(SMALL $0))
*/
module mir.ndslice.slice;
import std.traits;
import std.meta;
import std.typecons; //: Flag, Yes, No;
import std.range.primitives; //: hasLength;
import mir.ndslice.internal;
/++
Creates an n-dimensional slice-shell over a `range`.
Params:
range = a random access range or an array; only index operator
`auto opIndex(size_t index)` is required for ranges. The length of the
range should be equal to the sum of shift and the product of
lengths. If `allowDownsize`, the length of the
range should be greater than or equal to the sum of shift and the product of
lengths.
lengths = list of lengths for each dimension
shift = index of the first element of a `range`.
The first `shift` elements of range are ignored.
Names = names of elements in a slice tuple.
Slice tuple is a slice, which holds single set of lengths and strides
for a number of ranges.
replaceArrayWithPointer = If `yes`, the array will be replaced with
its pointer to improve performance.
Use `no` for compile time function evaluation.
Returns:
n-dimensional slice
+/
auto sliced(
Flag!"replaceArrayWithPointer" replaceArrayWithPointer = Yes.replaceArrayWithPointer,
Flag!"allowDownsize" allowDownsize = No.allowDownsize,
Range, Lengths...)(Range range, Lengths lengths)
if (!isStaticArray!Range && !isNarrowString!Range
&& allSatisfy!(isIndex, Lengths) && Lengths.length)
{
return .sliced!(replaceArrayWithPointer, allowDownsize, Lengths.length, Range)(range, [lengths]);
}
///ditto
auto sliced(
Flag!"replaceArrayWithPointer" replaceArrayWithPointer = Yes.replaceArrayWithPointer,
Flag!"allowDownsize" allowDownsize = No.allowDownsize,
size_t N, Range)(Range range, auto ref in size_t[N] lengths, size_t shift = 0)
if (!isStaticArray!Range && !isNarrowString!Range && N)
in
{
foreach (len; lengths)
assert(len > 0,
"All lengths must be positive."
~ tailErrorMessage!());
static if (hasLength!Range)
{
static if (allowDownsize)
{
assert(lengthsProduct!N(lengths) + shift <= range.length,
"Range length must be greater than or equal to the sum of shift and the product of lengths."
~ tailErrorMessage!());
}
else
{
assert(lengthsProduct!N(lengths) + shift == range.length,
"Range length must be equal to the sum of shift and the product of lengths."
~ tailErrorMessage!());
}
}
}
body
{
static if (isDynamicArray!Range && replaceArrayWithPointer)
{
Slice!(N, typeof(range.ptr)) ret = void;
ret._ptr = range.ptr + shift;
}
else
{
alias S = Slice!(N, ImplicitlyUnqual!(typeof(range)));
static if (hasElaborateAssign!(S.PureRange))
S ret;
else
S ret = void;
static if (hasPtrBehavior!(S.PureRange))
{
static if (S.NSeq.length == 1)
ret._ptr = range;
else
ret._ptr = range._ptr;
ret._ptr += shift;
}
else
{
static if (S.NSeq.length == 1)
{
ret._ptr._range = range;
ret._ptr._shift = shift;
}
else
{
ret._ptr = range._ptr;
ret._ptr._shift += range._strides[0] * shift;
}
}
}
ret._lengths[N - 1] = lengths[N - 1];
static if (ret.NSeq.length == 1)
ret._strides[N - 1] = 1;
else
ret._strides[N - 1] = range._strides[0];
foreach_reverse (i; Iota!(0, N - 1))
{
ret._lengths[i] = lengths[i];
ret._strides[i] = ret._strides[i + 1] * ret._lengths[i + 1];
}
foreach (i; Iota!(N, ret.PureN))
{
ret._lengths[i] = range._lengths[i - N + 1];
ret._strides[i] = range._strides[i - N + 1];
}
return ret;
}
private enum bool _isSlice(T) = is(T : Slice!(N, Range), size_t N, Range);
///ditto
template sliced(Names...)
if (Names.length && !anySatisfy!(isType, Names) && allSatisfy!(isStringValue, Names))
{
mixin (
"
auto sliced(
Flag!`replaceArrayWithPointer` replaceArrayWithPointer = Yes.replaceArrayWithPointer,
Flag!`allowDownsize` allowDownsize = No.allowDownsize,
" ~ _Range_Types!Names ~ "
Lengths...)
(" ~ _Range_DeclarationList!Names ~
"Lengths lengths)
if (allSatisfy!(isIndex, Lengths))
{
alias sliced = .sliced!Names;
return sliced!(replaceArrayWithPointer, allowDownsize)(" ~ _Range_Values!Names ~ "[lengths]);
}
auto sliced(
Flag!`replaceArrayWithPointer` replaceArrayWithPointer = Yes.replaceArrayWithPointer,
Flag!`allowDownsize` allowDownsize = No.allowDownsize,
size_t N, " ~ _Range_Types!Names ~ ")
(" ~ _Range_DeclarationList!Names ~"
auto ref in size_t[N] lengths,
size_t shift = 0)
{
alias RS = AliasSeq!(" ~ _Range_Types!Names ~ ");"
~ q{
import std.meta : staticMap;
static assert(!anySatisfy!(_isSlice, RS),
`Packed slices are not allowed in slice tuples`
~ tailErrorMessage!());
alias PT = PtrTuple!Names;
alias SPT = PT!(staticMap!(PrepareRangeType, RS));
static if (hasElaborateAssign!SPT)
SPT range;
else
SPT range = void;
version(assert) immutable minLength = lengthsProduct!N(lengths) + shift;
foreach (i, name; Names)
{
alias T = typeof(range.ptrs[i]);
alias R = RS[i];
static assert(!isStaticArray!R);
static assert(!isNarrowString!R);
mixin (`alias r = range_` ~ name ~`;`);
static if (hasLength!R)
{
static if (allowDownsize)
{
assert(minLength <= r.length,
`length of range '` ~ name ~`' must be greater than or equal `
~ `to the sum of shift and the product of lengths.`
~ tailErrorMessage!());
}
else
{
assert(minLength == r.length,
`length of range '` ~ name ~`' must be equal `
~ `to the sum of shift and the product of lengths.`
~ tailErrorMessage!());
}
}
static if (isDynamicArray!T && replaceArrayWithPointer)
range.ptrs[i] = r.ptr;
else
range.ptrs[i] = T(0, r);
}
return .sliced!(replaceArrayWithPointer, allowDownsize, N, SPT)(range, lengths, shift);
}
~ "}");
}
/// ditto
auto sliced(
Flag!"replaceArrayWithPointer" replaceArrayWithPointer = Yes.replaceArrayWithPointer,
Flag!"allowDownsize" allowDownsize = No.allowDownsize,
Range)(Range range)
if (!isStaticArray!Range && !isNarrowString!Range && hasLength!Range)
{
return .sliced!(replaceArrayWithPointer, allowDownsize, 1, Range)(range, [range.length]);
}
/// Creates a slice from an array.
pure nothrow unittest
{
auto slice = slice!int(5, 6, 7);
assert(slice.length == 5);
assert(slice.elementsCount == 5 * 6 * 7);
static assert(is(typeof(slice) == Slice!(3, int*)));
}
/// Creates a slice using shift parameter.
@safe @nogc pure nothrow unittest
{
import std.range : iota;
auto slice = (5 * 6 * 7 + 9).iota.sliced([5, 6, 7], 9);
assert(slice.length == 5);
assert(slice.elementsCount == 5 * 6 * 7);
assert(slice[0, 0, 0] == 9);
}
/// Creates an 1-dimensional slice over a range.
@safe @nogc pure nothrow unittest
{
import std.range : iota;
auto slice = 10.iota.sliced;
assert(slice.length == 10);
}
/// $(LINK2 https://en.wikipedia.org/wiki/Vandermonde_matrix, Vandermonde matrix)
pure nothrow unittest
{
auto vandermondeMatrix(Slice!(1, double*) x)
{
auto ret = slice!double(x.length, x.length);
foreach (i; 0 .. x.length)
foreach (j; 0 .. x.length)
ret[i, j] = x[i] ^^ j;
return ret;
}
auto x = [1.0, 2, 3, 4, 5].sliced(5);
auto v = vandermondeMatrix(x);
assert(v ==
[[ 1.0, 1, 1, 1, 1],
[ 1.0, 2, 4, 8, 16],
[ 1.0, 3, 9, 27, 81],
[ 1.0, 4, 16, 64, 256],
[ 1.0, 5, 25, 125, 625]]);
}
/++
Creates a slice composed of named elements, each one of which corresponds
to a given argument. See also $(LREF assumeSameStructure).
+/
pure nothrow unittest
{
import std.algorithm.comparison : equal;
import mir.ndslice.selection : byElement;
import std.range : iota;
auto alpha = 12.iota;
auto beta = new int[12];
auto m = sliced!("a", "b")(alpha, beta, 4, 3);
foreach (r; m)
foreach (e; r)
e.b = e.a;
assert(equal(alpha, beta));
beta[] = 0;
foreach (e; m.byElement)
e.b = e.a;
assert(equal(alpha, beta));
}
/// Random access range primitives for slices over user defined types
pure nothrow @nogc unittest
{
struct MyIota
{
//`[index]` operator overloading
auto opIndex(size_t index)
{
return index;
}
}
alias S = Slice!(3, MyIota);
import std.range.primitives;
static assert(hasLength!S);
static assert(hasSlicing!S);
static assert(isRandomAccessRange!S);
auto slice = MyIota().sliced(20, 10);
assert(slice[1, 2] == 12);
auto sCopy = slice.save;
assert(slice[1, 2] == 12);
}
/// Slice tuple and flags
pure nothrow @nogc unittest
{
import std.typecons : Yes, No;
static immutable a = [1, 2, 3, 4, 5, 6];
static immutable b = [1.0, 2, 3, 4, 5, 6];
alias namedSliced = sliced!("a", "b");
auto slice = namedSliced!(No.replaceArrayWithPointer, Yes.allowDownsize)
(a, b, 2, 3);
assert(slice[1, 2].a == slice[1, 2].b);
}
// sliced slice
pure nothrow unittest
{
import mir.ndslice.selection : iotaSlice;
auto data = new int[24];
foreach (int i,ref e; data)
e = i;
auto a = data[0..10].sliced(10)[0..6].sliced(2, 3);
auto b = iotaSlice(10)[0..6].sliced(2, 3);
assert(a == b);
a[] += b;
foreach (int i, e; data[0..6])
assert(e == 2*i);
foreach (int i, e; data[6..$])
assert(e == i+6);
auto c = data.sliced(12, 2)[0..6].sliced(2, 3);
auto d = iotaSlice(12, 2)[0..6].sliced(2, 3);
auto cc = data[0..12].sliced(2, 3, 2);
auto dc = iotaSlice(2, 3, 2);
assert(c._lengths == cc._lengths);
assert(c._strides == cc._strides);
assert(d._lengths == dc._lengths);
assert(d._strides == dc._strides);
assert(cc == c);
assert(dc == d);
auto e = data.sliced(8, 3)[0..5].sliced(5);
auto f = iotaSlice(8, 3)[0..5].sliced(5);
assert(e == data[0..15].sliced(5, 3));
assert(f == iotaSlice(5, 3));
}
private template _Range_Types(Names...)
{
static if (Names.length)
enum string _Range_Types = "Range_" ~ Names[0] ~ ", " ~ _Range_Types!(Names[1..$]);
else
enum string _Range_Types = "";
}
private template _Range_Values(Names...)
{
static if (Names.length)
enum string _Range_Values = "range_" ~ Names[0] ~ ", " ~ _Range_Values!(Names[1..$]);
else
enum string _Range_Values = "";
}
private template _Range_DeclarationList(Names...)
{
static if (Names.length)
{
enum string _Range_DeclarationList = "Range_" ~ Names[0] ~ " range_"
~ Names[0] ~ ", " ~ _Range_DeclarationList!(Names[1..$]);
}
else
enum string _Range_DeclarationList = "";
}
private template _Slice_DeclarationList(Names...)
{
static if (Names.length)
{
enum string _Slice_DeclarationList = "Slice!(N, Range_" ~ Names[0] ~ ") slice_"
~ Names[0] ~ ", " ~ _Slice_DeclarationList!(Names[1..$]);
}
else
enum string _Slice_DeclarationList = "";
}
package A* fillFromSliceFun(A, B)(A* a, auto ref B b)
{
*a = b;
return a + 1;
}
/++
Groups slices into a slice tuple. The slices must have identical structure.
Slice tuple is a slice, which holds single set of lengths and strides
for a number of ranges.
Params:
Names = names of elements in a slice tuple
Returns:
n-dimensional slice
See_also: $(LREF .Slice.structure).
+/
template assumeSameStructure(Names...)
if (Names.length && !anySatisfy!(isType, Names) && allSatisfy!(isStringValue, Names))
{
mixin (
"
auto assumeSameStructure(
size_t N, " ~ _Range_Types!Names ~ ")
(" ~ _Slice_DeclarationList!Names ~ ")
{
alias RS = AliasSeq!(" ~_Range_Types!Names ~ ");"
~ q{
import std.meta : staticMap;
static assert(!anySatisfy!(_isSlice, RS),
`Packed slices not allowed in slice tuples`
~ tailErrorMessage!());
alias PT = PtrTuple!Names;
alias SPT = PT!(staticMap!(PrepareRangeType, RS));
static if (hasElaborateAssign!SPT)
Slice!(N, SPT) ret;
else
Slice!(N, SPT) ret = void;
mixin (`alias slice0 = slice_` ~ Names[0] ~`;`);
ret._lengths = slice0._lengths;
ret._strides = slice0._strides;
ret._ptr.ptrs[0] = slice0._ptr;
foreach (i, name; Names[1..$])
{
mixin (`alias slice = slice_` ~ name ~`;`);
assert(ret._lengths == slice._lengths,
`Shapes must be identical`
~ tailErrorMessage!());
assert(ret._strides == slice._strides,
`Strides must be identical`
~ tailErrorMessage!());
ret._ptr.ptrs[i+1] = slice._ptr;
}
return ret;
}
~ "}");
}
///
pure nothrow unittest
{
import std.algorithm.comparison : equal;
import mir.ndslice.selection : byElement, iotaSlice;
auto alpha = iotaSlice(4, 3);
auto beta = slice!int(4, 3);
auto m = assumeSameStructure!("a", "b")(alpha, beta);
foreach (r; m)
foreach (e; r)
e.b = cast(int)e.a;
assert(alpha == beta);
beta[] = 0;
foreach (e; m.byElement)
e.b = cast(int)e.a;
assert(alpha == beta);
}
///
@safe @nogc pure nothrow unittest
{
import std.algorithm.iteration : map, sum, reduce;
import std.algorithm.comparison : max;
import mir.ndslice.iteration : transposed;
/// Returns maximal column average.
auto maxAvg(S)(S matrix) {
return matrix.transposed.map!sum.reduce!max
/ matrix.length;
}
enum matrix = [1, 2,
3, 4].sliced!(No.replaceArrayWithPointer)(2, 2);
///Сompile time function evaluation
static assert(maxAvg(matrix) == 3);
}
///
@safe @nogc pure nothrow unittest
{
import std.algorithm.iteration : map, sum, reduce;
import std.algorithm.comparison : max;
import mir.ndslice.iteration : transposed;
/// Returns maximal column average.
auto maxAvg(S)(S matrix) {
return matrix.transposed.map!sum.reduce!max
/ matrix.length;
}
enum matrix = [1, 2,
3, 4].sliced!(No.replaceArrayWithPointer)(2, 2);
///Сompile time function evaluation
static assert(maxAvg(matrix) == 3);
}
/++
Creates an array and an n-dimensional slice over it.
Params:
lengths = list of lengths for each dimension
slice = slice to copy shape and data from
Returns:
n-dimensional slice
+/
Slice!(Lengths.length, Select!(replaceArrayWithPointer, T*, T[]))
slice(T,
Flag!`replaceArrayWithPointer` replaceArrayWithPointer = Yes.replaceArrayWithPointer,
Lengths...)(Lengths lengths)
if (allSatisfy!(isIndex, Lengths) && Lengths.length)
{
return .slice!(T, replaceArrayWithPointer)([lengths]);
}
/// ditto
Slice!(N, Select!(replaceArrayWithPointer, T*, T[]))
slice(T,
Flag!`replaceArrayWithPointer` replaceArrayWithPointer = Yes.replaceArrayWithPointer,
size_t N)(auto ref in size_t[N] lengths)
{
immutable len = lengthsProduct(lengths);
return new T[len].sliced!replaceArrayWithPointer(lengths);
}
/// ditto
auto slice(T,
Flag!`replaceArrayWithPointer` replaceArrayWithPointer = Yes.replaceArrayWithPointer,
size_t N)(auto ref in size_t[N] lengths, auto ref T init)
{
immutable len = lengthsProduct(lengths);
static if (replaceArrayWithPointer && !hasElaborateAssign!T)
{
import std.array : uninitializedArray;
auto arr = uninitializedArray!(Unqual!T[])(len);
}
else
{
auto arr = new Unqual!T[len];
}
arr[] = init;
auto ret = .sliced!replaceArrayWithPointer(cast(T[])arr, lengths);
return ret;
}
/// ditto
auto slice(
Flag!`replaceArrayWithPointer` replaceArrayWithPointer = Yes.replaceArrayWithPointer,
size_t N, Range)(auto ref Slice!(N, Range) slice)
{
static if (replaceArrayWithPointer && !hasElaborateAssign!(slice.DeepElemType))
{
import std.array : uninitializedArray;
import mir.ndslice.algorithm : ndFold;
auto arr = uninitializedArray!(Unqual!(slice.DeepElemType)[])(slice.elementsCount);
slice.ndFold!fillFromSliceFun(arr.ptr);
auto ret = arr.sliced(slice.shape);
}
else
{
auto ret = .slice!(Unqual!(slice.DeepElemType), replaceArrayWithPointer)(slice.shape);
ret[] = slice;
}
return ret;
}
///
pure nothrow unittest
{
auto tensor = slice!int(5, 6, 7);
assert(tensor.length == 5);
assert(tensor.elementsCount == 5 * 6 * 7);
static assert(is(typeof(tensor) == Slice!(3, int*)));
// creates duplicate using `slice`
auto dup = tensor.slice;
assert(dup == tensor);
}
///
pure nothrow unittest
{
auto tensor = slice([2, 3], 5);
assert(tensor.elementsCount == 2 * 3);
assert(tensor[1, 1] == 5);
}
pure nothrow unittest
{
import mir.ndslice.selection : iotaSlice;
auto tensor = iotaSlice(2, 3).slice;
assert(tensor == [[0, 1, 2], [3, 4, 5]]);
}
/++
Allocates an array through a specified allocator and creates an n-dimensional slice over it.
See also $(MREF std, experimental, allocator).
Params:
alloc = allocator
lengths = list of lengths for each dimension
init = default value for array initialization
slice = slice to copy shape and data from
Returns:
a structure with fields `array` and `slice`
Note:
`makeSlice` always returns slice with mutable elements
+/
auto makeSlice(T,
Flag!`replaceArrayWithPointer` replaceArrayWithPointer = Yes.replaceArrayWithPointer,
Allocator,
Lengths...)(auto ref Allocator alloc, Lengths lengths)
if (allSatisfy!(isIndex, Lengths) && Lengths.length)
{
return .makeSlice!(T, replaceArrayWithPointer, Allocator)(alloc, [lengths]);
}
/// ditto
auto makeSlice(
Flag!`replaceArrayWithPointer` replaceArrayWithPointer = Yes.replaceArrayWithPointer,
Allocator,
size_t N, Range)(auto ref Allocator alloc, auto ref Slice!(N, Range) slice)
{
alias T = Unqual!(slice.DeepElemType);
return makeSlice!(T, replaceArrayWithPointer)(alloc, slice);
}
/// ditto
auto makeSlice(T,
Flag!`replaceArrayWithPointer` replaceArrayWithPointer = Yes.replaceArrayWithPointer,
Allocator,
size_t N)(auto ref Allocator alloc, auto ref in size_t[N] lengths)
{
import std.experimental.allocator : makeArray;
static struct Result { T[] array; Slice!(N, Select!(replaceArrayWithPointer, T*, T[])) slice; }
immutable len = lengthsProduct(lengths);
auto array = alloc.makeArray!T(len);
auto slice = array.sliced!replaceArrayWithPointer(lengths);
return Result(array, slice);
}
/// ditto
auto makeSlice(T,
Flag!`replaceArrayWithPointer` replaceArrayWithPointer = Yes.replaceArrayWithPointer,
Allocator,
size_t N)(auto ref Allocator alloc, auto ref in size_t[N] lengths, auto ref T init)
{
import std.experimental.allocator : makeArray;
static struct Result { T[] array; Slice!(N, Select!(replaceArrayWithPointer, T*, T[])) slice; }
immutable len = lengthsProduct(lengths);
auto array = alloc.makeArray!T(len, init);
auto slice = array.sliced!replaceArrayWithPointer(lengths);
return Result(array, slice);
}
/// ditto
auto makeSlice(T,
Flag!`replaceArrayWithPointer` replaceArrayWithPointer = Yes.replaceArrayWithPointer,
Allocator,
size_t N, Range)(auto ref Allocator alloc, auto ref Slice!(N, Range) slice)
{
import mir.ndslice.selection : byElement;
alias U = Unqual!T;
static struct Result { T[] array; Slice!(N, Select!(replaceArrayWithPointer, T*, T[])) slice; }
static if (replaceArrayWithPointer && !hasElaborateAssign!(slice.DeepElemType))
{
import mir.ndslice.algorithm : ndFold;
auto array = cast(Unqual!T[]) alloc.allocate(slice.elementsCount * T.sizeof);
slice.ndFold!fillFromSliceFun(array.ptr);
auto _slice = array.sliced(slice.shape);
}
else
{
import std.experimental.allocator : makeArray;
auto array = alloc.makeArray!U(slice.byElement);
auto _slice = array.sliced!replaceArrayWithPointer(slice.shape);
}
return Result(cast(T[]) array, cast(typeof(Result.init.slice))_slice);
}
///
@nogc unittest
{
import std.experimental.allocator;
import std.experimental.allocator.mallocator;
auto tup = makeSlice!int(Mallocator.instance, 2, 3, 4);
static assert(is(typeof(tup.array) == int[]));
static assert(is(typeof(tup.slice) == Slice!(3, int*)));
assert(tup.array.length == 24);
assert(tup.slice.elementsCount == 24);
assert(tup.array.ptr == &tup.slice[0, 0, 0]);
// makes duplicate using `makeSlice`
tup.slice[0, 0, 0] = 3;
auto dup = makeSlice(Mallocator.instance, tup.slice);
assert(dup.slice == tup.slice);
Mallocator.instance.dispose(tup.array);
Mallocator.instance.dispose(dup.array);
}
/// Initialization with default value
@nogc unittest
{
import std.experimental.allocator;
import std.experimental.allocator.mallocator;
auto tup = makeSlice(Mallocator.instance, [2, 3, 4], 10);
auto slice = tup.slice;
assert(slice[1, 1, 1] == 10);
Mallocator.instance.dispose(tup.array);
}
@nogc unittest
{
import std.experimental.allocator;
import std.experimental.allocator.mallocator;
// cast to your own type
auto tup = makeSlice!double(Mallocator.instance, [2, 3, 4], 10);
auto slice = tup.slice;
assert(slice[1, 1, 1] == 10.0);
Mallocator.instance.dispose(tup.array);
}
/++
Creates a common n-dimensional array from a slice.
Params:
slice = slice
Returns:
multidimensional D array
+/
auto ndarray(size_t N, Range)(auto ref Slice!(N, Range) slice)
{
import std.array : array;
static if (N == 1)
{
return array(slice);
}
else
{
import std.algorithm.iteration : map;
return array(slice.map!(a => .ndarray(a)));
}
}
///
pure nothrow unittest
{
import mir.ndslice.selection : iotaSlice;
auto slice = iotaSlice(3, 4);
auto m = slice.ndarray;
static assert(is(typeof(m) == size_t[][]));
assert(m == [[0, 1, 2, 3], [4, 5, 6, 7], [8, 9, 10, 11]]);
}
/++
Allocates a common n-dimensional array using data from a slice.
Params:
alloc = allocator (optional)
slice = slice
Returns:
multidimensional D array
+/
auto makeNdarray(T, Allocator, size_t N, Range)(auto ref Allocator alloc, Slice!(N, Range) slice)
{
import std.experimental.allocator : makeArray;
static if (N == 1)
{
return makeArray!T(alloc, slice);
}
else
{
alias E = typeof(makeNdarray!T(alloc, slice[0]));
auto ret = makeArray!E(alloc, slice.length);
foreach (i, ref e; ret)
e = .makeNdarray!T(alloc, slice[i]);
return ret;
}
}
///
@nogc unittest
{
import std.experimental.allocator;
import std.experimental.allocator.mallocator;
import mir.ndslice.selection : iotaSlice;
auto slice = iotaSlice(3, 4);
auto m = Mallocator.instance.makeNdarray!long(slice);
static assert(is(typeof(m) == long[][]));
static immutable ar = [[0L, 1, 2, 3], [4L, 5, 6, 7], [8L, 9, 10, 11]];
assert(m == ar);
foreach (ref row; m)
Mallocator.instance.dispose(row);
Mallocator.instance.dispose(m);
}
/++
Shape of a common n-dimensional array.
Params:
array = common n-dimensional array
Returns:
static array of dimensions type of `size_t[n]`
Throws:
$(LREF SliceException) if the array is not an n-dimensional parallelotope.
+/
auto shape(T)(T[] array) @property
{
static if (isDynamicArray!T)
{
size_t[1 + typeof(shape(T.init)).length] ret;
if (array.length)
{
ret[0] = array.length;
ret[1..$] = shape(array[0]);
foreach (ar; array)
if (shape(ar) != ret[1..$])
throw new SliceException("ndarray should be an n-dimensional parallelotope.");
}
return ret;
}
else
{
size_t[1] ret = void;
ret[0] = array.length;
return ret;
}
}
///
@safe pure unittest
{
size_t[2] shape = [[1, 2, 3], [4, 5, 6]].shape;
assert(shape == [2, 3]);
import std.exception : assertThrown;
assertThrown([[1, 2], [4, 5, 6]].shape);
}
/// Slice from ndarray
unittest
{
auto array = [[1, 2, 3], [4, 5, 6]];
auto slice = array.shape.slice!int;
slice[] = [[1, 2, 3], [4, 5, 6]];
assert(slice == array);
}
@safe pure unittest
{
size_t[2] shape = (int[][]).init.shape;
assert(shape[0] == 0);
assert(shape[1] == 0);
}
/++
Base Exception class for $(MREF std, experimental, ndslice).
+/
class SliceException: Exception
{
///
this(
string msg,
string file = __FILE__,
uint line = cast(uint)__LINE__,
Throwable next = null
) pure nothrow @nogc @safe
{
super(msg, file, line, next);
}
}
/++
Returns the element type of the `Slice` type.
+/
alias DeepElementType(S : Slice!(N, Range), size_t N, Range) = S.DeepElemType;
///
unittest
{
import std.range : iota;
static assert(is(DeepElementType!(Slice!(4, const(int)[])) == const(int)));
static assert(is(DeepElementType!(Slice!(4, immutable(int)*)) == immutable(int)));
static assert(is(DeepElementType!(Slice!(4, typeof(100.iota))) == int));
//packed slice
static assert(is(DeepElementType!(Slice!(2, Slice!(5, int*))) == Slice!(4, int*)));
}
/++
Presents $(LREF .Slice.structure).
+/
struct Structure(size_t N)
{
///
size_t[N] lengths;
///
sizediff_t[N] strides;
}
/++
Presents an n-dimensional view over a range.
$(H3 Definitions)
In order to change data in a slice using
overloaded operators such as `=`, `+=`, `++`,
a syntactic structure of type
`<slice to change>[<index and interval sequence...>]` must be used.
It is worth noting that just like for regular arrays, operations `a = b`
and `a[] = b` have different meanings.
In the first case, after the operation is carried out, `a` simply points at the same data as `b`
does, and the data which `a` previously pointed at remains unmodified.
Here, `а` and `b` must be of the same type.
In the second case, `a` points at the same data as before,
but the data itself will be changed. In this instance, the number of dimensions of `b`
may be less than the number of dimensions of `а`; and `b` can be a Slice,
a regular multidimensional array, or simply a value (e.g. a number).
In the following table you will find the definitions you might come across
in comments on operator overloading.
$(BOOKTABLE
$(TR $(TH Definition) $(TH Examples at `N == 3`))
$(TR $(TD An $(B interval) is a part of a sequence of type `i .. j`.)
$(STD `2..$-3`, `0..4`))
$(TR $(TD An $(B index) is a part of a sequence of type `i`.)
$(STD `3`, `$-1`))
$(TR $(TD A $(B partially defined slice) is a sequence composed of
$(B intervals) and $(B indexes) with an overall length strictly less than `N`.)
$(STD `[3]`, `[0..$]`, `[3, 3]`, `[0..$,0..3]`, `[0..$,2]`))
$(TR $(TD A $(B fully defined index) is a sequence
composed only of $(B indexes) with an overall length equal to `N`.)
$(STD `[2,3,1]`))
$(TR $(TD A $(B fully defined slice) is an empty sequence
or a sequence composed of $(B indexes) and at least one
$(B interval) with an overall length equal to `N`.)
$(STD `[]`, `[3..$,0..3,0..$-1]`, `[2,0..$,1]`))
)
$(H3 Internal Binary Representation)
Multidimensional Slice is a structure that consists of lengths, strides, and a pointer.
For ranges, a shell is used instead of a pointer.
This shell contains a shift of the current initial element of a multidimensional slice
and the range itself. With the exception of overloaded operators, no functions in this
package change or copy data. The operations are only carried out on lengths, strides,
and pointers. If a slice is defined over a range, only the shift of the initial element
changes instead of the pointer.
$(H4 Internal Representation for Pointers)
Type definition
-------
Slice!(N, T*)
-------
Schema
-------
Slice!(N, T*)
size_t[N] lengths
sizediff_t[N] strides
T* ptr
-------
Example:
Definitions
-------
import mir.ndslice;
auto a = new double[24];
Slice!(3, double*) s = a.sliced(2, 3, 4);
Slice!(3, double*) t = s.transposed!(1, 2, 0);
Slice!(3, double*) r = t.reversed!1;
-------
Representation
-------
s________________________
lengths[0] ::= 2
lengths[1] ::= 3
lengths[2] ::= 4
strides[0] ::= 12
strides[1] ::= 4
strides[2] ::= 1
ptr ::= &a[0]
t____transposed!(1, 2, 0)
lengths[0] ::= 3
lengths[1] ::= 4
lengths[2] ::= 2
strides[0] ::= 4
strides[1] ::= 1
strides[2] ::= 12
ptr ::= &a[0]
r______________reversed!1
lengths[0] ::= 2
lengths[1] ::= 3
lengths[2] ::= 4
strides[0] ::= 12
strides[1] ::= -4
strides[2] ::= 1
ptr ::= &a[8] // (old_strides[1] * (lengths[1] - 1)) = 8
-------
$(H4 Internal Representation for Ranges)
Type definition
-------
Slice!(N, Range)
-------
Representation
-------
Slice!(N, Range)
size_t[N] lengths
sizediff_t[N] strides
PtrShell!T ptr
sizediff_t shift
Range range
-------
Example:
Definitions
-------
import mir.ndslice;
import std.range : iota;
auto a = iota(24);
alias A = typeof(a);
Slice!(3, A) s = a.sliced(2, 3, 4);
Slice!(3, A) t = s.transposed!(1, 2, 0);
Slice!(3, A) r = t.reversed!1;
-------
Representation
-------
s________________________
lengths[0] ::= 2
lengths[1] ::= 3
lengths[2] ::= 4
strides[0] ::= 12
strides[1] ::= 4
strides[2] ::= 1
shift ::= 0
range ::= a
t____transposed!(1, 2, 0)
lengths[0] ::= 3
lengths[1] ::= 4
lengths[2] ::= 2
strides[0] ::= 4
strides[1] ::= 1
strides[2] ::= 12
shift ::= 0
range ::= a
r______________reversed!1
lengths[0] ::= 2
lengths[1] ::= 3
lengths[2] ::= 4
strides[0] ::= 12
strides[1] ::= -4
strides[2] ::= 1
shift ::= 8 // (old_strides[1] * (lengths[1] - 1)) = 8
range ::= a
-------
+/
struct Slice(size_t _N, _Range)
if (_N && _N < 256LU && ((!is(Unqual!_Range : Slice!(N0, Range0), size_t N0, Range0)
&& (isPointer!_Range || is(typeof(_Range.init[size_t.init]))))
|| is(_Range == Slice!(N1, Range1), size_t N1, Range1)))
{
package:
enum doUnittest = is(_Range == int*) && _N == 1;
alias N = _N;
alias Range = _Range;
alias This = Slice!(N, Range);
static if (is(Range == Slice!(N_, Range_), size_t N_, Range_))
{
enum size_t PureN = N + Range.PureN - 1;
alias PureRange = Range.PureRange;
alias NSeq = AliasSeq!(N, Range.NSeq);
}
else
{
alias PureN = N;
alias PureRange = Range;
alias NSeq = AliasSeq!(N);
}
alias PureThis = Slice!(PureN, PureRange);
static assert(PureN < 256, "Slice: Pure N should be less than 256");
static if (N == 1)
alias ElemType = typeof(Range.init[size_t.init]);
else
alias ElemType = Slice!(N-1, Range);
static if (NSeq.length == 1)
alias DeepElemType = typeof(Range.init[size_t.init]);
else
static if (Range.N == 1)
alias DeepElemType = Range.ElemType;
else
alias DeepElemType = Slice!(Range.N - 1, Range.Range);
enum hasAccessByRef = isPointer!PureRange ||
__traits(compiles, &_ptr[0]);
enum PureIndexLength(Slices...) = Filter!(isIndex, Slices).length;
enum isPureSlice(Slices...) =
Slices.length <= N
&& PureIndexLength!Slices < N
&& allSatisfy!(templateOr!(isIndex, is_Slice), Slices);
enum isFullPureSlice(Slices...) =
Slices.length == 0
|| Slices.length == N
&& PureIndexLength!Slices < N
&& allSatisfy!(templateOr!(isIndex, is_Slice), Slices);
size_t[PureN] _lengths;
sizediff_t[PureN] _strides;
SlicePtr!PureRange _ptr;
sizediff_t backIndex(size_t dimension = 0)() @property const
if (dimension < N)
{
return _strides[dimension] * (_lengths[dimension] - 1);
}
size_t indexStride(Indexes...)(Indexes _indexes) const
if (allSatisfy!(isIndex, Indexes))
{
mixin(indexStrideCode);
}
size_t indexStride(size_t[N] _indexes) const
{
mixin(indexStrideCode);
}
size_t mathIndexStride(Indexes...)(Indexes _indexes) const
{
mixin(mathIndexStrideCode);
}
size_t mathIndexStride(size_t[N] _indexes) const
{
mixin(mathIndexStrideCode);
}
static if (!hasPtrBehavior!PureRange)
this(in size_t[PureN] lengths, in sizediff_t[PureN] strides, PtrShell!PureRange shell)
{
foreach (i; Iota!(0, PureN))
_lengths[i] = lengths[i];
foreach (i; Iota!(0, PureN))
_strides[i] = strides[i];
_ptr = shell;
}
public:
/++
This constructor should be used only for integration with other languages or libraries such as Julia and numpy.
Params:
lengths = lengths
strides = strides
range = range or pointer to iterate on
+/
this(in size_t[PureN] lengths, in sizediff_t[PureN] strides, PureRange range)
{
foreach (i; Iota!(0, PureN))
_lengths[i] = lengths[i];
foreach (i; Iota!(0, PureN))
_strides[i] = strides[i];
static if (hasPtrBehavior!PureRange)
_ptr = range;
else
_ptr._range = range;
}
/// Creates a 2-dimentional slice with custom strides.
@nogc nothrow pure
unittest
{
import mir.ndslice.selection : byElement;
import std.algorithm.comparison : equal;
import std.range : only;
uint[8] array = [1, 2, 3, 4, 5, 6, 7, 8];
auto slice = Slice!(2, uint*)([2, 2], [4, 1], array.ptr);
assert(&slice[0, 0] == &array[0]);
assert(&slice[0, 1] == &array[1]);
assert(&slice[1, 0] == &array[4]);
assert(&slice[1, 1] == &array[5]);
assert(slice.byElement.equal(only(1, 2, 5, 6)));
array[2] = 42;
assert(slice.byElement.equal(only(1, 2, 5, 6)));
array[1] = 99;
assert(slice.byElement.equal(only(1, 99, 5, 6)));
}
/++
Returns:
Pointer to the first element of a slice if slice is defined as `Slice!(N, T*)`
or plain structure with two fields `shift` and `range` otherwise.
In second case the expression `range[shift]` refers to the first element.
For slices with named elements the type of a return value
has the same behavior like a pointer.
Note:
`ptr` is defined only for non-packed slices.
Attention:
`ptr` refers to the first element in the memory representation
if and only if all strides are positive.
+/
static if (is(PureRange == Range))
auto ptr() @property
{
static if (hasPtrBehavior!PureRange)
{
return _ptr;
}
else
{
static struct Ptr { size_t shift; Range range; }
return Ptr(_ptr._shift, _ptr._range);
}
}
/++
Returns: static array of lengths
See_also: $(LREF .Slice.structure)
+/
size_t[N] shape() @property const
{
pragma(inline, true);
return _lengths[0 .. N];
}
static if (doUnittest)
/// Regular slice
@safe @nogc pure nothrow unittest
{
import mir.ndslice.selection : iotaSlice;
assert(iotaSlice(3, 4, 5)
.shape == cast(size_t[3])[3, 4, 5]);
}
static if (doUnittest)
/// Packed slice
@safe @nogc pure nothrow unittest
{
import mir.ndslice.selection : pack, iotaSlice;
assert(iotaSlice(3, 4, 5, 6, 7)
.pack!2
.shape == cast(size_t[3])[3, 4, 5]);
}
/++
Returns: static array of lengths and static array of strides
See_also: $(LREF .Slice.shape)
+/
Structure!N structure() @property const
{
pragma(inline, true);
return typeof(return)(_lengths[0 .. N], _strides[0 .. N]);
}
static if (doUnittest)
/// Regular slice
@safe @nogc pure nothrow unittest
{
import mir.ndslice.selection : iotaSlice;
assert(iotaSlice(3, 4, 5)
.structure == Structure!3([3, 4, 5], [20, 5, 1]));
}
static if (doUnittest)
/// Modified regular slice
@safe @nogc pure nothrow unittest
{
import mir.ndslice.selection : pack, iotaSlice;
import mir.ndslice.iteration : reversed, strided, transposed;
assert(iotaSlice(3, 4, 50)
.reversed!2 //makes stride negative
.strided!2(6) //multiplies stride by 6 and changes corresponding length
.transposed!2 //brings dimension `2` to the first position
.structure == Structure!3([9, 3, 4], [-6, 200, 50]));
}
static if (doUnittest)
/// Packed slice
@safe @nogc pure nothrow unittest
{
import mir.ndslice.selection : pack, iotaSlice;
assert(iotaSlice(3, 4, 5, 6, 7)
.pack!2
.structure == Structure!3([3, 4, 5], [20 * 42, 5 * 42, 1 * 42]));
}
/++
Forward range primitive.
+/
auto save() @property
{
return this;
}
static if (doUnittest)
/// Forward range
@safe @nogc pure nothrow unittest
{
import mir.ndslice.selection : iotaSlice;
auto slice = iotaSlice(2, 3).save;
}
static if (doUnittest)
/// Pointer type.
pure nothrow unittest
{
//slice type is `Slice!(2, int*)`
auto slice = slice!int(2, 3).save;
}
/++
Multidimensional `length` property.
Returns: length of the corresponding dimension
See_also: $(LREF .Slice.shape), $(LREF .Slice.structure)
+/
size_t length(size_t dimension = 0)() @property const
if (dimension < N)
{
pragma(inline, true);
return _lengths[dimension];
}
static if (doUnittest)
///
@safe @nogc pure nothrow unittest
{
import mir.ndslice.selection : iotaSlice;
auto slice = iotaSlice(3, 4, 5);
assert(slice.length == 3);
assert(slice.length!0 == 3);
assert(slice.length!1 == 4);
assert(slice.length!2 == 5);
}
alias opDollar = length;
/++
Multidimensional `stride` property.
Returns: stride of the corresponding dimension
See_also: $(LREF .Slice.structure)
+/
sizediff_t stride(size_t dimension = 0)() @property const
if (dimension < N)
{
return _strides[dimension];
}
static if (doUnittest)
/// Regular slice
@safe @nogc pure nothrow unittest
{
import mir.ndslice.selection : iotaSlice;
auto slice = iotaSlice(3, 4, 5);
assert(slice.stride == 20);
assert(slice.stride!0 == 20);
assert(slice.stride!1 == 5);
assert(slice.stride!2 == 1);
}
static if (doUnittest)
/// Modified regular slice
@safe @nogc pure nothrow unittest
{
import mir.ndslice.iteration : reversed, strided, swapped;
import mir.ndslice.selection : iotaSlice;
assert(iotaSlice(3, 4, 50)
.reversed!2 //makes stride negative
.strided!2(6) //multiplies stride by 6 and changes the corresponding length
.swapped!(1, 2) //swaps dimensions `1` and `2`
.stride!1 == -6);
}
/++
Multidimensional input range primitive.
+/
bool empty(size_t dimension = 0)()
@property const
if (dimension < N)
{
pragma(inline, true);
return _lengths[dimension] == 0;
}
///ditto
auto ref front(size_t dimension = 0)() @property
if (dimension < N)
{
assert(!empty!dimension);
static if (PureN == 1)
{
return _ptr[0];
}
else
{
static if (hasElaborateAssign!PureRange)
ElemType ret;
else
ElemType ret = void;
foreach (i; Iota!(0, dimension))
{
ret._lengths[i] = _lengths[i];
ret._strides[i] = _strides[i];
}
foreach (i; Iota!(dimension, PureN-1))
{
ret._lengths[i] = _lengths[i + 1];
ret._strides[i] = _strides[i + 1];
}
ret._ptr = _ptr;
return ret;
}
}
static if (PureN == 1 && isMutable!DeepElemType && !hasAccessByRef)
{
///ditto
auto front(size_t dimension = 0, T)(T value) @property
if (dimension == 0)
{
assert(!empty!dimension);
return _ptr[0] = value;
}
}
///ditto
auto ref back(size_t dimension = 0)() @property
if (dimension < N)
{
assert(!empty!dimension);
static if (PureN == 1)
{
return _ptr[backIndex];
}
else
{
static if (hasElaborateAssign!PureRange)
ElemType ret;
else
ElemType ret = void;
foreach (i; Iota!(0, dimension))
{
ret._lengths[i] = _lengths[i];
ret._strides[i] = _strides[i];
}
foreach (i; Iota!(dimension, PureN-1))
{
ret._lengths[i] = _lengths[i + 1];
ret._strides[i] = _strides[i + 1];
}
ret._ptr = _ptr + backIndex!dimension;
return ret;
}
}
static if (PureN == 1 && isMutable!DeepElemType && !hasAccessByRef)
{
///ditto
auto back(size_t dimension = 0, T)(T value) @property
if (dimension == 0)
{
assert(!empty!dimension);
return _ptr[backIndex] = value;
}
}
///ditto
void popFront(size_t dimension = 0)()
if (dimension < N)
{
pragma(inline, true);
assert(_lengths[dimension], __FUNCTION__ ~ ": length!" ~ dimension.stringof ~ " should be greater than 0.");
_lengths[dimension]--;
_ptr += _strides[dimension];
}
///ditto
void popBack(size_t dimension = 0)()
if (dimension < N)
{
pragma(inline, true);
assert(_lengths[dimension], __FUNCTION__ ~ ": length!" ~ dimension.stringof ~ " should be greater than 0.");
_lengths[dimension]--;
}
///ditto
void popFrontExactly(size_t dimension = 0)(size_t n)
if (dimension < N)
{
pragma(inline, true);
assert(n <= _lengths[dimension],
__FUNCTION__ ~ ": n should be less than or equal to length!" ~ dimension.stringof);
_lengths[dimension] -= n;
_ptr += _strides[dimension] * n;
}
///ditto
void popBackExactly(size_t dimension = 0)(size_t n)
if (dimension < N)
{
pragma(inline, true);
assert(n <= _lengths[dimension],
__FUNCTION__ ~ ": n should be less than or equal to length!" ~ dimension.stringof);
_lengths[dimension] -= n;
}
///ditto
void popFrontN(size_t dimension = 0)(size_t n)
if (dimension < N)
{
pragma(inline, true);
import std.algorithm.comparison : min;
popFrontExactly!dimension(min(n, _lengths[dimension]));
}
///ditto
void popBackN(size_t dimension = 0)(size_t n)
if (dimension < N)
{
pragma(inline, true);
import std.algorithm.comparison : min;
popBackExactly!dimension(min(n, _lengths[dimension]));
}
static if (doUnittest)
///
@safe @nogc pure nothrow unittest
{
import std.range.primitives;
import mir.ndslice.selection : iotaSlice;
auto slice = iotaSlice(10, 20, 30);
static assert(isRandomAccessRange!(typeof(slice)));
static assert(hasSlicing!(typeof(slice)));
static assert(hasLength!(typeof(slice)));
assert(slice.shape == cast(size_t[3])[10, 20, 30]);
slice.popFront;
slice.popFront!1;
slice.popBackExactly!2(4);
assert(slice.shape == cast(size_t[3])[9, 19, 26]);
auto matrix = slice.front!1;
assert(matrix.shape == cast(size_t[2])[9, 26]);
auto column = matrix.back!1;
assert(column.shape == cast(size_t[1])[9]);
slice.popFrontExactly!1(slice.length!1);
assert(slice.empty == false);
assert(slice.empty!1 == true);
assert(slice.empty!2 == false);
assert(slice.shape == cast(size_t[3])[9, 0, 26]);
assert(slice.back.front!1.empty);
slice.popFrontN!0(40);
slice.popFrontN!2(40);
assert(slice.shape == cast(size_t[3])[0, 0, 0]);
}
package void popFront(size_t dimension)
{
assert(dimension < N, __FUNCTION__ ~ ": dimension should be less than N = " ~ N.stringof);
assert(_lengths[dimension], ": length!dim should be greater than 0.");
_lengths[dimension]--;
_ptr += _strides[dimension];
}
package void popBack(size_t dimension)
{
assert(dimension < N, __FUNCTION__ ~ ": dimension should be less than N = " ~ N.stringof);
assert(_lengths[dimension], ": length!dim should be greater than 0.");
_lengths[dimension]--;
}
package void popFrontExactly(size_t dimension, size_t n)
{
assert(dimension < N, __FUNCTION__ ~ ": dimension should be less than N = " ~ N.stringof);
assert(n <= _lengths[dimension], __FUNCTION__ ~ ": n should be less than or equal to length!dim");
_lengths[dimension] -= n;
_ptr += _strides[dimension] * n;
}
package void popBackExactly(size_t dimension, size_t n)
{
assert(dimension < N, __FUNCTION__ ~ ": dimension should be less than N = " ~ N.stringof);
assert(n <= _lengths[dimension], __FUNCTION__ ~ ": n should be less than or equal to length!dim");
_lengths[dimension] -= n;
}
package void popFrontN(size_t dimension, size_t n)
{
assert(dimension < N, __FUNCTION__ ~ ": dimension should be less than N = " ~ N.stringof);
import std.algorithm.comparison : min;
popFrontExactly(dimension, min(n, _lengths[dimension]));
}
package void popBackN(size_t dimension, size_t n)
{
assert(dimension < N, __FUNCTION__ ~ ": dimension should be less than N = " ~ N.stringof);
import std.algorithm.comparison : min;
popBackExactly(dimension, min(n, _lengths[dimension]));
}
/++
Returns: `true` if for any dimension the length equals to `0`, and `false` otherwise.
+/
bool anyEmpty() const
{
foreach (i; Iota!(0, N))
if (_lengths[i] == 0)
return true;
return false;
}
/++
Convenience function for backward indexing.
Returns: `this[$-index[0], $-index[1], ..., $-index[N-1]]`
+/
auto ref backward(size_t[N] index)
{
foreach (i; Iota!(0, N))
index[i] = _lengths[i] - index[i];
return this[index];
}
/++
Returns: Total number of elements in a slice
+/
size_t elementsCount() const
{
size_t len = 1;
foreach (i; Iota!(0, N))
len *= _lengths[i];
return len;
}
static if (doUnittest)
/// Regular slice
@safe @nogc pure nothrow unittest
{
import mir.ndslice.selection : iotaSlice;
assert(iotaSlice(3, 4, 5).elementsCount == 60);
}
static if (doUnittest)
/// Packed slice
@safe @nogc pure nothrow unittest
{
import mir.ndslice.selection : pack, evertPack, iotaSlice;
auto slice = iotaSlice(3, 4, 5, 6, 7, 8);
auto p = slice.pack!2;
assert(p.elementsCount == 360);
assert(p[0, 0, 0, 0].elementsCount == 56);
assert(p.evertPack.elementsCount == 56);
}
/++
Overloading `==` and `!=`
+/
bool opEquals(size_t NR, RangeR)(auto ref Slice!(NR, RangeR) rslice)
if (Slice!(NR, RangeR).PureN == PureN)
{
foreach (i; Iota!(0, PureN))
if (this._lengths[i] != rslice._lengths[i])
return false;
static if (
!hasReference!(typeof(this))
&& !hasReference!(typeof(rslice))
&& __traits(compiles, this._ptr == rslice._ptr)
)
{
if (this._strides == rslice._strides && this._ptr == rslice._ptr)
return true;
}
foreach (i; Iota!(0, PureN))
if (this._lengths[i] == 0)
return true;
import mir.ndslice.selection : unpack;
return opEqualsImpl(this.unpack, rslice.unpack);
}
///ditto
bool opEquals(T)(T[] rarrary)
{
auto slice = this;
if (slice.length != rarrary.length)
return false;
if (rarrary.length) do
{
if (slice.front != rarrary.front)
return false;
slice.popFront;
rarrary.popFront;
}
while (rarrary.length);
return true;
}
static if (doUnittest)
///
pure nothrow unittest
{
auto a = [1, 2, 3, 4].sliced(2, 2);
assert(a != [1, 2, 3, 4, 5, 6].sliced(2, 3));
assert(a != [[1, 2, 3], [4, 5, 6]]);
assert(a == [1, 2, 3, 4].sliced(2, 2));
assert(a == [[1, 2], [3, 4]]);
assert(a != [9, 2, 3, 4].sliced(2, 2));
assert(a != [[9, 2], [3, 4]]);
}
static if (doUnittest)
pure nothrow unittest
{
import mir.ndslice.iteration : dropExactly;
import mir.ndslice.selection : iotaSlice;
assert(iotaSlice(2, 3).slice.dropExactly!0(2) == iotaSlice([4, 3], 2).dropExactly!0(4));
}
/++
Overloading `<`, `>` and `<=`, `>=`
Performs recursive row based lexicographical comparison.
+/
int opCmp(size_t NR, RangeR)(auto ref Slice!(NR, RangeR) rslice)
if (Slice!(NR, RangeR).PureN == PureN)
{
import mir.ndslice.algorithm : ndCmp;
import mir.ndslice.selection : unpack;
return ndCmp(this.unpack, rslice.unpack);
}
static if (doUnittest)
///
@safe pure nothrow @nogc unittest
{
import mir.ndslice.iteration : dropOne, dropBackOne;
import mir.ndslice.selection : iotaSlice;
// 0 1 2
// 3 4 5
auto sla = iotaSlice(2, 3);
// 1 2 3
// 4 5 6
auto slb = iotaSlice([2, 3], 1);
assert(sla < slb);
assert(slb > sla);
assert(sla <= sla);
assert(sla >= sla);
assert(sla.dropBackOne!0 < sla);
assert(sla.dropBackOne!1 < sla);
assert(sla.dropOne!0 > sla);
assert(sla.dropOne!1 > sla);
}
_Slice opSlice(size_t dimension)(size_t i, size_t j)
if (dimension < N)
in {
assert(i <= j,
"Slice.opSlice!" ~ dimension.stringof ~ ": the left bound must be less than or equal to the right bound.");
enum errorMsg = ": difference between the right and the left bounds"
~ " must be less than or equal to the length of the given dimension.";
assert(j - i <= _lengths[dimension],
"Slice.opSlice!" ~ dimension.stringof ~ errorMsg);
}
body
{
pragma(inline, true);
return typeof(return)(i, j);
}
/++
$(BOLD Fully defined index)
+/
auto ref opIndex(Repeat!(N, size_t) _indexes)
{
static if (PureN == N)
return _ptr[indexStride(_indexes)];
else
return DeepElemType(_lengths[N .. $], _strides[N .. $], _ptr + indexStride(_indexes));
}
///ditto
auto ref opIndex(size_t[N] _indexes)
{
static if (PureN == N)
return _ptr[indexStride(_indexes)];
else
return DeepElemType(_lengths[N .. $], _strides[N .. $], _ptr + indexStride(_indexes));
}
///ditto
auto ref opCall(Repeat!(N, size_t) _indexes)
{
static if (PureN == N)
return _ptr[mathIndexStride(_indexes)];
else
return DeepElemType(_lengths[N .. $], _strides[N .. $], _ptr + mathIndexStride(_indexes));
}
///ditto
auto ref opCall(size_t[N] _indexes)
{
static if (PureN == N)
return _ptr[mathIndexStride(_indexes)];
else
return DeepElemType(_lengths[N .. $], _strides[N .. $], _ptr + mathIndexStride(_indexes));
}
static if (doUnittest)
///
pure nothrow unittest
{
auto slice = slice!int(5, 2);
auto q = &slice[3, 1]; // D & C order
auto p = &slice(1, 3); // Math & Fortran order
assert(p is q);
*q = 4;
assert(slice[3, 1] == 4); // D & C order
assert(slice(1, 3) == 4); // Math & Fortran order
size_t[2] indexP = [1, 3];
size_t[2] indexQ = [3, 1];
assert(slice[indexQ] == 4); // D & C order
assert(slice(indexP) == 4); // Math & Fortran order
}
static if (doUnittest)
pure nothrow unittest
{
// check with different PureN
import mir.ndslice.selection : pack, iotaSlice;
auto pElements = iotaSlice(2, 3, 4, 5).pack!2;
import std.range : iota;
import std.algorithm.comparison : equal;
// D & C order
assert(pElements[$-1, $-1][$-1].equal([5].iotaSlice(115)));
assert(pElements[[1, 2]][$-1].equal([5].iotaSlice(115)));
// Math & Fortran
assert(pElements(2, 1)[$-1].equal([5].iotaSlice(115)));
assert(pElements([2, 1])[$-1].equal([5].iotaSlice(115)));
}
/++
$(BOLD Partially or fully defined slice.)
+/
auto opIndex(Slices...)(Slices slices)
if (isPureSlice!Slices)
{
static if (Slices.length)
{
enum size_t j(size_t n) = n - Filter!(isIndex, Slices[0 .. n+1]).length;
enum size_t F = PureIndexLength!Slices;
enum size_t S = Slices.length;
static assert(N-F > 0);
size_t stride;
static if (hasElaborateAssign!PureRange)
Slice!(N-F, Range) ret;
else
Slice!(N-F, Range) ret = void;
foreach (i, slice; slices) //static
{
static if (isIndex!(Slices[i]))
{
assert(slice < _lengths[i], "Slice.opIndex: index must be less than length");
stride += _strides[i] * slice;
}
else
{
stride += _strides[i] * slice.i;
ret._lengths[j!i] = slice.j - slice.i;
ret._strides[j!i] = _strides[i];
}
}
foreach (i; Iota!(S, PureN))
{
ret._lengths[i - F] = _lengths[i];
ret._strides[i - F] = _strides[i];
}
ret._ptr = _ptr + stride;
return ret;
}
else
{
return this;
}
}
static if (doUnittest)
///
pure nothrow unittest
{
auto slice = slice!int(5, 3);
/// Fully defined slice
assert(slice[] == slice);
auto sublice = slice[0..$-2, 1..$];
/// Partially defined slice
auto row = slice[3];
auto col = slice[0..$, 1];
}
static if (doUnittest)
pure nothrow unittest
{
auto slice = slice!(int, No.replaceArrayWithPointer)(5, 3);
/// Fully defined slice
assert(slice[] == slice);
auto sublice = slice[0..$-2, 1..$];
/// Partially defined slice
auto row = slice[3];
auto col = slice[0..$, 1];
}
static if (isMutable!DeepElemType)
{
/++
Assignment of a value of `Slice` type to a $(B fully defined slice).
Optimization:
SIMD instructions may be used if both slices have the last stride equals to 1.
+/
void opIndexAssign(size_t RN, RRange, Slices...)(Slice!(RN, RRange) value, Slices slices)
if (isFullPureSlice!Slices && RN <= ReturnType!(opIndex!Slices).N)
{
opIndexAssignImpl!""(this[slices], value);
}
static if (doUnittest)
///
pure nothrow unittest
{
auto a = slice!int(2, 3);
auto b = [1, 2, 3, 4].sliced(2, 2);
a[0..$, 0..$-1] = b;
assert(a == [[1, 2, 0], [3, 4, 0]]);
// fills both rows with b[0]
a[0..$, 0..$-1] = b[0];
assert(a == [[1, 2, 0], [1, 2, 0]]);
a[1, 0..$-1] = b[1];
assert(a[1] == [3, 4, 0]);
a[1, 0..$-1][] = b[0];
assert(a[1] == [1, 2, 0]);
}
static if (doUnittest)
/// Left slice is packed
pure nothrow unittest
{
import mir.ndslice.selection : blocks, iotaSlice;
auto a = slice!size_t(4, 4);
a.blocks(2, 2)[] = iotaSlice(2, 2);
assert(a ==
[[0, 0, 1, 1],
[0, 0, 1, 1],
[2, 2, 3, 3],
[2, 2, 3, 3]]);
}
static if (doUnittest)
/// Both slices are packed
pure nothrow unittest
{
import mir.ndslice.selection : blocks, iotaSlice, pack;
auto a = slice!size_t(4, 4);
a.blocks(2, 2)[] = iotaSlice(2, 2, 2).pack!1;
assert(a ==
[[0, 1, 2, 3],
[0, 1, 2, 3],
[4, 5, 6, 7],
[4, 5, 6, 7]]);
}
static if (doUnittest)
pure nothrow unittest
{
auto a = slice!(int, No.replaceArrayWithPointer)(2, 3);
auto b = [1, 2, 3, 4].sliced(2, 2);
a[0..$, 0..$-1] = b;
assert(a == [[1, 2, 0], [3, 4, 0]]);
a[0..$, 0..$-1] = b[0];
assert(a == [[1, 2, 0], [1, 2, 0]]);
a[1, 0..$-1] = b[1];
assert(a[1] == [3, 4, 0]);
a[1, 0..$-1][] = b[0];
assert(a[1] == [1, 2, 0]);
}
/++
Assignment of a regular multidimensional array to a $(B fully defined slice).
Optimization:
SIMD instructions may be used if the slice has the last stride equals to 1.
+/
void opIndexAssign(T, Slices...)(T[] value, Slices slices)
if (isFullPureSlice!Slices
&& !isDynamicArray!DeepElemType
&& DynamicArrayDimensionsCount!(T[]) <= ReturnType!(opIndex!Slices).N)
{
opIndexAssignImpl!""(this[slices], value);
}
static if (doUnittest)
///
pure nothrow unittest
{
auto a = slice!int(2, 3);
auto b = [[1, 2], [3, 4]];
a[] = [[1, 2, 3], [4, 5, 6]];
assert(a == [[1, 2, 3], [4, 5, 6]]);
a[0..$, 0..$-1] = [[1, 2], [3, 4]];
assert(a == [[1, 2, 3], [3, 4, 6]]);
a[0..$, 0..$-1] = [1, 2];
assert(a == [[1, 2, 3], [1, 2, 6]]);
a[1, 0..$-1] = [3, 4];
assert(a[1] == [3, 4, 6]);
a[1, 0..$-1][] = [3, 4];
assert(a[1] == [3, 4, 6]);
}
static if (doUnittest)
/// Packed slices
pure nothrow unittest
{
import mir.ndslice.selection : blocks;
auto a = slice!int(4, 4);
a.blocks(2, 2)[] = [[0, 1], [2, 3]];
assert(a ==
[[0, 0, 1, 1],
[0, 0, 1, 1],
[2, 2, 3, 3],
[2, 2, 3, 3]]);
}
static if (doUnittest)
pure nothrow unittest
{
auto a = slice!(int, No.replaceArrayWithPointer)(2, 3);
auto b = [[1, 2], [3, 4]];
a[] = [[1, 2, 3], [4, 5, 6]];
assert(a == [[1, 2, 3], [4, 5, 6]]);
a[0..$, 0..$-1] = [[1, 2], [3, 4]];
assert(a == [[1, 2, 3], [3, 4, 6]]);
a[0..$, 0..$-1] = [1, 2];
assert(a == [[1, 2, 3], [1, 2, 6]]);
a[1, 0..$-1] = [3, 4];
assert(a[1] == [3, 4, 6]);
a[1, 0..$-1][] = [3, 4];
assert(a[1] == [3, 4, 6]);
}
/++
Assignment of a value (e.g. a number) to a $(B fully defined slice).
Optimization:
SIMD instructions may be used if the slice has the last stride equals to 1.
+/
void opIndexAssign(T, Slices...)(T value, Slices slices)
if (isFullPureSlice!Slices
&& (!isDynamicArray!T || isDynamicArray!DeepElemType)
&& !is(T : Slice!(RN, RRange), size_t RN, RRange))
{
opIndexAssignImpl!""(this[slices], value);
}
static if (doUnittest)
///
pure nothrow unittest
{
auto a = slice!int(2, 3);
a[] = 9;
assert(a == [[9, 9, 9], [9, 9, 9]]);
a[0..$, 0..$-1] = 1;
assert(a == [[1, 1, 9], [1, 1, 9]]);
a[0..$, 0..$-1] = 2;
assert(a == [[2, 2, 9], [2, 2, 9]]);
a[1, 0..$-1] = 3;
assert(a[1] == [3, 3, 9]);
a[1, 0..$-1] = 4;
assert(a[1] == [4, 4, 9]);
a[1, 0..$-1][] = 5;
assert(a[1] == [5, 5, 9]);
}
static if (doUnittest)
/// Packed slices have the same behavior.
pure nothrow unittest
{
import mir.ndslice.selection : pack;
auto a = slice!int(2, 3).pack!1;
a[] = 9;
assert(a == [[9, 9, 9], [9, 9, 9]]);
}
static if (doUnittest)
pure nothrow unittest
{
auto a = slice!(int, No.replaceArrayWithPointer)(2, 3);
a[] = 9;
assert(a == [[9, 9, 9], [9, 9, 9]]);
a[0..$, 0..$-1] = 1;
assert(a == [[1, 1, 9], [1, 1, 9]]);
a[0..$, 0..$-1] = 2;
assert(a == [[2, 2, 9], [2, 2, 9]]);
a[1, 0..$-1] = 3;
assert(a[1] == [3, 3, 9]);
a[1, 0..$-1] = 4;
assert(a[1] == [4, 4, 9]);
a[1, 0..$-1][] = 5;
assert(a[1] == [5, 5, 9]);
}
static if (PureN == N)
/++
Assignment of a value (e.g. a number) to a $(B fully defined index).
+/
auto ref opIndexAssign(T)(T value, Repeat!(N, size_t) _indexes)
{
return _ptr[indexStride(_indexes)] = value;
}
static if (PureN == N)
/// ditto
auto ref opIndexAssign(T)(T value, size_t[N] _indexes)
{
return _ptr[indexStride(_indexes)] = value;
}
static if (doUnittest)
///
pure nothrow unittest
{
auto a = slice!int(2, 3);
a[1, 2] = 3;
assert(a[1, 2] == 3);
}
static if (doUnittest)
pure nothrow unittest
{
auto a = slice!(int, No.replaceArrayWithPointer)(2, 3);
a[1, 2] = 3;
assert(a[1, 2] == 3);
}
static if (doUnittest)
pure nothrow unittest
{
auto a = new int[6].sliced(2, 3);
a[[1, 2]] = 3;
assert(a[[1, 2]] == 3);
}
static if (doUnittest)
pure nothrow unittest
{
auto a = new int[6].sliced!(No.replaceArrayWithPointer)(2, 3);
a[[1, 2]] = 3;
assert(a[[1, 2]] == 3);
}
static if (PureN == N)
/++
Op Assignment `op=` of a value (e.g. a number) to a $(B fully defined index).
+/
auto ref opIndexOpAssign(string op, T)(T value, Repeat!(N, size_t) _indexes)
{
mixin (`return _ptr[indexStride(_indexes)] ` ~ op ~ `= value;`);
}
static if (PureN == N)
/// ditto
auto ref opIndexOpAssign(string op, T)(T value, size_t[N] _indexes)
{
mixin (`return _ptr[indexStride(_indexes)] ` ~ op ~ `= value;`);
}
static if (doUnittest)
///
pure nothrow unittest
{
auto a = slice!int(2, 3);
a[1, 2] += 3;
assert(a[1, 2] == 3);
}
static if (doUnittest)
pure nothrow unittest
{
auto a = new int[6].sliced(2, 3);
a[[1, 2]] += 3;
assert(a[[1, 2]] == 3);
}
static if (doUnittest)
pure nothrow unittest
{
auto a = slice!(int, No.replaceArrayWithPointer)(2, 3);
a[1, 2] += 3;
assert(a[1, 2] == 3);
}
static if (doUnittest)
pure nothrow unittest
{
auto a = new int[6].sliced!(No.replaceArrayWithPointer)(2, 3);
a[[1, 2]] += 3;
assert(a[[1, 2]] == 3);
}
/++
Op Assignment `op=` of a value of `Slice` type to a $(B fully defined slice).
Optimization:
SIMD instructions may be used if both slices have the last stride equals to 1.
+/
void opIndexOpAssign(string op, size_t RN, RRange, Slices...)(Slice!(RN, RRange) value, Slices slices)
if (isFullPureSlice!Slices
&& RN <= ReturnType!(opIndex!Slices).N)
{
opIndexAssignImpl!op(this[slices], value);
}
static if (doUnittest)
///
pure nothrow unittest
{
auto a = slice!int(2, 3);
auto b = [1, 2, 3, 4].sliced(2, 2);
a[0..$, 0..$-1] += b;
assert(a == [[1, 2, 0], [3, 4, 0]]);
a[0..$, 0..$-1] += b[0];
assert(a == [[2, 4, 0], [4, 6, 0]]);
a[1, 0..$-1] += b[1];
assert(a[1] == [7, 10, 0]);
a[1, 0..$-1][] += b[0];
assert(a[1] == [8, 12, 0]);
}
static if (doUnittest)
/// Left slice is packed
pure nothrow unittest
{
import mir.ndslice.selection : blocks, iotaSlice;
auto a = slice!size_t(4, 4);
a.blocks(2, 2)[] += iotaSlice(2, 2);
assert(a ==
[[0, 0, 1, 1],
[0, 0, 1, 1],
[2, 2, 3, 3],
[2, 2, 3, 3]]);
}
static if (doUnittest)
/// Both slices are packed
pure nothrow unittest
{
import mir.ndslice.selection : blocks, iotaSlice, pack;
auto a = slice!size_t(4, 4);
a.blocks(2, 2)[] += iotaSlice(2, 2, 2).pack!1;
assert(a ==
[[0, 1, 2, 3],
[0, 1, 2, 3],
[4, 5, 6, 7],
[4, 5, 6, 7]]);
}
static if (doUnittest)
pure nothrow unittest
{
auto a = slice!(int, No.replaceArrayWithPointer)(2, 3);
auto b = [1, 2, 3, 4].sliced(2, 2);
a[0..$, 0..$-1] += b;
assert(a == [[1, 2, 0], [3, 4, 0]]);
a[0..$, 0..$-1] += b[0];
assert(a == [[2, 4, 0], [4, 6, 0]]);
a[1, 0..$-1] += b[1];
assert(a[1] == [7, 10, 0]);
a[1, 0..$-1][] += b[0];
assert(a[1] == [8, 12, 0]);
}
/++
Op Assignment `op=` of a regular multidimensional array to a $(B fully defined slice).
Optimization:
SIMD instructions may be used if the slice has the last stride equals to 1.
+/
void opIndexOpAssign(string op, T, Slices...)(T[] value, Slices slices)
if (isFullPureSlice!Slices
&& !isDynamicArray!DeepElemType
&& DynamicArrayDimensionsCount!(T[]) <= ReturnType!(opIndex!Slices).N)
{
opIndexAssignImpl!op(this[slices], value);
}
static if (doUnittest)
///
pure nothrow unittest
{
auto a = slice!int(2, 3);
a[0..$, 0..$-1] += [[1, 2], [3, 4]];
assert(a == [[1, 2, 0], [3, 4, 0]]);
a[0..$, 0..$-1] += [1, 2];
assert(a == [[2, 4, 0], [4, 6, 0]]);
a[1, 0..$-1] += [3, 4];
assert(a[1] == [7, 10, 0]);
a[1, 0..$-1][] += [1, 2];
assert(a[1] == [8, 12, 0]);
}
static if (doUnittest)
/// Packed slices
pure nothrow unittest
{
import mir.ndslice.selection : blocks;
auto a = slice!int(4, 4);
a.blocks(2, 2)[] += [[0, 1], [2, 3]];
assert(a ==
[[0, 0, 1, 1],
[0, 0, 1, 1],
[2, 2, 3, 3],
[2, 2, 3, 3]]);
}
static if (doUnittest)
/// Packed slices have the same behavior.
pure nothrow unittest
{
import mir.ndslice.selection : pack;
auto a = slice!int(2, 3).pack!1;
a[] += 9;
assert(a == [[9, 9, 9], [9, 9, 9]]);
}
static if (doUnittest)
pure nothrow unittest
{
auto a = slice!(int, No.replaceArrayWithPointer)(2, 3);
a[0..$, 0..$-1] += [[1, 2], [3, 4]];
assert(a == [[1, 2, 0], [3, 4, 0]]);
a[0..$, 0..$-1] += [1, 2];
assert(a == [[2, 4, 0], [4, 6, 0]]);
a[1, 0..$-1] += [3, 4];
assert(a[1] == [7, 10, 0]);
a[1, 0..$-1][] += [1, 2];
assert(a[1] == [8, 12, 0]);
}
/++
Op Assignment `op=` of a value (e.g. a number) to a $(B fully defined slice).
Optimization:
SIMD instructions may be used if the slice has the last stride equals to 1.
+/
void opIndexOpAssign(string op, T, Slices...)(T value, Slices slices)
if (isFullPureSlice!Slices
&& (!isDynamicArray!T || isDynamicArray!DeepElemType)
&& !is(T : Slice!(RN, RRange), size_t RN, RRange))
{
opIndexAssignImpl!op(this[slices], value);
}
static if (doUnittest)
///
pure nothrow unittest
{
auto a = slice!int(2, 3);
a[] += 1;
assert(a == [[1, 1, 1], [1, 1, 1]]);
a[0..$, 0..$-1] += 2;
assert(a == [[3, 3, 1], [3, 3, 1]]);
a[1, 0..$-1] += 3;
assert(a[1] == [6, 6, 1]);
}
static if (doUnittest)
pure nothrow unittest
{
auto a = slice!(int, No.replaceArrayWithPointer)(2, 3);
a[] += 1;
assert(a == [[1, 1, 1], [1, 1, 1]]);
a[0..$, 0..$-1] += 2;
assert(a == [[3, 3, 1], [3, 3, 1]]);
a[1, 0..$-1] += 3;
assert(a[1] == [6, 6, 1]);
}
static if (PureN == N)
/++
Increment `++` and Decrement `--` operators for a $(B fully defined index).
+/
auto ref opIndexUnary(string op)(Repeat!(N, size_t) _indexes)
if (op == `++` || op == `--`)
{
mixin (`return ` ~ op ~ `_ptr[indexStride(_indexes)];`);
}
static if (PureN == N)
///ditto
auto ref opIndexUnary(string op)(size_t[N] _indexes)
if (op == `++` || op == `--`)
{
mixin (`return ` ~ op ~ `_ptr[indexStride(_indexes)];`);
}
static if (doUnittest)
///
pure nothrow unittest
{
auto a = slice!int(2, 3);
++a[1, 2];
assert(a[1, 2] == 1);
}
static if (doUnittest)
pure nothrow unittest
{
auto a = slice!(int, No.replaceArrayWithPointer)(2, 3);
++a[1, 2];
assert(a[1, 2] == 1);
}
static if (doUnittest)
pure nothrow unittest
{
auto a = new int[6].sliced(2, 3);
++a[[1, 2]];
assert(a[[1, 2]] == 1);
}
static if (doUnittest)
pure nothrow unittest
{
auto a = new int[6].sliced!(No.replaceArrayWithPointer)(2, 3);
++a[[1, 2]];
assert(a[[1, 2]] == 1);
}
static if (PureN == N)
/++
Increment `++` and Decrement `--` operators for a $(B fully defined slice).
+/
void opIndexUnary(string op, Slices...)(Slices slices)
if (isFullPureSlice!Slices && (op == `++` || op == `--`))
{
auto sl = this[slices];
static if (sl.N == 1)
{
for (; sl.length; sl.popFront)
{
mixin (op ~ `sl.front;`);
}
}
else
{
foreach (v; sl)
{
mixin (op ~ `v[];`);
}
}
}
static if (doUnittest)
///
pure nothrow unittest
{
auto a = slice!int(2, 3);
++a[];
assert(a == [[1, 1, 1], [1, 1, 1]]);
--a[1, 0..$-1];
assert(a[1] == [0, 0, 1]);
}
static if (doUnittest)
pure nothrow unittest
{
auto a = slice!(int, No.replaceArrayWithPointer)(2, 3);
++a[];
assert(a == [[1, 1, 1], [1, 1, 1]]);
--a[1, 0..$-1];
assert(a[1] == [0, 0, 1]);
}
}
}
/++
Slicing, indexing, and arithmetic operations.
+/
pure nothrow unittest
{
import mir.ndslice.iteration : transposed;
import mir.ndslice.selection : iotaSlice;
auto tensor = iotaSlice(3, 4, 5).slice;
assert(tensor[1, 2] == tensor[1][2]);
assert(tensor[1, 2, 3] == tensor[1][2][3]);
assert( tensor[0..$, 0..$, 4] == tensor.transposed!2[4]);
assert(&tensor[0..$, 0..$, 4][1, 2] is &tensor[1, 2, 4]);
tensor[1, 2, 3]++; //`opIndex` returns value by reference.
--tensor[1, 2, 3]; //`opUnary`
++tensor[];
tensor[] -= 1;
// `opIndexAssing` accepts only fully defined indexes and slices.
// Use an additional empty slice `[]`.
static assert(!__traits(compiles, tensor[0 .. 2] *= 2));
tensor[0 .. 2][] *= 2; //OK, empty slice
tensor[0 .. 2, 3, 0..$] /= 2; //OK, 3 index or slice positions are defined.
//fully defined index may be replaced by a static array
size_t[3] index = [1, 2, 3];
assert(tensor[index] == tensor[1, 2, 3]);
}
/++
Operations with rvalue slices.
+/
pure nothrow unittest
{
import mir.ndslice.iteration : transposed, everted;
auto tensor = slice!int(3, 4, 5);
auto matrix = slice!int(3, 4);
auto vector = slice!int(3);
foreach (i; 0..3)
vector[i] = i;
// fills matrix columns
matrix.transposed[] = vector;
// fills tensor with vector
// transposed tensor shape is (4, 5, 3)
// vector shape is ( 3)
tensor.transposed!(1, 2)[] = vector;
// transposed tensor shape is (5, 3, 4)
// matrix shape is ( 3, 4)
tensor.transposed!2[] += matrix;
// transposed tensor shape is (5, 4, 3)
// transposed matrix shape is ( 4, 3)
tensor.everted[] ^= matrix.transposed; // XOR
}
/++
Creating a slice from text.
See also $(MREF std, format).
+/
unittest
{
import std.algorithm, std.conv, std.exception, std.format,
std.functional, std.string, std.range;
Slice!(2, int*) toMatrix(string str)
{
string[][] data = str.lineSplitter.filter!(not!empty).map!split.array;
size_t rows = data .length.enforce("empty input");
size_t columns = data[0].length.enforce("empty first row");
data.each!(a => enforce(a.length == columns, "rows have different lengths"));
auto slice = slice!int(rows, columns);
foreach (i, line; data)
foreach (j, num; line)
slice[i, j] = num.to!int;
return slice;
}
auto input = "\r1 2 3\r\n 4 5 6\n";
auto matrix = toMatrix(input);
assert(matrix == [[1, 2, 3], [4, 5, 6]]);
// back to text
auto text2 = format("%(%(%s %)\n%)\n", matrix);
assert(text2 == "1 2 3\n4 5 6\n");
}
// Slicing
@safe @nogc pure nothrow unittest
{
import mir.ndslice.selection : iotaSlice;
auto a = iotaSlice(10, 20, 30, 40);
auto b = a[0..$, 10, 4 .. 27, 4];
auto c = b[2 .. 9, 5 .. 10];
auto d = b[3..$, $-2];
assert(b[4, 17] == a[4, 10, 21, 4]);
assert(c[1, 2] == a[3, 10, 11, 4]);
assert(d[3] == a[6, 10, 25, 4]);
}
// Operator overloading. # 1
pure nothrow unittest
{
import mir.ndslice.selection : iotaSlice;
auto fun(ref size_t x) { x *= 3; }
auto tensor = iotaSlice(8, 9, 10).slice;
++tensor[];
fun(tensor[0, 0, 0]);
assert(tensor[0, 0, 0] == 3);
tensor[0, 0, 0] *= 4;
tensor[0, 0, 0]--;
assert(tensor[0, 0, 0] == 11);
}
// Operator overloading. # 2
pure nothrow unittest
{
import std.algorithm.iteration : map;
import std.array : array;
import std.bigint;
import std.range : iota;
auto matrix = 72
.iota
.map!(i => BigInt(i))
.array
.sliced(8, 9);
matrix[3 .. 6, 2] += 100;
foreach (i; 0 .. 8)
foreach (j; 0 .. 9)
if (i >= 3 && i < 6 && j == 2)
assert(matrix[i, j] >= 100);
else
assert(matrix[i, j] < 100);
}
// Operator overloading. # 3
pure nothrow unittest
{
import mir.ndslice.selection : iotaSlice;
auto matrix = iotaSlice(8, 9).slice;
matrix[] = matrix;
matrix[] += matrix;
assert(matrix[2, 3] == (2 * 9 + 3) * 2);
auto vec = iotaSlice([9], 100);
matrix[] = vec;
foreach (v; matrix)
assert(v == vec);
matrix[] += vec;
foreach (vector; matrix)
foreach (elem; vector)
assert(elem >= 200);
}
// Type deduction
unittest
{
// Arrays
foreach (T; AliasSeq!(int, const int, immutable int))
static assert(is(typeof((T[]).init.sliced(3, 4)) == Slice!(2, T*)));
// Container Array
import std.container.array;
Array!int ar;
ar.length = 12;
Slice!(2, typeof(ar[])) arSl = ar[].sliced(3, 4);
// Implicit conversion of a range to its unqualified type.
import std.range : iota;
auto i0 = 60.iota;
const i1 = 60.iota;
immutable i2 = 60.iota;
alias S = Slice!(3, typeof(iota(0)));
foreach (i; AliasSeq!(i0, i1, i2))
static assert(is(typeof(i.sliced(3, 4, 5)) == S));
}
// Test for map #1
unittest
{
import std.algorithm.iteration : map;
import std.range.primitives;
auto slice = [1, 2, 3, 4].sliced(2, 2);
auto r = slice.map!(a => a.map!(a => a * 6));
assert(r.front.front == 6);
assert(r.front.back == 12);
assert(r.back.front == 18);
assert(r.back.back == 24);
assert(r[0][0] == 6);
assert(r[0][1] == 12);
assert(r[1][0] == 18);
assert(r[1][1] == 24);
static assert(hasSlicing!(typeof(r)));
static assert(isForwardRange!(typeof(r)));
static assert(isRandomAccessRange!(typeof(r)));
}
// Test for map #2
unittest
{
import std.algorithm.iteration : map;
import std.range.primitives;
auto data = [1, 2, 3, 4].map!(a => a * 2);
static assert(hasSlicing!(typeof(data)));
static assert(isForwardRange!(typeof(data)));
static assert(isRandomAccessRange!(typeof(data)));
auto slice = data.sliced(2, 2);
static assert(hasSlicing!(typeof(slice)));
static assert(isForwardRange!(typeof(slice)));
static assert(isRandomAccessRange!(typeof(slice)));
auto r = slice.map!(a => a.map!(a => a * 3));
static assert(hasSlicing!(typeof(r)));
static assert(isForwardRange!(typeof(r)));
static assert(isRandomAccessRange!(typeof(r)));
assert(r.front.front == 6);
assert(r.front.back == 12);
assert(r.back.front == 18);
assert(r.back.back == 24);
assert(r[0][0] == 6);
assert(r[0][1] == 12);
assert(r[1][0] == 18);
assert(r[1][1] == 24);
}
private bool opEqualsImpl
(size_t N, RangeL, RangeR)(
Slice!(N, RangeL) ls,
Slice!(N, RangeR) rs)
{
do
{
static if (Slice!(N, RangeL).PureN == 1)
{
if (ls.front != rs.front)
return false;
}
else
{
if (!opEqualsImpl(ls.front, rs.front))
return false;
}
rs.popFront;
ls.popFront;
}
while (ls.length);
return true;
}
private void opIndexAssignImpl(
string op,
size_t NL, RangeL,
size_t NR, RangeR)(
Slice!(NL, RangeL) ls,
Slice!(NR, RangeR) rs)
if (NL >= NR)
{
assert(_checkAssignLengths(ls, rs),
__FUNCTION__ ~ ": arguments must have the corresponding shape.");
foreach (i; Iota!(0, ls.PureN))
if (ls._lengths[i] == 0)
return;
static if (isMemory!RangeL && isMemory!RangeR && ls.NSeq.length == rs.NSeq.length)
{
if (ls._strides[$ - 1] == 1 && rs._strides[$ - 1] == 1)
{
_indexAssign!(true, op)(ls, rs);
return;
}
}
else
static if (isMemory!RangeL && ls.NSeq.length > rs.NSeq.length)
{
if (ls._strides[$ - 1] == 1)
{
_indexAssign!(true, op)(ls, rs);
return;
}
}
_indexAssign!(false, op)(ls, rs);
}
pure nothrow unittest
{
import mir.ndslice.iteration : dropExactly;
import mir.ndslice.selection : byElement;
auto sl1 = slice!double([2, 3], 2);
auto sl2 = slice!double([2, 3], 3);
sl1.dropExactly!0(2)[] = sl2.dropExactly!0(2);
foreach (e; sl1.byElement)
assert(e == 2);
sl1.dropExactly!0(2)[] = sl2.dropExactly!0(2).ndarray;
foreach (e; sl1.byElement)
assert(e == 2);
}
private void opIndexAssignImpl
(string op, size_t NL, RangeL, T)(
Slice!(NL, RangeL) ls, T rs)
if (!is(T : Slice!(NR, RangeR), size_t NR, RangeR))
{
foreach (i; Iota!(0, ls.PureN))
if (ls._lengths[i] == 0)
return;
static if (isMemory!RangeL)
{
if (ls._strides[$ - 1] == 1)
{
_indexAssign!(true, op)(ls, rs);
return;
}
}
_indexAssign!(false, op)(ls, rs);
}
package template SlicePtr(Range)
{
static if (hasPtrBehavior!Range)
alias SlicePtr = Range;
else
alias SlicePtr = PtrShell!Range;
}
package struct PtrShell(Range)
{
sizediff_t _shift;
Range _range;
enum hasAccessByRef = isPointer!Range ||
__traits(compiles, &_range[0]);
void opOpAssign(string op)(sizediff_t shift)
if (op == `+` || op == `-`)
{
pragma(inline, true);
mixin (`_shift ` ~ op ~ `= shift;`);
}
auto opBinary(string op)(sizediff_t shift)
if (op == `+` || op == `-`)
{
mixin (`return typeof(this)(_shift ` ~ op ~ ` shift, _range);`);
}
auto opUnary(string op)()
if (op == `++` || op == `--`)
{
mixin(op ~ `_shift;`);
return this;
}
auto ref opIndex(sizediff_t index)
in
{
assert(_shift + index >= 0);
static if (hasLength!Range)
assert(_shift + index <= _range.length);
}
body
{
return _range[_shift + index];
}
static if (!hasAccessByRef)
{
auto ref opIndexAssign(T)(T value, sizediff_t index)
in
{
assert(_shift + index >= 0);
static if (hasLength!Range)
assert(_shift + index <= _range.length);
}
body
{
return _range[_shift + index] = value;
}
auto ref opIndexOpAssign(string op, T)(T value, sizediff_t index)
in
{
assert(_shift + index >= 0);
static if (hasLength!Range)
assert(_shift + index <= _range.length);
}
body
{
mixin (`return _range[_shift + index] ` ~ op ~ `= value;`);
}
auto ref opIndexUnary(string op)(sizediff_t index)
in
{
assert(_shift + index >= 0);
static if (hasLength!Range)
assert(_shift + index <= _range.length);
}
body
{
mixin (`return ` ~ op ~ `_range[_shift + index];`);
}
}
auto save() @property
{
return this;
}
}
private auto ptrShell(Range)(Range range, sizediff_t shift = 0)
{
return PtrShell!Range(shift, range);
}
@safe pure nothrow unittest
{
import std.internal.test.dummyrange;
foreach (RB; AliasSeq!(ReturnBy.Reference, ReturnBy.Value))
{
DummyRange!(RB, Length.Yes, RangeType.Random) range;
range.reinit;
assert(range.length >= 10);
auto ptr = range.ptrShell;
assert(ptr[0] == range[0]);
auto save0 = range[0];
ptr[0] += 10;
++ptr[0];
assert(ptr[0] == save0 + 11);
(ptr + 5)[2] = 333;
assert(range[7] == 333);
auto ptrCopy = ptr.save;
ptrCopy._range.popFront;
ptr[1] = 2;
assert(ptr[0] == save0 + 11);
assert(ptrCopy[0] == 2);
}
}
pure nothrow unittest
{
import std.internal.test.dummyrange;
foreach (RB; AliasSeq!(ReturnBy.Reference, ReturnBy.Value))
{
DummyRange!(RB, Length.Yes, RangeType.Random) range;
range.reinit;
assert(range.length >= 10);
auto slice = range.sliced(10);
assert(slice[0] == range[0]);
auto save0 = range[0];
slice[0] += 10;
++slice[0];
assert(slice[0] == save0 + 11);
slice[5 .. $][2] = 333;
assert(range[7] == 333);
}
}
unittest
{
int[] arr = [1, 2, 3];
auto ptr = arr.ptrShell;
assert(ptr[0] == 1);
auto ptrCopy = ptr.save;
ptrCopy._range.popFront;
assert(ptr[0] == 1);
assert(ptrCopy[0] == 2);
}
private enum isSlicePointer(T) = isPointer!T || is(T : PtrShell!R, R);
package struct LikePtr {}
package template hasPtrBehavior(T)
{
static if (isPointer!T)
enum hasPtrBehavior = true;
else
static if (!isAggregateType!T)
enum hasPtrBehavior = false;
else
enum hasPtrBehavior = hasUDA!(T, LikePtr);
}
package template PtrTuple(Names...)
{
@LikePtr struct PtrTuple(Ptrs...)
if (allSatisfy!(isSlicePointer, Ptrs) && Ptrs.length == Names.length)
{
Ptrs ptrs;
void opOpAssign(string op)(sizediff_t shift)
if (op == `+` || op == `-`)
{
foreach (ref ptr; ptrs)
mixin (`ptr ` ~ op ~ `= shift;`);
}
auto opBinary(string op)(sizediff_t shift)
if (op == `+` || op == `-`)
{
auto ret = this.ptrs;
ret.opOpAssign!op(shift);
return ret;
}
public struct Index
{
Ptrs _ptrs__;
mixin (PtrTupleFrontMembers!Names);
}
auto opIndex(sizediff_t index)
{
auto p = ptrs;
foreach (ref ptr; p)
ptr += index;
return Index(p);
}
}
}
pure nothrow unittest
{
auto a = new int[20], b = new int[20];
alias T = PtrTuple!("a", "b");
alias S = T!(int*, int*);
static assert (hasUDA!(S, LikePtr));
auto t = S(a.ptr, b.ptr);
t[4].a++;
auto r = t[4];
r.b = r.a * 2;
assert(b[4] == 2);
t[0].a++;
r = t[0];
r.b = r.a * 2;
assert(b[0] == 2);
}
private template PtrTupleFrontMembers(Names...)
if (Names.length <= 32)
{
static if (Names.length)
{
alias Top = Names[0..$-1];
enum int m = Top.length;
enum PtrTupleFrontMembers = PtrTupleFrontMembers!Top
~ "
@property auto ref " ~ Names[$-1] ~ "() {
return _ptrs__[" ~ m.stringof ~ "][0];
}
static if (!__traits(compiles, &(_ptrs__[" ~ m.stringof ~ "][0])))
@property auto ref " ~ Names[$-1] ~ "(T)(auto ref T value) {
return _ptrs__[" ~ m.stringof ~ "][0] = value;
}
";
}
else
{
enum PtrTupleFrontMembers = "";
}
}
private template PrepareRangeType(Range)
{
static if (isPointer!Range)
alias PrepareRangeType = Range;
else
alias PrepareRangeType = PtrShell!Range;
}
private enum bool isType(alias T) = false;
private enum bool isType(T) = true;
private enum isStringValue(alias T) = is(typeof(T) : string);
private void _indexAssignKernel(string op, TL, TR)(size_t c, TL* l, TR* r)
{
do
{
mixin("l[0] " ~ op ~ "= r[0];");
++r;
++l;
}
while (--c);
}
private void _indexAssignValKernel(string op, TL, TR)(size_t c, TL* l, TR r)
{
do
{
mixin("l[0] " ~ op ~ "= r;");
++l;
}
while (--c);
}
private void _indexAssign(bool lastStrideEquals1, string op, size_t NL, RangeL, size_t NR, RangeR)
(Slice!(NL, RangeL) ls, Slice!(NR, RangeR) rs)
if (NL >= NR)
{
static if (NL == 1)
{
static if (lastStrideEquals1 && ls.PureN == 1)
{
_indexAssignKernel!op(ls._lengths[0], ls._ptr, rs._ptr);
}
else
{
do
{
static if (ls.PureN == 1)
mixin("ls.front " ~ op ~ "= rs.front;");
else
_indexAssign!(lastStrideEquals1, op)(ls.front, rs.front);
rs.popFront;
ls.popFront;
}
while (ls.length);
}
}
else
static if (NL == NR)
{
do
{
_indexAssign!(lastStrideEquals1, op)(ls.front, rs.front);
rs.popFront;
ls.popFront;
}
while (ls.length);
}
else
{
do
{
_indexAssign!(lastStrideEquals1, op)(ls.front, rs);
ls.popFront;
}
while (ls.length);
}
}
private void _indexAssign(bool lastStrideEquals1, string op, size_t NL, RangeL, T)(Slice!(NL, RangeL) ls, T[] rs)
if (DynamicArrayDimensionsCount!(T[]) <= NL)
{
assert(ls.length == rs.length, __FUNCTION__ ~ ": argument must have the same length.");
static if (NL == 1)
{
static if (lastStrideEquals1 && ls.PureN == 1)
{
_indexAssignKernel!op(ls._lengths[0], ls._ptr, rs.ptr);
}
else
{
do
{
static if (ls.PureN == 1)
mixin("ls.front " ~ op ~ "= rs[0];");
else
_indexAssign!(lastStrideEquals1, op)(ls.front, rs[0]);
rs.popFront;
ls.popFront;
}
while (ls.length);
}
}
else
static if (NL == DynamicArrayDimensionsCount!(T[]))
{
do
{
_indexAssign!(lastStrideEquals1, op)(ls.front, rs[0]);
rs.popFront;
ls.popFront;
}
while (ls.length);
}
else
{
do
{
_indexAssign!(lastStrideEquals1, op)(ls.front, rs);
ls.popFront;
}
while (ls.length);
}
}
private void _indexAssign(bool lastStrideEquals1, string op, size_t NL, RangeL, T)(Slice!(NL, RangeL) ls, T rs)
if ((!isDynamicArray!T || isDynamicArray!(Slice!(NL, RangeL).DeepElemType))
&& !is(T : Slice!(NR, RangeR), size_t NR, RangeR))
{
static if (NL == 1)
{
static if (lastStrideEquals1 && ls.PureN == 1)
{
_indexAssignValKernel!op(ls._lengths[0], ls._ptr, rs);
}
else
{
do
{
static if (ls.PureN == 1)
mixin("ls.front " ~ op ~ "= rs;");
else
_indexAssign!(lastStrideEquals1, op)(ls.front, rs);
ls.popFront;
}
while (ls.length);
}
}
else
{
do
{
_indexAssign!(lastStrideEquals1, op)(ls.front, rs);
ls.popFront;
}
while (ls.length);
}
}
private bool _checkAssignLengths(size_t NL, RangeL, size_t NR, RangeR)(Slice!(NL, RangeL) ls, Slice!(NR, RangeR) rs)
if (NL >= NR)
{
foreach (i; Iota!(0, NR))
if (ls._lengths[i + NL - NR] != rs._lengths[i])
return false;
static if (ls.PureN > NL && rs.PureN > NR)
{
ls.DeepElemType a;
rs.DeepElemType b;
a._lengths = ls._lengths[NL .. $];
b._lengths = rs._lengths[NR .. $];
return _checkAssignLengths(a, b);
}
else
{
return true;
}
}
@safe pure nothrow @nogc unittest
{
import mir.ndslice.selection : iotaSlice;
assert(_checkAssignLengths(iotaSlice(2, 2), iotaSlice(2, 2)));
assert(!_checkAssignLengths(iotaSlice(2, 2), iotaSlice(2, 3)));
assert(!_checkAssignLengths(iotaSlice(2, 2), iotaSlice(3, 2)));
assert(!_checkAssignLengths(iotaSlice(2, 2), iotaSlice(3, 3)));
}
| D |
/Users/davidfekke/Documents/xcode/WKWebViewExample/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/fek.io/IntermediateBuildFilesPath/fek.io.build/Debug-iphoneos/fek.io.build/Objects-normal/arm64/ViewController.bc : /Users/davidfekke/Documents/xcode/WKWebViewExample/fek.io/AppDelegate.swift /Users/davidfekke/Documents/xcode/WKWebViewExample/fek.io/SampleSchemeHandler.swift /Users/davidfekke/Documents/xcode/WKWebViewExample/fek.io/ViewController.swift /Users/davidfekke/Documents/xcode/WKWebViewExample/fek.io/ExampleError.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/prebuilt-modules/ObjectiveC.swiftmodule/arm64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/prebuilt-modules/Dispatch.swiftmodule/arm64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/prebuilt-modules/CoreFoundation.swiftmodule/arm64.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/WebKit.framework/Headers/WebKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/davidfekke/Documents/xcode/WKWebViewExample/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/fek.io/IntermediateBuildFilesPath/fek.io.build/Debug-iphoneos/fek.io.build/Objects-normal/arm64/ViewController~partial.swiftmodule : /Users/davidfekke/Documents/xcode/WKWebViewExample/fek.io/AppDelegate.swift /Users/davidfekke/Documents/xcode/WKWebViewExample/fek.io/SampleSchemeHandler.swift /Users/davidfekke/Documents/xcode/WKWebViewExample/fek.io/ViewController.swift /Users/davidfekke/Documents/xcode/WKWebViewExample/fek.io/ExampleError.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/prebuilt-modules/ObjectiveC.swiftmodule/arm64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/prebuilt-modules/Dispatch.swiftmodule/arm64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/prebuilt-modules/CoreFoundation.swiftmodule/arm64.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/WebKit.framework/Headers/WebKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/davidfekke/Documents/xcode/WKWebViewExample/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/fek.io/IntermediateBuildFilesPath/fek.io.build/Debug-iphoneos/fek.io.build/Objects-normal/arm64/ViewController~partial.swiftdoc : /Users/davidfekke/Documents/xcode/WKWebViewExample/fek.io/AppDelegate.swift /Users/davidfekke/Documents/xcode/WKWebViewExample/fek.io/SampleSchemeHandler.swift /Users/davidfekke/Documents/xcode/WKWebViewExample/fek.io/ViewController.swift /Users/davidfekke/Documents/xcode/WKWebViewExample/fek.io/ExampleError.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/prebuilt-modules/ObjectiveC.swiftmodule/arm64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/prebuilt-modules/Dispatch.swiftmodule/arm64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/prebuilt-modules/CoreFoundation.swiftmodule/arm64.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/WebKit.framework/Headers/WebKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/davidfekke/Documents/xcode/WKWebViewExample/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/fek.io/IntermediateBuildFilesPath/fek.io.build/Debug-iphoneos/fek.io.build/Objects-normal/arm64/ViewController~partial.swiftsourceinfo : /Users/davidfekke/Documents/xcode/WKWebViewExample/fek.io/AppDelegate.swift /Users/davidfekke/Documents/xcode/WKWebViewExample/fek.io/SampleSchemeHandler.swift /Users/davidfekke/Documents/xcode/WKWebViewExample/fek.io/ViewController.swift /Users/davidfekke/Documents/xcode/WKWebViewExample/fek.io/ExampleError.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/prebuilt-modules/ObjectiveC.swiftmodule/arm64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/prebuilt-modules/Dispatch.swiftmodule/arm64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/prebuilt-modules/CoreFoundation.swiftmodule/arm64.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/WebKit.framework/Headers/WebKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.7.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
| D |
/**********************************************************
**
** LOGRAMM
** Interpreter
**
** (c) 2009-2014, Dr.Kameleon
**
**********************************************************
** pair.d
**********************************************************/
module components.pair;
//================================================
// Imports
//================================================
import std.stdio;
import std.conv;
import std.array;
import panic;
import components.expression;
import value;
import position;
//================================================
// C Interface for Bison
//================================================
extern (C)
{
void* Pair_new(Expression k, Expression v) { return cast(void*)(new Pair(k,v)); }
}
//================================================
// Functions
//================================================
class Pair
{
Expression key;
Expression value;
this (Expression k, Expression v)
{
key = k;
value = v;
}
}
| D |
module foo;
struct S
{
int x;
int y;
private:
int _special;
}
| D |
module hunt.http.codec.http.model;
public import hunt.http.codec.http.model.BadMessageException;
public import hunt.http.codec.http.model.ContentProvider;
public import hunt.http.codec.http.model.Cookie;
public import hunt.http.codec.http.model.CookieGenerator;
public import hunt.http.codec.http.model.CookieParser;
public import hunt.http.codec.http.model.DateGenerator;
public import hunt.http.codec.http.model.HttpCompliance;
public import hunt.http.codec.http.model.HttpComplianceSection;
public import hunt.http.codec.http.model.HttpField;
public import hunt.http.codec.http.model.HttpFields;
public import hunt.http.codec.http.model.HttpHeader;
public import hunt.http.codec.http.model.HttpHeaderValue;
public import hunt.http.codec.http.model.HttpMethod;
public import hunt.http.codec.http.model.HostPortHttpField;
public import hunt.http.codec.http.model.HttpScheme;
public import hunt.http.codec.http.model.HttpStatus;
public import hunt.http.codec.http.model.HttpTokens;
public import hunt.http.codec.http.model.HttpURI;
public import hunt.http.codec.http.model.HttpVersion;
public import hunt.http.codec.http.model.MetaData;
public import hunt.http.codec.http.model.MultiPartContentProvider;
public import hunt.http.codec.http.model.MultipartConfig;
public import hunt.http.codec.http.model.MultipartFormInputStream;
public import hunt.http.codec.http.model.MultipartParser;
public import hunt.http.codec.http.model.Protocol;
public import hunt.http.codec.http.model.QuotedCSV;
public import hunt.http.codec.http.model.StaticTableHttpField; | D |
# FIXED
Host/gatt_uuid.obj: D:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/host/gatt_uuid.c
Host/gatt_uuid.obj: D:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/osal/src/inc/comdef.h
Host/gatt_uuid.obj: D:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/hal/src/target/_common/hal_types.h
Host/gatt_uuid.obj: D:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/hal/src/target/_common/../_common/cc26xx/_hal_types.h
Host/gatt_uuid.obj: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_16.9.7.LTS/include/stdint.h
Host/gatt_uuid.obj: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_16.9.7.LTS/include/stdbool.h
Host/gatt_uuid.obj: D:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/hal/src/inc/hal_defs.h
Host/gatt_uuid.obj: D:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/osal/src/inc/osal.h
Host/gatt_uuid.obj: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_16.9.7.LTS/include/limits.h
Host/gatt_uuid.obj: D:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/osal/src/inc/osal_memory.h
Host/gatt_uuid.obj: D:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/osal/src/inc/osal_timers.h
Host/gatt_uuid.obj: D:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/icall/src/inc/icall.h
Host/gatt_uuid.obj: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_16.9.7.LTS/include/stdlib.h
Host/gatt_uuid.obj: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_16.9.7.LTS/include/linkage.h
Host/gatt_uuid.obj: D:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/hal/src/inc/hal_assert.h
Host/gatt_uuid.obj: D:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/hal/src/target/_common/hal_types.h
Host/gatt_uuid.obj: D:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/inc/gatt.h
Host/gatt_uuid.obj: D:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/inc/bcomdef.h
Host/gatt_uuid.obj: D:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/inc/att.h
Host/gatt_uuid.obj: D:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/inc/l2cap.h
Host/gatt_uuid.obj: D:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/inc/gatt_uuid.h
D:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/host/gatt_uuid.c:
D:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/osal/src/inc/comdef.h:
D:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/hal/src/target/_common/hal_types.h:
D:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/hal/src/target/_common/../_common/cc26xx/_hal_types.h:
D:/ti/ccsv8/tools/compiler/ti-cgt-arm_16.9.7.LTS/include/stdint.h:
D:/ti/ccsv8/tools/compiler/ti-cgt-arm_16.9.7.LTS/include/stdbool.h:
D:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/hal/src/inc/hal_defs.h:
D:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/osal/src/inc/osal.h:
D:/ti/ccsv8/tools/compiler/ti-cgt-arm_16.9.7.LTS/include/limits.h:
D:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/osal/src/inc/osal_memory.h:
D:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/osal/src/inc/osal_timers.h:
D:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/icall/src/inc/icall.h:
D:/ti/ccsv8/tools/compiler/ti-cgt-arm_16.9.7.LTS/include/stdlib.h:
D:/ti/ccsv8/tools/compiler/ti-cgt-arm_16.9.7.LTS/include/linkage.h:
D:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/hal/src/inc/hal_assert.h:
D:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/hal/src/target/_common/hal_types.h:
D:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/inc/gatt.h:
D:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/inc/bcomdef.h:
D:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/inc/att.h:
D:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/inc/l2cap.h:
D:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/inc/gatt_uuid.h:
| D |
import metus.dncurses.dncurses;
void main(string[] args) {
initscr();
scope(exit) endwin();
mode = CBreak();
stdwin.keypad = true;
with(stdwin) {
put(Pos(5,5));
auto x = getstr();
put(Pos(6,5),x);
getch();
}
}
| D |
/home/franktly/Rust/rust_program/smart-points/target/debug/deps/smart_points-b1b843c00707e54c.rmeta: src/main.rs
/home/franktly/Rust/rust_program/smart-points/target/debug/deps/smart_points-b1b843c00707e54c.d: src/main.rs
src/main.rs:
| D |
/**
* Copyright: Copyright Digital Mars 2010.
* License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.
* Authors: Jacob Carlborg
* Version: Initial created: Feb 20, 2010
*/
/* Copyright Digital Mars 2010.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
module core.sys.osx.mach.loader;
version (OSX):
extern (C):
struct mach_header
{
uint magic;
int cputype;
int cpusubtype;
uint filetype;
uint ncmds;
uint sizeofcmds;
uint flags;
}
struct mach_header_64
{
uint magic;
int cputype;
int cpusubtype;
uint filetype;
uint ncmds;
uint sizeofcmds;
uint flags;
uint reserved;
}
enum uint MH_MAGIC = 0xfeedface;
enum uint MH_CIGAM = 0xcefaedfe;
enum uint MH_MAGIC_64 = 0xfeedfacf;
enum uint MH_CIGAM_64 = 0xcffaedfe;
enum SEG_PAGEZERO = "__PAGEZERO";
enum SEG_TEXT = "__TEXT";
enum SECT_TEXT = "__text";
enum SECT_FVMLIB_INIT0 = "__fvmlib_init0";
enum SECT_FVMLIB_INIT1 = "__fvmlib_init1";
enum SEG_DATA = "__DATA";
enum SECT_DATA = "__data";
enum SECT_BSS = "__bss";
enum SECT_COMMON = "__common";
enum SEG_OBJC = "__OBJC";
enum SECT_OBJC_SYMBOLS = "__symbol_table";
enum SECT_OBJC_MODULES = "__module_info";
enum SECT_OBJC_STRINGS = "__selector_strs";
enum SECT_OBJC_REFS = "__selector_refs";
enum SEG_ICON = "__ICON";
enum SECT_ICON_HEADER = "__header";
enum SECT_ICON_TIFF = "__tiff";
enum SEG_LINKEDIT = "__LINKEDIT";
enum SEG_UNIXSTACK = "__UNIXSTACK";
enum SEG_IMPORT = "__IMPORT";
struct section
{
char[16] sectname;
char[16] segname;
uint addr;
uint size;
uint offset;
uint align_;
uint reloff;
uint nreloc;
uint flags;
uint reserved1;
uint reserved2;
}
struct section_64
{
char[16] sectname;
char[16] segname;
ulong addr;
ulong size;
uint offset;
uint align_;
uint reloff;
uint nreloc;
uint flags;
uint reserved1;
uint reserved2;
uint reserved3;
}
| D |
module android.java.java.time.format.DateTimeFormatterBuilder_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import7 = android.java.java.time.format.TextStyle_d_interface;
import import4 = android.java.java.time.temporal.TemporalField_d_interface;
import import10 = android.java.java.time.format.DateTimeFormatter_d_interface;
import import2 = android.java.java.util.Locale_d_interface;
import import11 = android.java.java.lang.Class_d_interface;
import import9 = android.java.java.util.Set_d_interface;
import import1 = android.java.java.time.chrono.Chronology_d_interface;
import import3 = android.java.java.time.format.DateTimeFormatterBuilder_d_interface;
import import5 = android.java.java.time.format.SignStyle_d_interface;
import import8 = android.java.java.util.Map_d_interface;
import import0 = android.java.java.time.format.FormatStyle_d_interface;
import import6 = android.java.java.time.chrono.ChronoLocalDate_d_interface;
final class DateTimeFormatterBuilder : IJavaObject {
static immutable string[] _d_canCastTo = [
];
@Import this(arsd.jni.Default);
@Import static string getLocalizedDateTimePattern(import0.FormatStyle, import0.FormatStyle, import1.Chronology, import2.Locale);
@Import import3.DateTimeFormatterBuilder parseCaseSensitive();
@Import import3.DateTimeFormatterBuilder parseCaseInsensitive();
@Import import3.DateTimeFormatterBuilder parseStrict();
@Import import3.DateTimeFormatterBuilder parseLenient();
@Import import3.DateTimeFormatterBuilder parseDefaulting(import4.TemporalField, long);
@Import import3.DateTimeFormatterBuilder appendValue(import4.TemporalField);
@Import import3.DateTimeFormatterBuilder appendValue(import4.TemporalField, int);
@Import import3.DateTimeFormatterBuilder appendValue(import4.TemporalField, int, int, import5.SignStyle);
@Import import3.DateTimeFormatterBuilder appendValueReduced(import4.TemporalField, int, int, int);
@Import import3.DateTimeFormatterBuilder appendValueReduced(import4.TemporalField, int, int, import6.ChronoLocalDate);
@Import import3.DateTimeFormatterBuilder appendFraction(import4.TemporalField, int, int, bool);
@Import import3.DateTimeFormatterBuilder appendText(import4.TemporalField);
@Import import3.DateTimeFormatterBuilder appendText(import4.TemporalField, import7.TextStyle);
@Import import3.DateTimeFormatterBuilder appendText(import4.TemporalField, import8.Map);
@Import import3.DateTimeFormatterBuilder appendInstant();
@Import import3.DateTimeFormatterBuilder appendInstant(int);
@Import import3.DateTimeFormatterBuilder appendOffsetId();
@Import import3.DateTimeFormatterBuilder appendOffset(string, string);
@Import import3.DateTimeFormatterBuilder appendLocalizedOffset(import7.TextStyle);
@Import import3.DateTimeFormatterBuilder appendZoneId();
@Import import3.DateTimeFormatterBuilder appendZoneRegionId();
@Import import3.DateTimeFormatterBuilder appendZoneOrOffsetId();
@Import import3.DateTimeFormatterBuilder appendZoneText(import7.TextStyle);
@Import import3.DateTimeFormatterBuilder appendZoneText(import7.TextStyle, import9.Set);
@Import import3.DateTimeFormatterBuilder appendChronologyId();
@Import import3.DateTimeFormatterBuilder appendChronologyText(import7.TextStyle);
@Import import3.DateTimeFormatterBuilder appendLocalized(import0.FormatStyle, import0.FormatStyle);
@Import import3.DateTimeFormatterBuilder appendLiteral(wchar);
@Import import3.DateTimeFormatterBuilder appendLiteral(string);
@Import import3.DateTimeFormatterBuilder append(import10.DateTimeFormatter);
@Import import3.DateTimeFormatterBuilder appendOptional(import10.DateTimeFormatter);
@Import import3.DateTimeFormatterBuilder appendPattern(string);
@Import import3.DateTimeFormatterBuilder padNext(int);
@Import import3.DateTimeFormatterBuilder padNext(int, wchar);
@Import import3.DateTimeFormatterBuilder optionalStart();
@Import import3.DateTimeFormatterBuilder optionalEnd();
@Import import10.DateTimeFormatter toFormatter();
@Import import10.DateTimeFormatter toFormatter(import2.Locale);
@Import import11.Class getClass();
@Import int hashCode();
@Import bool equals(IJavaObject);
@Import @JavaName("toString") string toString_();
override string toString() { return arsd.jni.javaObjectToString(this); }
@Import void notify();
@Import void notifyAll();
@Import void wait(long);
@Import void wait(long, int);
@Import void wait();
mixin IJavaObjectImplementation!(false);
public static immutable string _javaParameterString = "Ljava/time/format/DateTimeFormatterBuilder;";
}
| D |
// Written in the D programming language.
/**
This is a submodule of $(MREF std, algorithm).
It contains generic _mutation algorithms.
$(SCRIPT inhibitQuickIndex = 1;)
$(BOOKTABLE Cheat Sheet,
$(TR $(TH Function Name) $(TH Description))
$(T2 bringToFront,
If $(D a = [1, 2, 3]) and $(D b = [4, 5, 6, 7]),
$(D bringToFront(a, b)) leaves $(D a = [4, 5, 6]) and
$(D b = [7, 1, 2, 3]).)
$(T2 copy,
Copies a range to another. If
$(D a = [1, 2, 3]) and $(D b = new int[5]), then $(D copy(a, b))
leaves $(D b = [1, 2, 3, 0, 0]) and returns $(D b[3 .. $]).)
$(T2 fill,
Fills a range with a pattern,
e.g., if $(D a = new int[3]), then $(D fill(a, 4))
leaves $(D a = [4, 4, 4]) and $(D fill(a, [3, 4])) leaves
$(D a = [3, 4, 3]).)
$(T2 initializeAll,
If $(D a = [1.2, 3.4]), then $(D initializeAll(a)) leaves
$(D a = [double.init, double.init]).)
$(T2 move,
$(D move(a, b)) moves $(D a) into $(D b). $(D move(a)) reads $(D a)
destructively when necessary.)
$(T2 moveEmplace,
Similar to $(D move) but assumes `target` is uninitialized.)
$(T2 moveAll,
Moves all elements from one range to another.)
$(T2 moveEmplaceAll,
Similar to $(D moveAll) but assumes all elements in `target` are uninitialized.)
$(T2 moveSome,
Moves as many elements as possible from one range to another.)
$(T2 moveEmplaceSome,
Similar to $(D moveSome) but assumes all elements in `target` are uninitialized.)
$(T2 remove,
Removes elements from a range in-place, and returns the shortened
range.)
$(T2 reverse,
If $(D a = [1, 2, 3]), $(D reverse(a)) changes it to $(D [3, 2, 1]).)
$(T2 strip,
Strips all leading and trailing elements equal to a value, or that
satisfy a predicate.
If $(D a = [1, 1, 0, 1, 1]), then $(D strip(a, 1)) and
$(D strip!(e => e == 1)(a)) returns $(D [0]).)
$(T2 stripLeft,
Strips all leading elements equal to a value, or that satisfy a
predicate. If $(D a = [1, 1, 0, 1, 1]), then $(D stripLeft(a, 1)) and
$(D stripLeft!(e => e == 1)(a)) returns $(D [0, 1, 1]).)
$(T2 stripRight,
Strips all trailing elements equal to a value, or that satisfy a
predicate.
If $(D a = [1, 1, 0, 1, 1]), then $(D stripRight(a, 1)) and
$(D stripRight!(e => e == 1)(a)) returns $(D [1, 1, 0]).)
$(T2 swap,
Swaps two values.)
$(T2 swapAt,
Swaps two values by indices.)
$(T2 swapRanges,
Swaps all elements of two ranges.)
$(T2 uninitializedFill,
Fills a range (assumed uninitialized) with a value.)
)
Copyright: Andrei Alexandrescu 2008-.
License: $(HTTP boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: $(HTTP erdani.com, Andrei Alexandrescu)
Source: $(PHOBOSSRC std/algorithm/_mutation.d)
Macros:
T2=$(TR $(TDNW $(LREF $1)) $(TD $+))
*/
module std.algorithm.mutation;
import std.range.primitives;
import std.traits : isArray, isBlitAssignable, isNarrowString, Unqual, isSomeChar;
// FIXME
import std.typecons; // : tuple, Tuple;
// bringToFront
/**
The $(D bringToFront) function has considerable flexibility and
usefulness. It can rotate elements in one buffer left or right, swap
buffers of equal length, and even move elements across disjoint
buffers of different types and different lengths.
$(D bringToFront) takes two ranges $(D front) and $(D back), which may
be of different types. Considering the concatenation of $(D front) and
$(D back) one unified range, $(D bringToFront) rotates that unified
range such that all elements in $(D back) are brought to the beginning
of the unified range. The relative ordering of elements in $(D front)
and $(D back), respectively, remains unchanged.
The $(D bringToFront) function treats strings at the code unit
level and it is not concerned with Unicode character integrity.
$(D bringToFront) is designed as a function for moving elements
in ranges, not as a string function.
Performs $(BIGOH max(front.length, back.length)) evaluations of $(D
swap).
Preconditions:
Either $(D front) and $(D back) are disjoint, or $(D back) is
reachable from $(D front) and $(D front) is not reachable from $(D
back).
Params:
front = an $(REF_ALTTEXT input range, isInputRange, std,range,primitives)
back = a $(REF_ALTTEXT forward range, isForwardRange, std,range,primitives)
Returns:
The number of elements brought to the front, i.e., the length of $(D back).
See_Also:
$(HTTP sgi.com/tech/stl/_rotate.html, STL's rotate)
*/
size_t bringToFront(InputRange, ForwardRange)(InputRange front, ForwardRange back)
if (isInputRange!InputRange && isForwardRange!ForwardRange)
{
import std.string : representation;
static if (isNarrowString!InputRange)
{
auto frontW = representation(front);
}
else
{
alias frontW = front;
}
static if (isNarrowString!ForwardRange)
{
auto backW = representation(back);
}
else
{
alias backW = back;
}
return bringToFrontImpl(frontW, backW);
}
private size_t bringToFrontImpl(InputRange, ForwardRange)(InputRange front, ForwardRange back)
if (isInputRange!InputRange && isForwardRange!ForwardRange)
{
import std.array : sameHead;
import std.range : take, Take;
enum bool sameHeadExists = is(typeof(front.sameHead(back)));
size_t result;
for (bool semidone; !front.empty && !back.empty; )
{
static if (sameHeadExists)
{
if (front.sameHead(back)) break; // shortcut
}
// Swap elements until front and/or back ends.
auto back0 = back.save;
size_t nswaps;
do
{
static if (sameHeadExists)
{
// Detect the stepping-over condition.
if (front.sameHead(back0)) back0 = back.save;
}
swapFront(front, back);
++nswaps;
front.popFront();
back.popFront();
}
while (!front.empty && !back.empty);
if (!semidone) result += nswaps;
// Now deal with the remaining elements.
if (back.empty)
{
if (front.empty) break;
// Right side was shorter, which means that we've brought
// all the back elements to the front.
semidone = true;
// Next pass: bringToFront(front, back0) to adjust the rest.
back = back0;
}
else
{
assert(front.empty);
// Left side was shorter. Let's step into the back.
static if (is(InputRange == Take!ForwardRange))
{
front = take(back0, nswaps);
}
else
{
immutable subresult = bringToFront(take(back0, nswaps),
back);
if (!semidone) result += subresult;
break; // done
}
}
}
return result;
}
/**
The simplest use of $(D bringToFront) is for rotating elements in a
buffer. For example:
*/
@safe unittest
{
auto arr = [4, 5, 6, 7, 1, 2, 3];
auto p = bringToFront(arr[0 .. 4], arr[4 .. $]);
assert(p == arr.length - 4);
assert(arr == [ 1, 2, 3, 4, 5, 6, 7 ]);
}
/**
The $(D front) range may actually "step over" the $(D back)
range. This is very useful with forward ranges that cannot compute
comfortably right-bounded subranges like $(D arr[0 .. 4]) above. In
the example below, $(D r2) is a right subrange of $(D r1).
*/
@safe unittest
{
import std.algorithm.comparison : equal;
import std.container : SList;
import std.range.primitives : popFrontN;
auto list = SList!(int)(4, 5, 6, 7, 1, 2, 3);
auto r1 = list[];
auto r2 = list[]; popFrontN(r2, 4);
assert(equal(r2, [ 1, 2, 3 ]));
bringToFront(r1, r2);
assert(equal(list[], [ 1, 2, 3, 4, 5, 6, 7 ]));
}
/**
Elements can be swapped across ranges of different types:
*/
@safe unittest
{
import std.algorithm.comparison : equal;
import std.container : SList;
auto list = SList!(int)(4, 5, 6, 7);
auto vec = [ 1, 2, 3 ];
bringToFront(list[], vec);
assert(equal(list[], [ 1, 2, 3, 4 ]));
assert(equal(vec, [ 5, 6, 7 ]));
}
/**
Unicode integrity is not preserved:
*/
@safe unittest
{
import std.string : representation;
auto ar = representation("a".dup);
auto br = representation("ç".dup);
bringToFront(ar, br);
auto a = cast(char[]) ar;
auto b = cast(char[]) br;
// Illegal UTF-8
assert(a == "\303");
// Illegal UTF-8
assert(b == "\247a");
}
@safe unittest
{
import std.algorithm.comparison : equal;
import std.conv : text;
import std.random : Random, unpredictableSeed, uniform;
// a more elaborate test
{
auto rnd = Random(unpredictableSeed);
int[] a = new int[uniform(100, 200, rnd)];
int[] b = new int[uniform(100, 200, rnd)];
foreach (ref e; a) e = uniform(-100, 100, rnd);
foreach (ref e; b) e = uniform(-100, 100, rnd);
int[] c = a ~ b;
// writeln("a= ", a);
// writeln("b= ", b);
auto n = bringToFront(c[0 .. a.length], c[a.length .. $]);
//writeln("c= ", c);
assert(n == b.length);
assert(c == b ~ a, text(c, "\n", a, "\n", b));
}
// different types, moveFront, no sameHead
{
static struct R(T)
{
T[] data;
size_t i;
@property
{
R save() { return this; }
bool empty() { return i >= data.length; }
T front() { return data[i]; }
T front(real e) { return data[i] = cast(T) e; }
}
void popFront() { ++i; }
}
auto a = R!int([1, 2, 3, 4, 5]);
auto b = R!real([6, 7, 8, 9]);
auto n = bringToFront(a, b);
assert(n == 4);
assert(a.data == [6, 7, 8, 9, 1]);
assert(b.data == [2, 3, 4, 5]);
}
// front steps over back
{
int[] arr, r1, r2;
// back is shorter
arr = [4, 5, 6, 7, 1, 2, 3];
r1 = arr;
r2 = arr[4 .. $];
bringToFront(r1, r2) == 3 || assert(0);
assert(equal(arr, [1, 2, 3, 4, 5, 6, 7]));
// front is shorter
arr = [5, 6, 7, 1, 2, 3, 4];
r1 = arr;
r2 = arr[3 .. $];
bringToFront(r1, r2) == 4 || assert(0);
assert(equal(arr, [1, 2, 3, 4, 5, 6, 7]));
}
// Bugzilla 16959
auto arr = ['4', '5', '6', '7', '1', '2', '3'];
auto p = bringToFront(arr[0 .. 4], arr[4 .. $]);
assert(p == arr.length - 4);
assert(arr == ['1', '2', '3', '4', '5', '6', '7']);
}
// Tests if types are arrays and support slice assign.
private enum bool areCopyCompatibleArrays(T1, T2) =
isArray!T1 && isArray!T2 && is(typeof(T2.init[] = T1.init[]));
// copy
/**
Copies the content of $(D source) into $(D target) and returns the
remaining (unfilled) part of $(D target).
Preconditions: $(D target) shall have enough room to accommodate
the entirety of $(D source).
Params:
source = an $(REF_ALTTEXT input range, isInputRange, std,range,primitives)
target = an output range
Returns:
The unfilled part of target
See_Also:
$(HTTP sgi.com/tech/stl/_copy.html, STL's _copy)
*/
TargetRange copy(SourceRange, TargetRange)(SourceRange source, TargetRange target)
if (areCopyCompatibleArrays!(SourceRange, TargetRange))
{
const tlen = target.length;
const slen = source.length;
assert(tlen >= slen,
"Cannot copy a source range into a smaller target range.");
immutable overlaps = __ctfe || () @trusted {
return source.ptr < target.ptr + tlen &&
target.ptr < source.ptr + slen; }();
if (overlaps)
{
foreach (idx; 0 .. slen)
target[idx] = source[idx];
return target[slen .. tlen];
}
else
{
// Array specialization. This uses optimized memory copying
// routines under the hood and is about 10-20x faster than the
// generic implementation.
target[0 .. slen] = source[];
return target[slen .. $];
}
}
/// ditto
TargetRange copy(SourceRange, TargetRange)(SourceRange source, TargetRange target)
if (!areCopyCompatibleArrays!(SourceRange, TargetRange) &&
isInputRange!SourceRange &&
isOutputRange!(TargetRange, ElementType!SourceRange))
{
// Specialize for 2 random access ranges.
// Typically 2 random access ranges are faster iterated by common
// index than by x.popFront(), y.popFront() pair
static if (isRandomAccessRange!SourceRange &&
hasLength!SourceRange &&
hasSlicing!TargetRange &&
isRandomAccessRange!TargetRange &&
hasLength!TargetRange)
{
auto len = source.length;
foreach (idx; 0 .. len)
target[idx] = source[idx];
return target[len .. target.length];
}
else
{
put(target, source);
return target;
}
}
///
@safe unittest
{
int[] a = [ 1, 5 ];
int[] b = [ 9, 8 ];
int[] buf = new int[](a.length + b.length + 10);
auto rem = a.copy(buf); // copy a into buf
rem = b.copy(rem); // copy b into remainder of buf
assert(buf[0 .. a.length + b.length] == [1, 5, 9, 8]);
assert(rem.length == 10); // unused slots in buf
}
/**
As long as the target range elements support assignment from source
range elements, different types of ranges are accepted:
*/
@safe unittest
{
float[] src = [ 1.0f, 5 ];
double[] dest = new double[src.length];
src.copy(dest);
}
/**
To _copy at most $(D n) elements from a range, you may want to use
$(REF take, std,range):
*/
@safe unittest
{
import std.range;
int[] src = [ 1, 5, 8, 9, 10 ];
auto dest = new int[](3);
src.take(dest.length).copy(dest);
assert(dest == [ 1, 5, 8 ]);
}
/**
To _copy just those elements from a range that satisfy a predicate,
use $(LREF filter):
*/
@safe unittest
{
import std.algorithm.iteration : filter;
int[] src = [ 1, 5, 8, 9, 10, 1, 2, 0 ];
auto dest = new int[src.length];
auto rem = src
.filter!(a => (a & 1) == 1)
.copy(dest);
assert(dest[0 .. $ - rem.length] == [ 1, 5, 9, 1 ]);
}
/**
$(REF retro, std,range) can be used to achieve behavior similar to
$(HTTP sgi.com/tech/stl/copy_backward.html, STL's copy_backward'):
*/
@safe unittest
{
import std.algorithm, std.range;
int[] src = [1, 2, 4];
int[] dest = [0, 0, 0, 0, 0];
src.retro.copy(dest.retro);
assert(dest == [0, 0, 1, 2, 4]);
}
// Test CTFE copy.
@safe unittest
{
enum c = copy([1,2,3], [4,5,6,7]);
assert(c == [7]);
}
@safe unittest
{
import std.algorithm.iteration : filter;
{
int[] a = [ 1, 5 ];
int[] b = [ 9, 8 ];
auto e = copy(filter!("a > 1")(a), b);
assert(b[0] == 5 && e.length == 1);
}
{
int[] a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
copy(a[5 .. 10], a[4 .. 9]);
assert(a[4 .. 9] == [6, 7, 8, 9, 10]);
}
{ // Test for bug 7898
enum v =
{
import std.algorithm;
int[] arr1 = [10, 20, 30, 40, 50];
int[] arr2 = arr1.dup;
copy(arr1, arr2);
return 35;
}();
assert(v == 35);
}
}
@safe unittest
{
// Issue 13650
import std.meta : AliasSeq;
foreach (Char; AliasSeq!(char, wchar, dchar))
{
Char[3] a1 = "123";
Char[6] a2 = "456789";
assert(copy(a1[], a2[]) is a2[3..$]);
assert(a1[] == "123");
assert(a2[] == "123789");
}
}
/**
Assigns $(D value) to each element of input _range $(D range).
Params:
range = An
$(REF_ALTTEXT input _range, isInputRange, std,_range,primitives)
that exposes references to its elements and has assignable
elements
value = Assigned to each element of range
See_Also:
$(LREF uninitializedFill)
$(LREF initializeAll)
*/
void fill(Range, Value)(auto ref Range range, auto ref Value value)
if ((isInputRange!Range && is(typeof(range.front = value)) ||
isSomeChar!Value && is(typeof(range[] = value))))
{
alias T = ElementType!Range;
static if (is(typeof(range[] = value)))
{
range[] = value;
}
else static if (is(typeof(range[] = T(value))))
{
range[] = T(value);
}
else
{
for ( ; !range.empty; range.popFront() )
{
range.front = value;
}
}
}
///
@safe unittest
{
int[] a = [ 1, 2, 3, 4 ];
fill(a, 5);
assert(a == [ 5, 5, 5, 5 ]);
}
// issue 16342, test fallback on mutable narrow strings
@safe unittest
{
char[] chars = ['a', 'b'];
fill(chars, 'c');
assert(chars == "cc");
char[2] chars2 = ['a', 'b'];
fill(chars2, 'c');
assert(chars2 == "cc");
wchar[] wchars = ['a', 'b'];
fill(wchars, wchar('c'));
assert(wchars == "cc"w);
dchar[] dchars = ['a', 'b'];
fill(dchars, dchar('c'));
assert(dchars == "cc"d);
}
@nogc @safe unittest
{
const(char)[] chars;
assert(chars.length == 0);
static assert(!__traits(compiles, fill(chars, 'c')));
wstring wchars;
assert(wchars.length == 0);
static assert(!__traits(compiles, fill(wchars, wchar('c'))));
}
@nogc @safe unittest
{
char[] chars;
fill(chars, 'c');
assert(chars == ""c);
}
@safe unittest
{
shared(char)[] chrs = ['r'];
fill(chrs, 'c');
assert(chrs == [shared(char)('c')]);
}
@nogc @safe unittest
{
struct Str(size_t len)
{
private char[len] _data;
void opIndexAssign(char value) @safe @nogc
{_data[] = value;}
}
Str!2 str;
str.fill(':');
assert(str._data == "::");
}
@safe unittest
{
char[] chars = ['a','b','c','d'];
chars[1 .. 3].fill(':');
assert(chars == "a::d");
}
// end issue 16342
@safe unittest
{
import std.conv : text;
import std.internal.test.dummyrange;
int[] a = [ 1, 2, 3 ];
fill(a, 6);
assert(a == [ 6, 6, 6 ], text(a));
void fun0()
{
foreach (i; 0 .. 1000)
{
foreach (ref e; a) e = 6;
}
}
void fun1() { foreach (i; 0 .. 1000) fill(a, 6); }
// fill should accept InputRange
alias InputRange = DummyRange!(ReturnBy.Reference, Length.No, RangeType.Input);
enum filler = uint.max;
InputRange range;
fill(range, filler);
foreach (value; range.arr)
assert(value == filler);
}
@safe unittest
{
//ER8638_1 IS_NOT self assignable
static struct ER8638_1
{
void opAssign(int){}
}
//ER8638_1 IS self assignable
static struct ER8638_2
{
void opAssign(ER8638_2){}
void opAssign(int){}
}
auto er8638_1 = new ER8638_1[](10);
auto er8638_2 = new ER8638_2[](10);
er8638_1.fill(5); //generic case
er8638_2.fill(5); //opSlice(T.init) case
}
@safe unittest
{
{
int[] a = [1, 2, 3];
immutable(int) b = 0;
a.fill(b);
assert(a == [0, 0, 0]);
}
{
double[] a = [1, 2, 3];
immutable(int) b = 0;
a.fill(b);
assert(a == [0, 0, 0]);
}
}
/**
Fills $(D range) with a pattern copied from $(D filler). The length of
$(D range) does not have to be a multiple of the length of $(D
filler). If $(D filler) is empty, an exception is thrown.
Params:
range = An $(REF_ALTTEXT input _range, isInputRange, std,_range,primitives)
that exposes references to its elements and has assignable elements.
filler = The
$(REF_ALTTEXT forward _range, isForwardRange, std,_range,primitives)
representing the _fill pattern.
*/
void fill(InputRange, ForwardRange)(InputRange range, ForwardRange filler)
if (isInputRange!InputRange
&& (isForwardRange!ForwardRange
|| (isInputRange!ForwardRange && isInfinite!ForwardRange))
&& is(typeof(InputRange.init.front = ForwardRange.init.front)))
{
static if (isInfinite!ForwardRange)
{
//ForwardRange is infinite, no need for bounds checking or saving
static if (hasSlicing!ForwardRange && hasLength!InputRange
&& is(typeof(filler[0 .. range.length])))
{
copy(filler[0 .. range.length], range);
}
else
{
//manual feed
for ( ; !range.empty; range.popFront(), filler.popFront())
{
range.front = filler.front;
}
}
}
else
{
import std.exception : enforce;
enforce(!filler.empty, "Cannot fill range with an empty filler");
static if (hasLength!InputRange && hasLength!ForwardRange
&& is(typeof(range.length > filler.length)))
{
//Case we have access to length
immutable len = filler.length;
//Start by bulk copies
while (range.length > len)
{
range = copy(filler.save, range);
}
//and finally fill the partial range. No need to save here.
static if (hasSlicing!ForwardRange && is(typeof(filler[0 .. range.length])))
{
//use a quick copy
auto len2 = range.length;
range = copy(filler[0 .. len2], range);
}
else
{
//iterate. No need to check filler, it's length is longer than range's
for (; !range.empty; range.popFront(), filler.popFront())
{
range.front = filler.front;
}
}
}
else
{
//Most basic case.
auto bck = filler.save;
for (; !range.empty; range.popFront(), filler.popFront())
{
if (filler.empty) filler = bck.save;
range.front = filler.front;
}
}
}
}
///
@safe unittest
{
int[] a = [ 1, 2, 3, 4, 5 ];
int[] b = [ 8, 9 ];
fill(a, b);
assert(a == [ 8, 9, 8, 9, 8 ]);
}
@safe unittest
{
import std.exception : assertThrown;
import std.internal.test.dummyrange;
int[] a = [ 1, 2, 3, 4, 5 ];
int[] b = [1, 2];
fill(a, b);
assert(a == [ 1, 2, 1, 2, 1 ]);
// fill should accept InputRange
alias InputRange = DummyRange!(ReturnBy.Reference, Length.No, RangeType.Input);
InputRange range;
fill(range,[1,2]);
foreach (i,value;range.arr)
assert(value == (i%2 == 0?1:2));
//test with a input being a "reference forward" range
fill(a, new ReferenceForwardRange!int([8, 9]));
assert(a == [8, 9, 8, 9, 8]);
//test with a input being an "infinite input" range
fill(a, new ReferenceInfiniteInputRange!int());
assert(a == [0, 1, 2, 3, 4]);
//empty filler test
assertThrown(fill(a, a[$..$]));
}
/**
Initializes all elements of $(D range) with their $(D .init) value.
Assumes that the elements of the range are uninitialized.
Params:
range = An
$(REF_ALTTEXT input _range, isInputRange, std,_range,primitives)
that exposes references to its elements and has assignable
elements
See_Also:
$(LREF fill)
$(LREF uninitializeFill)
*/
void initializeAll(Range)(Range range)
if (isInputRange!Range && hasLvalueElements!Range && hasAssignableElements!Range)
{
import core.stdc.string : memset, memcpy;
import std.traits : hasElaborateAssign, isDynamicArray;
alias T = ElementType!Range;
static if (hasElaborateAssign!T)
{
import std.algorithm.internal : addressOf;
//Elaborate opAssign. Must go the memcpy road.
//We avoid calling emplace here, because our goal is to initialize to
//the static state of T.init,
//So we want to avoid any un-necassarilly CC'ing of T.init
auto p = typeid(T).initializer();
if (p.ptr)
{
for ( ; !range.empty ; range.popFront() )
{
static if (__traits(isStaticArray, T))
{
// static array initializer only contains initialization
// for one element of the static array.
auto elemp = cast(void *) addressOf(range.front);
auto endp = elemp + T.sizeof;
while (elemp < endp)
{
memcpy(elemp, p.ptr, p.length);
elemp += p.length;
}
}
else
{
memcpy(addressOf(range.front), p.ptr, T.sizeof);
}
}
}
else
static if (isDynamicArray!Range)
memset(range.ptr, 0, range.length * T.sizeof);
else
for ( ; !range.empty ; range.popFront() )
memset(addressOf(range.front), 0, T.sizeof);
}
else
fill(range, T.init);
}
/// ditto
void initializeAll(Range)(Range range)
if (is(Range == char[]) || is(Range == wchar[]))
{
alias T = ElementEncodingType!Range;
range[] = T.init;
}
///
@system unittest
{
import core.stdc.stdlib : malloc, free;
struct S
{
int a = 10;
}
auto s = (cast(S*) malloc(5 * S.sizeof))[0 .. 5];
initializeAll(s);
assert(s == [S(10), S(10), S(10), S(10), S(10)]);
scope(exit) free(s.ptr);
}
@system unittest
{
import std.algorithm.iteration : filter;
import std.meta : AliasSeq;
import std.traits : hasElaborateAssign;
//Test strings:
//Must work on narrow strings.
//Must reject const
char[3] a = void;
a[].initializeAll();
assert(a[] == [char.init, char.init, char.init]);
string s;
assert(!__traits(compiles, s.initializeAll()));
assert(!__traits(compiles, s.initializeAll()));
assert(s.empty);
//Note: Cannot call uninitializedFill on narrow strings
enum e {e1, e2}
e[3] b1 = void;
b1[].initializeAll();
assert(b1[] == [e.e1, e.e1, e.e1]);
e[3] b2 = void;
b2[].uninitializedFill(e.e2);
assert(b2[] == [e.e2, e.e2, e.e2]);
static struct S1
{
int i;
}
static struct S2
{
int i = 1;
}
static struct S3
{
int i;
this(this){}
}
static struct S4
{
int i = 1;
this(this){}
}
static assert(!hasElaborateAssign!S1);
static assert(!hasElaborateAssign!S2);
static assert( hasElaborateAssign!S3);
static assert( hasElaborateAssign!S4);
assert(!typeid(S1).initializer().ptr);
assert( typeid(S2).initializer().ptr);
assert(!typeid(S3).initializer().ptr);
assert( typeid(S4).initializer().ptr);
foreach (S; AliasSeq!(S1, S2, S3, S4))
{
//initializeAll
{
//Array
S[3] ss1 = void;
ss1[].initializeAll();
assert(ss1[] == [S.init, S.init, S.init]);
//Not array
S[3] ss2 = void;
auto sf = ss2[].filter!"true"();
sf.initializeAll();
assert(ss2[] == [S.init, S.init, S.init]);
}
//uninitializedFill
{
//Array
S[3] ss1 = void;
ss1[].uninitializedFill(S(2));
assert(ss1[] == [S(2), S(2), S(2)]);
//Not array
S[3] ss2 = void;
auto sf = ss2[].filter!"true"();
sf.uninitializedFill(S(2));
assert(ss2[] == [S(2), S(2), S(2)]);
}
}
}
// test that initializeAll works for arrays of static arrays of structs with
// elaborate assigns.
@system unittest
{
struct Int {
~this() {}
int x = 3;
}
Int[2] xs = [Int(1), Int(2)];
struct R {
bool done;
bool empty() { return done; }
ref Int[2] front() { return xs; }
void popFront() { done = true; }
}
initializeAll(R());
assert(xs[0].x == 3);
assert(xs[1].x == 3);
}
// move
/**
Moves `source` into `target`, via a destructive copy when necessary.
If `T` is a struct with a destructor or postblit defined, source is reset
to its `.init` value after it is moved into target, otherwise it is
left unchanged.
Preconditions:
If source has internal pointers that point to itself, it cannot be moved, and
will trigger an assertion failure.
Params:
source = Data to copy.
target = Where to copy into. The destructor, if any, is invoked before the
copy is performed.
*/
void move(T)(ref T source, ref T target)
{
// test @safe destructible
static if (__traits(compiles, (T t) @safe {}))
trustedMoveImpl(source, target);
else
moveImpl(source, target);
}
/// For non-struct types, `move` just performs `target = source`:
@safe unittest
{
Object obj1 = new Object;
Object obj2 = obj1;
Object obj3;
move(obj2, obj3);
assert(obj3 is obj1);
// obj2 unchanged
assert(obj2 is obj1);
}
///
pure nothrow @safe @nogc unittest
{
// Structs without destructors are simply copied
struct S1
{
int a = 1;
int b = 2;
}
S1 s11 = { 10, 11 };
S1 s12;
move(s11, s12);
assert(s12 == S1(10, 11));
assert(s11 == s12);
// But structs with destructors or postblits are reset to their .init value
// after copying to the target.
struct S2
{
int a = 1;
int b = 2;
~this() pure nothrow @safe @nogc { }
}
S2 s21 = { 3, 4 };
S2 s22;
move(s21, s22);
assert(s21 == S2(1, 2));
assert(s22 == S2(3, 4));
}
@safe unittest
{
import std.exception : assertCTFEable;
import std.traits;
assertCTFEable!((){
Object obj1 = new Object;
Object obj2 = obj1;
Object obj3;
move(obj2, obj3);
assert(obj3 is obj1);
static struct S1 { int a = 1, b = 2; }
S1 s11 = { 10, 11 };
S1 s12;
move(s11, s12);
assert(s11.a == 10 && s11.b == 11 && s12.a == 10 && s12.b == 11);
static struct S2 { int a = 1; int * b; }
S2 s21 = { 10, null };
s21.b = new int;
S2 s22;
move(s21, s22);
assert(s21 == s22);
});
// Issue 5661 test(1)
static struct S3
{
static struct X { int n = 0; ~this(){n = 0;} }
X x;
}
static assert(hasElaborateDestructor!S3);
S3 s31, s32;
s31.x.n = 1;
move(s31, s32);
assert(s31.x.n == 0);
assert(s32.x.n == 1);
// Issue 5661 test(2)
static struct S4
{
static struct X { int n = 0; this(this){n = 0;} }
X x;
}
static assert(hasElaborateCopyConstructor!S4);
S4 s41, s42;
s41.x.n = 1;
move(s41, s42);
assert(s41.x.n == 0);
assert(s42.x.n == 1);
// Issue 13990 test
class S5;
S5 s51;
S5 s52 = s51;
S5 s53;
move(s52, s53);
assert(s53 is s51);
}
/// Ditto
T move(T)(return scope ref T source)
{
// test @safe destructible
static if (__traits(compiles, (T t) @safe {}))
return trustedMoveImpl(source);
else
return moveImpl(source);
}
/// Non-copyable structs can still be moved:
pure nothrow @safe @nogc unittest
{
struct S
{
int a = 1;
@disable this(this);
~this() pure nothrow @safe @nogc {}
}
S s1;
s1.a = 2;
S s2 = move(s1);
assert(s1.a == 1);
assert(s2.a == 2);
}
private void trustedMoveImpl(T)(ref T source, ref T target) @trusted
{
moveImpl(source, target);
}
private void moveImpl(T)(ref T source, ref T target)
{
import std.traits : hasElaborateDestructor;
static if (is(T == struct))
{
if (&source == &target) return;
// Destroy target before overwriting it
static if (hasElaborateDestructor!T) target.__xdtor();
}
// move and emplace source into target
moveEmplace(source, target);
}
private T trustedMoveImpl(T)(ref T source) @trusted
{
return moveImpl(source);
}
private T moveImpl(T)(ref T source)
{
T result = void;
moveEmplace(source, result);
return result;
}
@safe unittest
{
import std.exception : assertCTFEable;
import std.traits;
assertCTFEable!((){
Object obj1 = new Object;
Object obj2 = obj1;
Object obj3 = move(obj2);
assert(obj3 is obj1);
static struct S1 { int a = 1, b = 2; }
S1 s11 = { 10, 11 };
S1 s12 = move(s11);
assert(s11.a == 10 && s11.b == 11 && s12.a == 10 && s12.b == 11);
static struct S2 { int a = 1; int * b; }
S2 s21 = { 10, null };
s21.b = new int;
S2 s22 = move(s21);
assert(s21 == s22);
});
// Issue 5661 test(1)
static struct S3
{
static struct X { int n = 0; ~this(){n = 0;} }
X x;
}
static assert(hasElaborateDestructor!S3);
S3 s31;
s31.x.n = 1;
S3 s32 = move(s31);
assert(s31.x.n == 0);
assert(s32.x.n == 1);
// Issue 5661 test(2)
static struct S4
{
static struct X { int n = 0; this(this){n = 0;} }
X x;
}
static assert(hasElaborateCopyConstructor!S4);
S4 s41;
s41.x.n = 1;
S4 s42 = move(s41);
assert(s41.x.n == 0);
assert(s42.x.n == 1);
// Issue 13990 test
class S5;
S5 s51;
S5 s52 = s51;
S5 s53;
s53 = move(s52);
assert(s53 is s51);
}
@system unittest
{
static struct S { int n = 0; ~this() @system { n = 0; } }
S a, b;
static assert(!__traits(compiles, () @safe { move(a, b); }));
static assert(!__traits(compiles, () @safe { move(a); }));
a.n = 1;
() @trusted { move(a, b); }();
assert(a.n == 0);
a.n = 1;
() @trusted { move(a); }();
assert(a.n == 0);
}
@safe unittest//Issue 6217
{
import std.algorithm.iteration : map;
auto x = map!"a"([1,2,3]);
x = move(x);
}
@safe unittest// Issue 8055
{
static struct S
{
int x;
~this()
{
assert(x == 0);
}
}
S foo(S s)
{
return move(s);
}
S a;
a.x = 0;
auto b = foo(a);
assert(b.x == 0);
}
@system unittest// Issue 8057
{
int n = 10;
struct S
{
int x;
~this()
{
// Access to enclosing scope
assert(n == 10);
}
}
S foo(S s)
{
// Move nested struct
return move(s);
}
S a;
a.x = 1;
auto b = foo(a);
assert(b.x == 1);
// Regression 8171
static struct Array(T)
{
// nested struct has no member
struct Payload
{
~this() {}
}
}
Array!int.Payload x = void;
move(x);
move(x, x);
}
/**
* Similar to $(LREF move) but assumes `target` is uninitialized. This
* is more efficient because `source` can be blitted over `target`
* without destroying or initializing it first.
*
* Params:
* source = value to be moved into target
* target = uninitialized value to be filled by source
*/
void moveEmplace(T)(ref T source, ref T target) @system
{
import core.stdc.string : memcpy, memset;
import std.traits : hasAliasing, hasElaborateAssign,
hasElaborateCopyConstructor, hasElaborateDestructor,
isAssignable;
static if (!is(T == class) && hasAliasing!T) if (!__ctfe)
{
import std.exception : doesPointTo;
assert(!doesPointTo(source, source), "Cannot move object with internal pointer.");
}
static if (is(T == struct))
{
assert(&source !is &target, "source and target must not be identical");
static if (hasElaborateAssign!T || !isAssignable!T)
memcpy(&target, &source, T.sizeof);
else
target = source;
// If the source defines a destructor or a postblit hook, we must obliterate the
// object in order to avoid double freeing and undue aliasing
static if (hasElaborateDestructor!T || hasElaborateCopyConstructor!T)
{
// If T is nested struct, keep original context pointer
static if (__traits(isNested, T))
enum sz = T.sizeof - (void*).sizeof;
else
enum sz = T.sizeof;
auto init = typeid(T).initializer();
if (init.ptr is null) // null ptr means initialize to 0s
memset(&source, 0, sz);
else
memcpy(&source, init.ptr, sz);
}
}
else
{
// Primitive data (including pointers and arrays) or class -
// assignment works great
target = source;
}
}
///
pure nothrow @nogc @system unittest
{
static struct Foo
{
pure nothrow @nogc:
this(int* ptr) { _ptr = ptr; }
~this() { if (_ptr) ++*_ptr; }
int* _ptr;
}
int val;
Foo foo1 = void; // uninitialized
auto foo2 = Foo(&val); // initialized
assert(foo2._ptr is &val);
// Using `move(foo2, foo1)` would have an undefined effect because it would destroy
// the uninitialized foo1.
// moveEmplace directly overwrites foo1 without destroying or initializing it first.
moveEmplace(foo2, foo1);
assert(foo1._ptr is &val);
assert(foo2._ptr is null);
assert(val == 0);
}
// moveAll
/**
Calls `move(a, b)` for each element `a` in `src` and the corresponding
element `b` in `tgt`, in increasing order.
Preconditions:
`walkLength(src) <= walkLength(tgt)`.
This precondition will be asserted. If you cannot ensure there is enough room in
`tgt` to accommodate all of `src` use $(LREF moveSome) instead.
Params:
src = An $(REF_ALTTEXT input range, isInputRange, std,range,primitives) with
movable elements.
tgt = An $(REF_ALTTEXT input range, isInputRange, std,range,primitives) with
elements that elements from $(D src) can be moved into.
Returns: The leftover portion of $(D tgt) after all elements from $(D src) have
been moved.
*/
InputRange2 moveAll(InputRange1, InputRange2)(InputRange1 src, InputRange2 tgt)
if (isInputRange!InputRange1 && isInputRange!InputRange2
&& is(typeof(move(src.front, tgt.front))))
{
return moveAllImpl!move(src, tgt);
}
///
pure nothrow @safe @nogc unittest
{
int[3] a = [ 1, 2, 3 ];
int[5] b;
assert(moveAll(a[], b[]) is b[3 .. $]);
assert(a[] == b[0 .. 3]);
int[3] cmp = [ 1, 2, 3 ];
assert(a[] == cmp[]);
}
/**
* Similar to $(LREF moveAll) but assumes all elements in `tgt` are
* uninitialized. Uses $(LREF moveEmplace) to move elements from
* `src` over elements from `tgt`.
*/
InputRange2 moveEmplaceAll(InputRange1, InputRange2)(InputRange1 src, InputRange2 tgt) @system
if (isInputRange!InputRange1 && isInputRange!InputRange2
&& is(typeof(moveEmplace(src.front, tgt.front))))
{
return moveAllImpl!moveEmplace(src, tgt);
}
///
pure nothrow @nogc @system unittest
{
static struct Foo
{
~this() pure nothrow @nogc { if (_ptr) ++*_ptr; }
int* _ptr;
}
int[3] refs = [0, 1, 2];
Foo[3] src = [Foo(&refs[0]), Foo(&refs[1]), Foo(&refs[2])];
Foo[5] dst = void;
auto tail = moveEmplaceAll(src[], dst[]); // move 3 value from src over dst
assert(tail.length == 2); // returns remaining uninitialized values
initializeAll(tail);
import std.algorithm.searching : all;
assert(src[].all!(e => e._ptr is null));
assert(dst[0 .. 3].all!(e => e._ptr !is null));
}
@system unittest
{
struct InputRange
{
ref int front() { return data[0]; }
void popFront() { data.popFront; }
bool empty() { return data.empty; }
int[] data;
}
auto a = InputRange([ 1, 2, 3 ]);
auto b = InputRange(new int[5]);
moveAll(a, b);
assert(a.data == b.data[0 .. 3]);
assert(a.data == [ 1, 2, 3 ]);
}
private InputRange2 moveAllImpl(alias moveOp, InputRange1, InputRange2)(
ref InputRange1 src, ref InputRange2 tgt)
{
import std.exception : enforce;
static if (isRandomAccessRange!InputRange1 && hasLength!InputRange1 && hasLength!InputRange2
&& hasSlicing!InputRange2 && isRandomAccessRange!InputRange2)
{
auto toMove = src.length;
assert(toMove <= tgt.length);
foreach (idx; 0 .. toMove)
moveOp(src[idx], tgt[idx]);
return tgt[toMove .. tgt.length];
}
else
{
for (; !src.empty; src.popFront(), tgt.popFront())
{
assert(!tgt.empty);
moveOp(src.front, tgt.front);
}
return tgt;
}
}
// moveSome
/**
Calls `move(a, b)` for each element `a` in `src` and the corresponding
element `b` in `tgt`, in increasing order, stopping when either range has been
exhausted.
Params:
src = An $(REF_ALTTEXT input range, isInputRange, std,range,primitives) with
movable elements.
tgt = An $(REF_ALTTEXT input range, isInputRange, std,range,primitives) with
elements that elements from $(D src) can be moved into.
Returns: The leftover portions of the two ranges after one or the other of the
ranges have been exhausted.
*/
Tuple!(InputRange1, InputRange2) moveSome(InputRange1, InputRange2)(InputRange1 src, InputRange2 tgt)
if (isInputRange!InputRange1 && isInputRange!InputRange2
&& is(typeof(move(src.front, tgt.front))))
{
return moveSomeImpl!move(src, tgt);
}
///
pure nothrow @safe @nogc unittest
{
int[5] a = [ 1, 2, 3, 4, 5 ];
int[3] b;
assert(moveSome(a[], b[])[0] is a[3 .. $]);
assert(a[0 .. 3] == b);
assert(a == [ 1, 2, 3, 4, 5 ]);
}
/**
* Same as $(LREF moveSome) but assumes all elements in `tgt` are
* uninitialized. Uses $(LREF moveEmplace) to move elements from
* `src` over elements from `tgt`.
*/
Tuple!(InputRange1, InputRange2) moveEmplaceSome(InputRange1, InputRange2)(InputRange1 src, InputRange2 tgt) @system
if (isInputRange!InputRange1 && isInputRange!InputRange2
&& is(typeof(move(src.front, tgt.front))))
{
return moveSomeImpl!moveEmplace(src, tgt);
}
///
pure nothrow @nogc @system unittest
{
static struct Foo
{
~this() pure nothrow @nogc { if (_ptr) ++*_ptr; }
int* _ptr;
}
int[4] refs = [0, 1, 2, 3];
Foo[4] src = [Foo(&refs[0]), Foo(&refs[1]), Foo(&refs[2]), Foo(&refs[3])];
Foo[3] dst = void;
auto res = moveEmplaceSome(src[], dst[]);
assert(res.length == 2);
import std.algorithm.searching : all;
assert(src[0 .. 3].all!(e => e._ptr is null));
assert(src[3]._ptr !is null);
assert(dst[].all!(e => e._ptr !is null));
}
private Tuple!(InputRange1, InputRange2) moveSomeImpl(alias moveOp, InputRange1, InputRange2)(
ref InputRange1 src, ref InputRange2 tgt)
{
for (; !src.empty && !tgt.empty; src.popFront(), tgt.popFront())
moveOp(src.front, tgt.front);
return tuple(src, tgt);
}
// SwapStrategy
/**
Defines the swapping strategy for algorithms that need to swap
elements in a range (such as partition and sort). The strategy
concerns the swapping of elements that are not the core concern of the
algorithm. For example, consider an algorithm that sorts $(D [ "abc",
"b", "aBc" ]) according to $(D toUpper(a) < toUpper(b)). That
algorithm might choose to swap the two equivalent strings $(D "abc")
and $(D "aBc"). That does not affect the sorting since both $(D [
"abc", "aBc", "b" ]) and $(D [ "aBc", "abc", "b" ]) are valid
outcomes.
Some situations require that the algorithm must NOT ever change the
relative ordering of equivalent elements (in the example above, only
$(D [ "abc", "aBc", "b" ]) would be the correct result). Such
algorithms are called $(B stable). If the ordering algorithm may swap
equivalent elements discretionarily, the ordering is called $(B
unstable).
Yet another class of algorithms may choose an intermediate tradeoff by
being stable only on a well-defined subrange of the range. There is no
established terminology for such behavior; this library calls it $(B
semistable).
Generally, the $(D stable) ordering strategy may be more costly in
time and/or space than the other two because it imposes additional
constraints. Similarly, $(D semistable) may be costlier than $(D
unstable). As (semi-)stability is not needed very often, the ordering
algorithms in this module parameterized by $(D SwapStrategy) all
choose $(D SwapStrategy.unstable) as the default.
*/
enum SwapStrategy
{
/**
Allows freely swapping of elements as long as the output
satisfies the algorithm's requirements.
*/
unstable,
/**
In algorithms partitioning ranges in two, preserve relative
ordering of elements only to the left of the partition point.
*/
semistable,
/**
Preserve the relative ordering of elements to the largest
extent allowed by the algorithm's requirements.
*/
stable,
}
///
@safe unittest
{
import std.stdio;
import std.algorithm.sorting : partition;
int[] a = [0, 1, 2, 3];
assert(remove!(SwapStrategy.stable)(a, 1) == [0, 2, 3]);
a = [0, 1, 2, 3];
assert(remove!(SwapStrategy.unstable)(a, 1) == [0, 3, 2]);
}
///
@safe unittest
{
import std.algorithm.sorting : partition;
// Put stuff greater than 3 on the left
auto arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
assert(partition!(a => a > 3, SwapStrategy.stable)(arr) == [1, 2, 3]);
assert(arr == [4, 5, 6, 7, 8, 9, 10, 1, 2, 3]);
arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
assert(partition!(a => a > 3, SwapStrategy.semistable)(arr) == [2, 3, 1]);
assert(arr == [4, 5, 6, 7, 8, 9, 10, 2, 3, 1]);
arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
assert(partition!(a => a > 3, SwapStrategy.unstable)(arr) == [3, 2, 1]);
assert(arr == [10, 9, 8, 4, 5, 6, 7, 3, 2, 1]);
}
/**
Eliminates elements at given offsets from `range` and returns the shortened
range.
For example, here is how to _remove a single element from an array:
----
string[] a = [ "a", "b", "c", "d" ];
a = a.remove(1); // remove element at offset 1
assert(a == [ "a", "c", "d"]);
----
Note that `remove` does not change the length of the original _range directly;
instead, it returns the shortened _range. If its return value is not assigned to
the original _range, the original _range will retain its original length, though
its contents will have changed:
----
int[] a = [ 3, 5, 7, 8 ];
assert(remove(a, 1) == [ 3, 7, 8 ]);
assert(a == [ 3, 7, 8, 8 ]);
----
The element at _offset `1` has been removed and the rest of the elements have
shifted up to fill its place, however, the original array remains of the same
length. This is because all functions in `std.algorithm` only change $(I
content), not $(I topology). The value `8` is repeated because $(LREF move) was
invoked to rearrange elements, and on integers `move` simply copies the source
to the destination. To replace `a` with the effect of the removal, simply
assign the slice returned by `remove` to it, as shown in the first example.
Multiple indices can be passed into $(D remove). In that case,
elements at the respective indices are all removed. The indices must
be passed in increasing order, otherwise an exception occurs.
----
int[] a = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ];
assert(remove(a, 1, 3, 5) ==
[ 0, 2, 4, 6, 7, 8, 9, 10 ]);
----
(Note that all indices refer to slots in the $(I original) array, not
in the array as it is being progressively shortened.) Finally, any
combination of integral offsets and tuples composed of two integral
offsets can be passed in.
----
int[] a = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ];
assert(remove(a, 1, tuple(3, 5), 9) == [ 0, 2, 5, 6, 7, 8, 10 ]);
----
In this case, the slots at positions 1, 3, 4, and 9 are removed from
the array. The tuple passes in a range closed to the left and open to
the right (consistent with built-in slices), e.g. $(D tuple(3, 5))
means indices $(D 3) and $(D 4) but not $(D 5).
If the need is to remove some elements in the range but the order of
the remaining elements does not have to be preserved, you may want to
pass $(D SwapStrategy.unstable) to $(D remove).
----
int[] a = [ 0, 1, 2, 3 ];
assert(remove!(SwapStrategy.unstable)(a, 1) == [ 0, 3, 2 ]);
----
In the case above, the element at slot $(D 1) is removed, but replaced
with the last element of the range. Taking advantage of the relaxation
of the stability requirement, $(D remove) moved elements from the end
of the array over the slots to be removed. This way there is less data
movement to be done which improves the execution time of the function.
The function $(D remove) works on bidirectional ranges that have assignable
lvalue elements. The moving strategy is (listed from fastest to slowest):
$(UL $(LI If $(D s == SwapStrategy.unstable && isRandomAccessRange!Range &&
hasLength!Range && hasLvalueElements!Range), then elements are moved from the
end of the range into the slots to be filled. In this case, the absolute
minimum of moves is performed.) $(LI Otherwise, if $(D s ==
SwapStrategy.unstable && isBidirectionalRange!Range && hasLength!Range
&& hasLvalueElements!Range), then elements are still moved from the
end of the range, but time is spent on advancing between slots by repeated
calls to $(D range.popFront).) $(LI Otherwise, elements are moved
incrementally towards the front of $(D range); a given element is never
moved several times, but more elements are moved than in the previous
cases.))
Params:
s = a SwapStrategy to determine if the original order needs to be preserved
range = a $(REF_ALTTEXT bidirectional range, isBidirectionalRange, std,_range,primitives)
with a length member
offset = which element(s) to remove
Returns:
a range containing all of the elements of range with offset removed
*/
Range remove
(SwapStrategy s = SwapStrategy.stable, Range, Offset...)
(Range range, Offset offset)
if (s != SwapStrategy.stable
&& isBidirectionalRange!Range
&& hasLvalueElements!Range
&& hasLength!Range
&& Offset.length >= 1)
{
Tuple!(size_t, "pos", size_t, "len")[offset.length] blackouts;
foreach (i, v; offset)
{
static if (is(typeof(v[0]) : size_t) && is(typeof(v[1]) : size_t))
{
blackouts[i].pos = v[0];
blackouts[i].len = v[1] - v[0];
}
else
{
static assert(is(typeof(v) : size_t), typeof(v).stringof);
blackouts[i].pos = v;
blackouts[i].len = 1;
}
static if (i > 0)
{
import std.exception : enforce;
enforce(blackouts[i - 1].pos + blackouts[i - 1].len
<= blackouts[i].pos,
"remove(): incorrect ordering of elements to remove");
}
}
size_t left = 0, right = offset.length - 1;
auto tgt = range.save;
size_t tgtPos = 0;
while (left <= right)
{
// Look for a blackout on the right
if (blackouts[right].pos + blackouts[right].len >= range.length)
{
range.popBackExactly(blackouts[right].len);
// Since right is unsigned, we must check for this case, otherwise
// we might turn it into size_t.max and the loop condition will not
// fail when it should.
if (right > 0)
{
--right;
continue;
}
else
break;
}
// Advance to next blackout on the left
assert(blackouts[left].pos >= tgtPos);
tgt.popFrontExactly(blackouts[left].pos - tgtPos);
tgtPos = blackouts[left].pos;
// Number of elements to the right of blackouts[right]
immutable tailLen = range.length - (blackouts[right].pos + blackouts[right].len);
size_t toMove = void;
if (tailLen < blackouts[left].len)
{
toMove = tailLen;
blackouts[left].pos += toMove;
blackouts[left].len -= toMove;
}
else
{
toMove = blackouts[left].len;
++left;
}
tgtPos += toMove;
foreach (i; 0 .. toMove)
{
move(range.back, tgt.front);
range.popBack();
tgt.popFront();
}
}
return range;
}
/// Ditto
Range remove
(SwapStrategy s = SwapStrategy.stable, Range, Offset...)
(Range range, Offset offset)
if (s == SwapStrategy.stable
&& isBidirectionalRange!Range
&& hasLvalueElements!Range
&& Offset.length >= 1)
{
auto result = range;
auto src = range, tgt = range;
size_t pos;
foreach (pass, i; offset)
{
static if (is(typeof(i[0])) && is(typeof(i[1])))
{
auto from = i[0], delta = i[1] - i[0];
}
else
{
auto from = i;
enum delta = 1;
}
static if (pass > 0)
{
import std.exception : enforce;
enforce(pos <= from,
"remove(): incorrect ordering of elements to remove");
for (; pos < from; ++pos, src.popFront(), tgt.popFront())
{
move(src.front, tgt.front);
}
}
else
{
src.popFrontExactly(from);
tgt.popFrontExactly(from);
pos = from;
}
// now skip source to the "to" position
src.popFrontExactly(delta);
result.popBackExactly(delta);
pos += delta;
}
// leftover move
moveAll(src, tgt);
return result;
}
///
@safe pure unittest
{
import std.typecons : tuple;
auto a = [ 0, 1, 2, 3, 4, 5 ];
assert(remove!(SwapStrategy.stable)(a, 1) == [ 0, 2, 3, 4, 5 ]);
a = [ 0, 1, 2, 3, 4, 5 ];
assert(remove!(SwapStrategy.stable)(a, 1, 3) == [ 0, 2, 4, 5] );
a = [ 0, 1, 2, 3, 4, 5 ];
assert(remove!(SwapStrategy.stable)(a, 1, tuple(3, 6)) == [ 0, 2 ]);
a = [ 0, 1, 2, 3, 4, 5 ];
assert(remove!(SwapStrategy.unstable)(a, 1) == [0, 5, 2, 3, 4]);
a = [ 0, 1, 2, 3, 4, 5 ];
assert(remove!(SwapStrategy.unstable)(a, tuple(1, 4)) == [0, 5, 4]);
}
@safe unittest
{
import std.exception : assertThrown;
import std.range;
// http://d.puremagic.com/issues/show_bug.cgi?id=10173
int[] test = iota(0, 10).array();
assertThrown(remove!(SwapStrategy.stable)(test, tuple(2, 4), tuple(1, 3)));
assertThrown(remove!(SwapStrategy.unstable)(test, tuple(2, 4), tuple(1, 3)));
assertThrown(remove!(SwapStrategy.stable)(test, 2, 4, 1, 3));
assertThrown(remove!(SwapStrategy.unstable)(test, 2, 4, 1, 3));
}
@safe unittest
{
import std.range;
int[] a = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ];
a = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ];
assert(remove!(SwapStrategy.stable)(a, 1) ==
[ 0, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]);
a = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ];
assert(remove!(SwapStrategy.unstable)(a, 0, 10) ==
[ 9, 1, 2, 3, 4, 5, 6, 7, 8 ]);
a = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ];
assert(remove!(SwapStrategy.unstable)(a, 0, tuple(9, 11)) ==
[ 8, 1, 2, 3, 4, 5, 6, 7 ]);
// http://d.puremagic.com/issues/show_bug.cgi?id=5224
a = [ 1, 2, 3, 4 ];
assert(remove!(SwapStrategy.unstable)(a, 2) ==
[ 1, 2, 4 ]);
a = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ];
assert(remove!(SwapStrategy.stable)(a, 1, 5) ==
[ 0, 2, 3, 4, 6, 7, 8, 9, 10 ]);
a = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ];
assert(remove!(SwapStrategy.stable)(a, 1, 3, 5)
== [ 0, 2, 4, 6, 7, 8, 9, 10]);
a = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ];
assert(remove!(SwapStrategy.stable)(a, 1, tuple(3, 5))
== [ 0, 2, 5, 6, 7, 8, 9, 10]);
a = iota(0, 10).array();
assert(remove!(SwapStrategy.unstable)(a, tuple(1, 4), tuple(6, 7))
== [0, 9, 8, 7, 4, 5]);
}
@safe unittest
{
// Issue 11576
auto arr = [1,2,3];
arr = arr.remove!(SwapStrategy.unstable)(2);
assert(arr == [1,2]);
}
@safe unittest
{
import std.range;
// Bug# 12889
int[1][] arr = [[0], [1], [2], [3], [4], [5], [6]];
auto orig = arr.dup;
foreach (i; iota(arr.length))
{
assert(orig == arr.remove!(SwapStrategy.unstable)(tuple(i,i)));
assert(orig == arr.remove!(SwapStrategy.stable)(tuple(i,i)));
}
}
/**
Reduces the length of the
$(REF_ALTTEXT bidirectional range, isBidirectionalRange, std,_range,primitives) $(D range) by removing
elements that satisfy $(D pred). If $(D s = SwapStrategy.unstable),
elements are moved from the right end of the range over the elements
to eliminate. If $(D s = SwapStrategy.stable) (the default),
elements are moved progressively to front such that their relative
order is preserved. Returns the filtered range.
Params:
range = a bidirectional ranges with lvalue elements
Returns:
the range with all of the elements where $(D pred) is $(D true)
removed
*/
Range remove(alias pred, SwapStrategy s = SwapStrategy.stable, Range)
(Range range)
if (isBidirectionalRange!Range
&& hasLvalueElements!Range)
{
import std.functional : unaryFun;
auto result = range;
static if (s != SwapStrategy.stable)
{
for (;!range.empty;)
{
if (!unaryFun!pred(range.front))
{
range.popFront();
continue;
}
move(range.back, range.front);
range.popBack();
result.popBack();
}
}
else
{
auto tgt = range;
for (; !range.empty; range.popFront())
{
if (unaryFun!(pred)(range.front))
{
// yank this guy
result.popBack();
continue;
}
// keep this guy
move(range.front, tgt.front);
tgt.popFront();
}
}
return result;
}
///
@safe unittest
{
static immutable base = [1, 2, 3, 2, 4, 2, 5, 2];
int[] arr = base[].dup;
// using a string-based predicate
assert(remove!("a == 2")(arr) == [ 1, 3, 4, 5 ]);
// The original array contents have been modified,
// so we need to reset it to its original state.
// The length is unmodified however.
arr[] = base[];
// using a lambda predicate
assert(remove!(a => a == 2)(arr) == [ 1, 3, 4, 5 ]);
}
@safe unittest
{
int[] a = [ 1, 2, 3, 2, 3, 4, 5, 2, 5, 6 ];
assert(remove!("a == 2", SwapStrategy.unstable)(a) ==
[ 1, 6, 3, 5, 3, 4, 5 ]);
a = [ 1, 2, 3, 2, 3, 4, 5, 2, 5, 6 ];
assert(remove!("a == 2", SwapStrategy.stable)(a) ==
[ 1, 3, 3, 4, 5, 5, 6 ]);
}
@nogc @system unittest
{
// @nogc test
int[10] arr = [0,1,2,3,4,5,6,7,8,9];
alias pred = e => e < 5;
auto r = arr[].remove!(SwapStrategy.unstable)(0);
r = r.remove!(SwapStrategy.stable)(0);
r = r.remove!(pred, SwapStrategy.unstable);
r = r.remove!(pred, SwapStrategy.stable);
}
@safe unittest
{
import std.algorithm.comparison : min;
import std.algorithm.searching : all, any;
import std.algorithm.sorting : isStrictlyMonotonic;
import std.array : array;
import std.meta : AliasSeq;
import std.range : iota, only;
import std.typecons : Tuple;
alias S = Tuple!(int[2]);
S[] soffsets;
foreach (start; 0 .. 5)
foreach (end; min(start+1,5) .. 5)
soffsets ~= S([start,end]);
alias D = Tuple!(int[2],int[2]);
D[] doffsets;
foreach (start1; 0 .. 10)
foreach (end1; min(start1+1,10) .. 10)
foreach (start2; end1 .. 10)
foreach (end2; min(start2+1,10) .. 10)
doffsets ~= D([start1,end1],[start2,end2]);
alias T = Tuple!(int[2],int[2],int[2]);
T[] toffsets;
foreach (start1; 0 .. 15)
foreach (end1; min(start1+1,15) .. 15)
foreach (start2; end1 .. 15)
foreach (end2; min(start2+1,15) .. 15)
foreach (start3; end2 .. 15)
foreach (end3; min(start3+1,15) .. 15)
toffsets ~= T([start1,end1],[start2,end2],[start3,end3]);
static void verify(O...)(int[] r, int len, int removed, bool stable, O offsets)
{
assert(r.length == len - removed);
assert(!stable || r.isStrictlyMonotonic);
assert(r.all!(e => all!(o => e < o[0] || e >= o[1])(offsets.only)));
}
foreach (offsets; AliasSeq!(soffsets,doffsets,toffsets))
foreach (os; offsets)
{
int len = 5*os.length;
auto w = iota(0, len).array;
auto x = w.dup;
auto y = w.dup;
auto z = w.dup;
alias pred = e => any!(o => o[0] <= e && e < o[1])(only(os.expand));
w = w.remove!(SwapStrategy.unstable)(os.expand);
x = x.remove!(SwapStrategy.stable)(os.expand);
y = y.remove!(pred, SwapStrategy.unstable);
z = z.remove!(pred, SwapStrategy.stable);
int removed;
foreach (o; os)
removed += o[1] - o[0];
verify(w, len, removed, false, os[]);
verify(x, len, removed, true, os[]);
verify(y, len, removed, false, os[]);
verify(z, len, removed, true, os[]);
assert(w == y);
assert(x == z);
}
}
// reverse
/**
Reverses $(D r) in-place. Performs $(D r.length / 2) evaluations of $(D
swap).
Params:
r = a $(REF_ALTTEXT bidirectional range, isBidirectionalRange, std,range,primitives)
with swappable elements or a random access range with a length member
See_Also:
$(HTTP sgi.com/tech/stl/_reverse.html, STL's _reverse), $(REF retro, std,range) for a lazy reversed range view
*/
void reverse(Range)(Range r)
if (isBidirectionalRange!Range && !isRandomAccessRange!Range
&& hasSwappableElements!Range)
{
while (!r.empty)
{
swap(r.front, r.back);
r.popFront();
if (r.empty) break;
r.popBack();
}
}
///
@safe unittest
{
int[] arr = [ 1, 2, 3 ];
reverse(arr);
assert(arr == [ 3, 2, 1 ]);
}
///ditto
void reverse(Range)(Range r)
if (isRandomAccessRange!Range && hasLength!Range)
{
//swapAt is in fact the only way to swap non lvalue ranges
immutable last = r.length-1;
immutable steps = r.length/2;
for (size_t i = 0; i < steps; i++)
{
r.swapAt(i, last-i);
}
}
@safe unittest
{
int[] range = null;
reverse(range);
range = [ 1 ];
reverse(range);
assert(range == [1]);
range = [1, 2];
reverse(range);
assert(range == [2, 1]);
range = [1, 2, 3];
reverse(range);
assert(range == [3, 2, 1]);
}
/**
Reverses $(D r) in-place, where $(D r) is a narrow string (having
elements of type $(D char) or $(D wchar)). UTF sequences consisting of
multiple code units are preserved properly.
Params:
s = a narrow string
Bugs:
When passing a sting with unicode modifiers on characters, such as $(D \u0301),
this function will not properly keep the position of the modifier. For example,
reversing $(D ba\u0301d) ("bád") will result in d\u0301ab ("d́ab") instead of
$(D da\u0301b) ("dáb").
*/
void reverse(Char)(Char[] s)
if (isNarrowString!(Char[]) && !is(Char == const) && !is(Char == immutable))
{
import std.string : representation;
import std.utf : stride;
auto r = representation(s);
for (size_t i = 0; i < s.length; )
{
immutable step = stride(s, i);
if (step > 1)
{
.reverse(r[i .. i + step]);
i += step;
}
else
{
++i;
}
}
reverse(r);
}
///
@safe unittest
{
char[] arr = "hello\U00010143\u0100\U00010143".dup;
reverse(arr);
assert(arr == "\U00010143\u0100\U00010143olleh");
}
@safe unittest
{
void test(string a, string b)
{
auto c = a.dup;
reverse(c);
assert(c == b, c ~ " != " ~ b);
}
test("a", "a");
test(" ", " ");
test("\u2029", "\u2029");
test("\u0100", "\u0100");
test("\u0430", "\u0430");
test("\U00010143", "\U00010143");
test("abcdefcdef", "fedcfedcba");
test("hello\U00010143\u0100\U00010143", "\U00010143\u0100\U00010143olleh");
}
/**
The strip group of functions allow stripping of either leading, trailing,
or both leading and trailing elements.
The $(D stripLeft) function will strip the $(D front) of the range,
the $(D stripRight) function will strip the $(D back) of the range,
while the $(D strip) function will strip both the $(D front) and $(D back)
of the range.
Note that the $(D strip) and $(D stripRight) functions require the range to
be a $(LREF BidirectionalRange) range.
All of these functions come in two varieties: one takes a target element,
where the range will be stripped as long as this element can be found.
The other takes a lambda predicate, where the range will be stripped as
long as the predicate returns true.
Params:
range = a $(REF_ALTTEXT bidirectional range, isBidirectionalRange, std,range,primitives)
or $(REF_ALTTEXT input range, isInputRange, std,range,primitives)
element = the elements to remove
Returns:
a Range with all of range except element at the start and end
*/
Range strip(Range, E)(Range range, E element)
if (isBidirectionalRange!Range && is(typeof(range.front == element) : bool))
{
return range.stripLeft(element).stripRight(element);
}
/// ditto
Range strip(alias pred, Range)(Range range)
if (isBidirectionalRange!Range && is(typeof(pred(range.back)) : bool))
{
return range.stripLeft!pred().stripRight!pred();
}
/// ditto
Range stripLeft(Range, E)(Range range, E element)
if (isInputRange!Range && is(typeof(range.front == element) : bool))
{
import std.algorithm.searching : find;
return find!((auto ref a) => a != element)(range);
}
/// ditto
Range stripLeft(alias pred, Range)(Range range)
if (isInputRange!Range && is(typeof(pred(range.front)) : bool))
{
import std.algorithm.searching : find;
import std.functional : not;
return find!(not!pred)(range);
}
/// ditto
Range stripRight(Range, E)(Range range, E element)
if (isBidirectionalRange!Range && is(typeof(range.back == element) : bool))
{
for (; !range.empty; range.popBack())
{
if (range.back != element)
break;
}
return range;
}
/// ditto
Range stripRight(alias pred, Range)(Range range)
if (isBidirectionalRange!Range && is(typeof(pred(range.back)) : bool))
{
for (; !range.empty; range.popBack())
{
if (!pred(range.back))
break;
}
return range;
}
/// Strip leading and trailing elements equal to the target element.
@safe pure unittest
{
assert(" foobar ".strip(' ') == "foobar");
assert("00223.444500".strip('0') == "223.4445");
assert("ëëêéüŗōpéêëë".strip('ë') == "êéüŗōpéê");
assert([1, 1, 0, 1, 1].strip(1) == [0]);
assert([0.0, 0.01, 0.01, 0.0].strip(0).length == 2);
}
/// Strip leading and trailing elements while the predicate returns true.
@safe pure unittest
{
assert(" foobar ".strip!(a => a == ' ')() == "foobar");
assert("00223.444500".strip!(a => a == '0')() == "223.4445");
assert("ëëêéüŗōpéêëë".strip!(a => a == 'ë')() == "êéüŗōpéê");
assert([1, 1, 0, 1, 1].strip!(a => a == 1)() == [0]);
assert([0.0, 0.01, 0.5, 0.6, 0.01, 0.0].strip!(a => a < 0.4)().length == 2);
}
/// Strip leading elements equal to the target element.
@safe pure unittest
{
assert(" foobar ".stripLeft(' ') == "foobar ");
assert("00223.444500".stripLeft('0') == "223.444500");
assert("ůůűniçodêéé".stripLeft('ů') == "űniçodêéé");
assert([1, 1, 0, 1, 1].stripLeft(1) == [0, 1, 1]);
assert([0.0, 0.01, 0.01, 0.0].stripLeft(0).length == 3);
}
/// Strip leading elements while the predicate returns true.
@safe pure unittest
{
assert(" foobar ".stripLeft!(a => a == ' ')() == "foobar ");
assert("00223.444500".stripLeft!(a => a == '0')() == "223.444500");
assert("ůůűniçodêéé".stripLeft!(a => a == 'ů')() == "űniçodêéé");
assert([1, 1, 0, 1, 1].stripLeft!(a => a == 1)() == [0, 1, 1]);
assert([0.0, 0.01, 0.10, 0.5, 0.6].stripLeft!(a => a < 0.4)().length == 2);
}
/// Strip trailing elements equal to the target element.
@safe pure unittest
{
assert(" foobar ".stripRight(' ') == " foobar");
assert("00223.444500".stripRight('0') == "00223.4445");
assert("ùniçodêéé".stripRight('é') == "ùniçodê");
assert([1, 1, 0, 1, 1].stripRight(1) == [1, 1, 0]);
assert([0.0, 0.01, 0.01, 0.0].stripRight(0).length == 3);
}
/// Strip trailing elements while the predicate returns true.
@safe pure unittest
{
assert(" foobar ".stripRight!(a => a == ' ')() == " foobar");
assert("00223.444500".stripRight!(a => a == '0')() == "00223.4445");
assert("ùniçodêéé".stripRight!(a => a == 'é')() == "ùniçodê");
assert([1, 1, 0, 1, 1].stripRight!(a => a == 1)() == [1, 1, 0]);
assert([0.0, 0.01, 0.10, 0.5, 0.6].stripRight!(a => a > 0.4)().length == 3);
}
// swap
/**
Swaps $(D lhs) and $(D rhs). The instances $(D lhs) and $(D rhs) are moved in
memory, without ever calling $(D opAssign), nor any other function. $(D T)
need not be assignable at all to be swapped.
If $(D lhs) and $(D rhs) reference the same instance, then nothing is done.
$(D lhs) and $(D rhs) must be mutable. If $(D T) is a struct or union, then
its fields must also all be (recursively) mutable.
Params:
lhs = Data to be swapped with $(D rhs).
rhs = Data to be swapped with $(D lhs).
*/
void swap(T)(ref T lhs, ref T rhs) @trusted pure nothrow @nogc
if (isBlitAssignable!T && !is(typeof(lhs.proxySwap(rhs))))
{
import std.traits : hasAliasing, hasElaborateAssign, isAssignable,
isStaticArray;
static if (hasAliasing!T) if (!__ctfe)
{
import std.exception : doesPointTo;
assert(!doesPointTo(lhs, lhs), "Swap: lhs internal pointer.");
assert(!doesPointTo(rhs, rhs), "Swap: rhs internal pointer.");
assert(!doesPointTo(lhs, rhs), "Swap: lhs points to rhs.");
assert(!doesPointTo(rhs, lhs), "Swap: rhs points to lhs.");
}
static if (hasElaborateAssign!T || !isAssignable!T)
{
if (&lhs != &rhs)
{
// For structs with non-trivial assignment, move memory directly
ubyte[T.sizeof] t = void;
auto a = (cast(ubyte*) &lhs)[0 .. T.sizeof];
auto b = (cast(ubyte*) &rhs)[0 .. T.sizeof];
t[] = a[];
a[] = b[];
b[] = t[];
}
}
else
{
//Avoid assigning overlapping arrays. Dynamic arrays are fine, because
//it's their ptr and length properties which get assigned rather
//than their elements when assigning them, but static arrays are value
//types and therefore all of their elements get copied as part of
//assigning them, which would be assigning overlapping arrays if lhs
//and rhs were the same array.
static if (isStaticArray!T)
{
if (lhs.ptr == rhs.ptr)
return;
}
// For non-struct types, suffice to do the classic swap
auto tmp = lhs;
lhs = rhs;
rhs = tmp;
}
}
///
@safe unittest
{
// Swapping POD (plain old data) types:
int a = 42, b = 34;
swap(a, b);
assert(a == 34 && b == 42);
// Swapping structs with indirection:
static struct S { int x; char c; int[] y; }
S s1 = { 0, 'z', [ 1, 2 ] };
S s2 = { 42, 'a', [ 4, 6 ] };
swap(s1, s2);
assert(s1.x == 42);
assert(s1.c == 'a');
assert(s1.y == [ 4, 6 ]);
assert(s2.x == 0);
assert(s2.c == 'z');
assert(s2.y == [ 1, 2 ]);
// Immutables cannot be swapped:
immutable int imm1 = 1, imm2 = 2;
static assert(!__traits(compiles, swap(imm1, imm2)));
int c = imm1 + 0;
int d = imm2 + 0;
swap(c, d);
assert(c == 2);
assert(d == 1);
}
///
@safe unittest
{
// Non-copyable types can still be swapped.
static struct NoCopy
{
this(this) { assert(0); }
int n;
string s;
}
NoCopy nc1, nc2;
nc1.n = 127; nc1.s = "abc";
nc2.n = 513; nc2.s = "uvwxyz";
swap(nc1, nc2);
assert(nc1.n == 513 && nc1.s == "uvwxyz");
assert(nc2.n == 127 && nc2.s == "abc");
swap(nc1, nc1);
swap(nc2, nc2);
assert(nc1.n == 513 && nc1.s == "uvwxyz");
assert(nc2.n == 127 && nc2.s == "abc");
// Types containing non-copyable fields can also be swapped.
static struct NoCopyHolder
{
NoCopy noCopy;
}
NoCopyHolder h1, h2;
h1.noCopy.n = 31; h1.noCopy.s = "abc";
h2.noCopy.n = 65; h2.noCopy.s = null;
swap(h1, h2);
assert(h1.noCopy.n == 65 && h1.noCopy.s == null);
assert(h2.noCopy.n == 31 && h2.noCopy.s == "abc");
swap(h1, h1);
swap(h2, h2);
assert(h1.noCopy.n == 65 && h1.noCopy.s == null);
assert(h2.noCopy.n == 31 && h2.noCopy.s == "abc");
// Const types cannot be swapped.
const NoCopy const1, const2;
assert(const1.n == 0 && const2.n == 0);
static assert(!__traits(compiles, swap(const1, const2)));
}
@safe unittest
{
//Bug# 4789
int[1] s = [1];
swap(s, s);
int[3] a = [1, 2, 3];
swap(a[1], a[2]);
assert(a == [1, 3, 2]);
}
@safe unittest
{
static struct NoAssign
{
int i;
void opAssign(NoAssign) @disable;
}
auto s1 = NoAssign(1);
auto s2 = NoAssign(2);
swap(s1, s2);
assert(s1.i == 2);
assert(s2.i == 1);
}
@safe unittest
{
struct S
{
const int i;
int i2 = 2;
int i3 = 3;
}
S s;
static assert(!__traits(compiles, swap(s, s)));
swap(s.i2, s.i3);
assert(s.i2 == 3);
assert(s.i3 == 2);
}
@safe unittest
{
//11853
import std.traits : isAssignable;
alias T = Tuple!(int, double);
static assert(isAssignable!T);
}
@safe unittest
{
// 12024
import std.datetime;
SysTime a, b;
swap(a, b);
}
@system unittest // 9975
{
import std.exception : doesPointTo, mayPointTo;
static struct S2
{
union
{
size_t sz;
string s;
}
}
S2 a , b;
a.sz = -1;
assert(!doesPointTo(a, b));
assert( mayPointTo(a, b));
swap(a, b);
//Note: we can catch an error here, because there is no RAII in this test
import std.exception : assertThrown;
void* p, pp;
p = &p;
assertThrown!Error(move(p));
assertThrown!Error(move(p, pp));
assertThrown!Error(swap(p, pp));
}
@system unittest
{
static struct A
{
int* x;
this(this) { x = new int; }
}
A a1, a2;
swap(a1, a2);
static struct B
{
int* x;
void opAssign(B) { x = new int; }
}
B b1, b2;
swap(b1, b2);
}
/// ditto
void swap(T)(ref T lhs, ref T rhs)
if (is(typeof(lhs.proxySwap(rhs))))
{
lhs.proxySwap(rhs);
}
/**
Swaps two elements in-place of a range `r`,
specified by their indices `i1` and `i2`.
Params:
r = a range with swappable elements
i1 = first index
i2 = second index
*/
void swapAt(R)(auto ref R r, size_t i1, size_t i2)
{
static if (is(typeof(&r.swapAt)))
{
r.swapAt(i1, i2);
}
else static if (is(typeof(&r[i1])))
{
swap(r[i1], r[i2]);
}
else
{
if (i1 == i2) return;
auto t1 = r.moveAt(i1);
auto t2 = r.moveAt(i2);
r[i2] = t1;
r[i1] = t2;
}
}
///
pure @safe nothrow unittest
{
import std.algorithm.comparison : equal;
auto a = [1, 2, 3];
a.swapAt(1, 2);
assert(a.equal([1, 3, 2]));
}
pure @safe nothrow unittest
{
import std.algorithm.comparison : equal;
auto a = [4, 5, 6];
a.swapAt(1, 1);
assert(a.equal([4, 5, 6]));
}
pure @safe nothrow unittest
{
// test non random access ranges
import std.algorithm.comparison : equal;
import std.array : array;
char[] b = ['a', 'b', 'c'];
b.swapAt(1, 2);
assert(b.equal(['a', 'c', 'b']));
int[3] c = [1, 2, 3];
c.swapAt(1, 2);
assert(c.array.equal([1, 3, 2]));
// opIndex returns lvalue
struct RandomIndexType(T)
{
T payload;
@property ref auto opIndex(size_t i)
{
return payload[i];
}
}
auto d = RandomIndexType!(int[])([4, 5, 6]);
d.swapAt(1, 2);
assert(d.payload.equal([4, 6, 5]));
// custom moveAt and opIndexAssign
struct RandomMoveAtType(T)
{
T payload;
ElementType!T moveAt(size_t i)
{
return payload.moveAt(i);
}
void opIndexAssign(ElementType!T val, size_t idx)
{
payload[idx] = val;
}
}
auto e = RandomMoveAtType!(int[])([7, 8, 9]);
e.swapAt(1, 2);
assert(e.payload.equal([7, 9, 8]));
// custom swapAt
struct RandomSwapAtType(T)
{
T payload;
void swapAt(size_t i)
{
return payload.swapAt(i);
}
}
auto f = RandomMoveAtType!(int[])([10, 11, 12]);
swapAt(f, 1, 2);
assert(f.payload.equal([10, 12, 11]));
}
private void swapFront(R1, R2)(R1 r1, R2 r2)
if (isInputRange!R1 && isInputRange!R2)
{
static if (is(typeof(swap(r1.front, r2.front))))
{
swap(r1.front, r2.front);
}
else
{
auto t1 = moveFront(r1), t2 = moveFront(r2);
r1.front = move(t2);
r2.front = move(t1);
}
}
// swapRanges
/**
Swaps all elements of $(D r1) with successive elements in $(D r2).
Returns a tuple containing the remainder portions of $(D r1) and $(D
r2) that were not swapped (one of them will be empty). The ranges may
be of different types but must have the same element type and support
swapping.
Params:
r1 = an $(REF_ALTTEXT input _range, isInputRange, std,_range,primitives)
with swappable elements
r2 = an $(REF_ALTTEXT input _range, isInputRange, std,_range,primitives)
with swappable elements
Returns:
Tuple containing the remainder portions of r1 and r2 that were not swapped
*/
Tuple!(InputRange1, InputRange2)
swapRanges(InputRange1, InputRange2)(InputRange1 r1, InputRange2 r2)
if (hasSwappableElements!InputRange1 && hasSwappableElements!InputRange2
&& is(ElementType!InputRange1 == ElementType!InputRange2))
{
for (; !r1.empty && !r2.empty; r1.popFront(), r2.popFront())
{
swap(r1.front, r2.front);
}
return tuple(r1, r2);
}
///
@safe unittest
{
import std.range : empty;
int[] a = [ 100, 101, 102, 103 ];
int[] b = [ 0, 1, 2, 3 ];
auto c = swapRanges(a[1 .. 3], b[2 .. 4]);
assert(c[0].empty && c[1].empty);
assert(a == [ 100, 2, 3, 103 ]);
assert(b == [ 0, 1, 101, 102 ]);
}
/**
Initializes each element of $(D range) with $(D value).
Assumes that the elements of the range are uninitialized.
This is of interest for structs that
define copy constructors (for all other types, $(LREF fill) and
uninitializedFill are equivalent).
Params:
range = An
$(REF_ALTTEXT input _range, isInputRange, std,_range,primitives)
that exposes references to its elements and has assignable
elements
value = Assigned to each element of range
See_Also:
$(LREF fill)
$(LREF initializeAll)
*/
void uninitializedFill(Range, Value)(Range range, Value value)
if (isInputRange!Range && hasLvalueElements!Range && is(typeof(range.front = value)))
{
import std.traits : hasElaborateAssign;
alias T = ElementType!Range;
static if (hasElaborateAssign!T)
{
import std.conv : emplaceRef;
// Must construct stuff by the book
for (; !range.empty; range.popFront())
emplaceRef!T(range.front, value);
}
else
// Doesn't matter whether fill is initialized or not
return fill(range, value);
}
///
nothrow @system unittest
{
import core.stdc.stdlib : malloc, free;
auto s = (cast(int*) malloc(5 * int.sizeof))[0 .. 5];
uninitializedFill(s, 42);
assert(s == [ 42, 42, 42, 42, 42 ]);
scope(exit) free(s.ptr);
}
| D |
/*
TEST_OUTPUT:
---
fail_compilation/ice15127.d(17): Error: basic type expected, not struct
fail_compilation/ice15127.d(17): Error: identifier expected for template value parameter
fail_compilation/ice15127.d(17): Error: found 'struct' when expecting ')'
fail_compilation/ice15127.d(17): Error: found 'ExampleStruct' when expecting '='
fail_compilation/ice15127.d(17): Error: semicolon expected following auto declaration, not `)`
fail_compilation/ice15127.d(17): Error: declaration expected, not `)`
---
*/
struct ExampleStruct(S) { }
template ExampleTemplate(K)
{
enum ExampleTemplate(struct ExampleStruct(K)) = K;
}
void main() {}
| D |
.build_1i2o2_lin33_48k_farenddsp/_m_vocalfusion/src/dfu_control.xc.d .build_1i2o2_lin33_48k_farenddsp/_m_vocalfusion/src/dfu_control.xc.o .build_1i2o2_lin33_48k_farenddsp/_m_vocalfusion/src/dfu_control.xc.pca.xml: C:/Users/user/workspace/module_vocalfusion/src/dfu_control.xc
| D |
a stupid foolish person
| D |
module logic.world.World;
import std.file;
import std.json;
import std.math;
import std.random;
import logic.world.Tile;
/**
* The world, mostly as a two-dimensional array of tiles
*/
class World {
Tile[][] tiles; ///The tiles of the world
alias tiles this; //Allows the world to be indexed to get tiles at coordinates
/**
* Constructs a new world, using the given world parameters
* Randomly places ncontinents land tiles, then places land tiles
* next to existing land with a higher chance the more tiles there are surrounding
* until the world is about one third land
* TODO: Add config file to determine worldgen parameters
* TODO: Make continent generation more evenly distributed by bounding boxes
*/
this(int ncontinents, int nrows, int ncols){
Tile[] blankArray;
foreach(x; 0..nrows) {
tiles ~= blankArray.dup;
foreach(y; 0..ncols) {
tiles[x] ~= new Tile(Terrain.WATER, new Coordinate(x, y));
}
}
foreach(i; 0..ncontinents) {
tiles[uniform(0, nrows - 1)][uniform(0, ncols - 1)].terrain = Terrain.LAND;
}
int generated = ncontinents;
double correlation;
while (generated < (nrows * ncols) / 3) {
foreach(x; 0..tiles.length) {
foreach(y; 0..tiles[x].length) {
if(tiles[x][y].terrain != Terrain.LAND) {
correlation = 0;
if(y < tiles[x].length - 1 && tiles[x][y+1].terrain == Terrain.LAND) {
correlation += 0.20;
}
if(y > 0 && tiles[x][y-1].terrain == Terrain.LAND) {
correlation += 0.20;
}
if(x < tiles.length - 1 && tiles[x+1][y].terrain == Terrain.LAND) {
correlation += 0.20;
}
if(x > 0 && tiles[x-1][y].terrain == Terrain.LAND) {
correlation += 0.20;
}
if(uniform(0.0, 1.0) < correlation) {
tiles[x][y].terrain = Terrain.LAND;
generated += 1;
}
}
}
}
}
}
/**
* Creates the world based on a custom scenario that is json encoded
*/
this(string jsonFilename) {
string fileText = cast(string)read!string(jsonFilename);
JSONValue json = parseJSON(fileText);
for(int x; x < json["world"]["terrain"].array.length; x++) {
tiles ~= null;
for(int y; y < json["world"]["terrain"][x].array.length; y++) {
tiles[x] ~= new Tile(cast(Terrain)(cast(int)json["world"]["terrain"][y][x].integer), new Coordinate(x, y));
}
}
}
/**
* Returns the tile in the world at the given coordinate
*/
Tile getTileAt(Coordinate location) {
if(location.x <= tiles.length - 1
&& location.x >= 0
&& location.y <= tiles[location.x].length - 1
&& location.y >= 0) {
return tiles[location.x][location.y];
}
return null;
}
} | D |
/*
* Copyright (C) 2019, HuntLabs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
module hunt.database.driver.postgresql.impl.PostgreSQLPoolImpl;
import hunt.database.driver.postgresql.impl.PostgreSQLConnectionFactory;
import hunt.database.driver.postgresql.impl.PostgreSQLConnectionImpl;
import hunt.database.driver.postgresql.PostgreSQLConnectOptions;
import hunt.database.driver.postgresql.PostgreSQLPool;
import hunt.database.base.impl.Connection;
import hunt.database.base.impl.PoolBase;
import hunt.database.base.impl.SqlConnectionImpl;
import hunt.database.base.PoolOptions;
import hunt.database.base.SqlConnection;
/**
* Todo :
*
* - handle timeout when acquiring a connection
* - for per statement pooling, have several physical connection and use the less busy one to avoid head of line blocking effect
*
* @author <a href="mailto:[email protected]">Julien Viet</a>
* @author <a href="mailto:[email protected]">Emad Alblueshi</a>
*/
class PgPoolImpl : PoolBase!(PgPoolImpl), PgPool {
private PgConnectionFactory factory;
this(PgConnectOptions connectOptions, PoolOptions poolOptions) {
super(poolOptions);
this.factory = new PgConnectionFactory(connectOptions);
}
override
void connect(AsyncDbConnectionHandler completionHandler) {
factory.connectAndInit(completionHandler);
}
override
protected SqlConnection wrap(DbConnection conn) {
return new PgConnectionImpl(factory, conn);
}
override
protected void doClose() {
factory.close();
super.doClose();
}
}
| D |
module UnrealScript.Core.Property;
import ScriptClasses;
import UnrealScript.Helpers;
import UnrealScript.Core.Field;
extern(C++) interface Property : Field
{
public extern(D):
private static __gshared ScriptClass mStaticClass;
@property final static ScriptClass StaticClass() { mixin(MGSCC("Class Core.Property")); }
private static __gshared Property mDefaultProperties;
@property final static Property DefaultProperties() { mixin(MGDPC("Property", "Property Core.Default__Property")); }
}
| D |
/Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/Eureka.build/Objects-normal/x86_64/LabelRow.o : /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Validations/RuleURL.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Validations/RuleRequired.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Validations/RuleRange.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/CellType.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/RowControllerType.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/RowType.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/SelectableRowType.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/InlineRowType.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/PresenterRowType.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/Core.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Validations/RuleClosure.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Validations/RuleLength.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Validations/RuleEmail.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/Cell.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/Form.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/Validation.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/Section.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/SelectableSection.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Validations/RuleRegExp.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/Controllers/SelectorAlertController.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/Controllers/SelectorViewController.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/Controllers/MultipleSelectorViewController.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/Common/DecimalFormatter.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/Common/Protocols.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/RowProtocols.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/SwipeActions.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/Helpers.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/Operators.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/ButtonRowWithPresent.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/HeaderFooterView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/NavigationAccessoryView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/Row.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/TextAreaRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/SegmentedRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/Common/FieldRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/Common/DateInlineFieldRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/Common/DateFieldRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/DateInlineRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/PickerInlineRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/BaseRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/DateRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/SwitchRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/PushRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/CheckRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/SelectableRows/ListCheckRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/LabelRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/ButtonRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Validations/RuleEqualsToRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/SliderRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/PickerRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/DatePickerRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/StepperRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/Common/SelectorRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/MultipleSelectorRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/Common/GenericMultipleSelectorRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/PopoverSelectorRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/FieldsRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/Common/OptionsRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/Common/AlertOptionsRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/ActionSheetRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/AlertRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/PickerInputRow.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Target\ Support\ Files/Eureka/Eureka-umbrella.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/Eureka.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/Eureka.build/Objects-normal/x86_64/LabelRow~partial.swiftmodule : /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Validations/RuleURL.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Validations/RuleRequired.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Validations/RuleRange.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/CellType.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/RowControllerType.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/RowType.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/SelectableRowType.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/InlineRowType.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/PresenterRowType.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/Core.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Validations/RuleClosure.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Validations/RuleLength.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Validations/RuleEmail.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/Cell.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/Form.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/Validation.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/Section.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/SelectableSection.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Validations/RuleRegExp.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/Controllers/SelectorAlertController.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/Controllers/SelectorViewController.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/Controllers/MultipleSelectorViewController.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/Common/DecimalFormatter.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/Common/Protocols.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/RowProtocols.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/SwipeActions.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/Helpers.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/Operators.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/ButtonRowWithPresent.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/HeaderFooterView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/NavigationAccessoryView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/Row.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/TextAreaRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/SegmentedRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/Common/FieldRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/Common/DateInlineFieldRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/Common/DateFieldRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/DateInlineRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/PickerInlineRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/BaseRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/DateRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/SwitchRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/PushRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/CheckRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/SelectableRows/ListCheckRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/LabelRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/ButtonRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Validations/RuleEqualsToRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/SliderRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/PickerRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/DatePickerRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/StepperRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/Common/SelectorRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/MultipleSelectorRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/Common/GenericMultipleSelectorRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/PopoverSelectorRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/FieldsRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/Common/OptionsRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/Common/AlertOptionsRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/ActionSheetRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/AlertRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/PickerInputRow.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Target\ Support\ Files/Eureka/Eureka-umbrella.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/Eureka.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/Eureka.build/Objects-normal/x86_64/LabelRow~partial.swiftdoc : /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Validations/RuleURL.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Validations/RuleRequired.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Validations/RuleRange.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/CellType.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/RowControllerType.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/RowType.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/SelectableRowType.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/InlineRowType.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/PresenterRowType.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/Core.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Validations/RuleClosure.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Validations/RuleLength.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Validations/RuleEmail.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/Cell.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/Form.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/Validation.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/Section.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/SelectableSection.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Validations/RuleRegExp.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/Controllers/SelectorAlertController.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/Controllers/SelectorViewController.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/Controllers/MultipleSelectorViewController.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/Common/DecimalFormatter.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/Common/Protocols.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/RowProtocols.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/SwipeActions.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/Helpers.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/Operators.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/ButtonRowWithPresent.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/HeaderFooterView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/NavigationAccessoryView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/Row.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/TextAreaRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/SegmentedRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/Common/FieldRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/Common/DateInlineFieldRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/Common/DateFieldRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/DateInlineRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/PickerInlineRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Core/BaseRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/DateRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/SwitchRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/PushRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/CheckRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/SelectableRows/ListCheckRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/LabelRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/ButtonRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Validations/RuleEqualsToRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/SliderRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/PickerRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/DatePickerRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/StepperRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/Common/SelectorRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/MultipleSelectorRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/Common/GenericMultipleSelectorRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/PopoverSelectorRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/FieldsRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/Common/OptionsRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/Common/AlertOptionsRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/ActionSheetRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/AlertRow.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Eureka/Source/Rows/PickerInputRow.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Target\ Support\ Files/Eureka/Eureka-umbrella.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/Eureka.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
| D |
private import Camera, Image, OpenGL, Scene, Sol;
int main(char[][] args)
{
scene = new Scene();
image = new Image();
camera = new Camera();
int argc = 0;
if(SolInit(args))
{
camera.Init();
glutInit(&argc,null);
OpenGLInit();
scene.Build();
glutMainLoop();
}
return 0;
}
| D |
FUNC VOID NuggetSack_01()
{
PutMsg("Otrzymano 25 bryłek rudy.","font_default.tga",RGBAToZColor(255,255,255,255),8,"");
Snd_Play ("GoldSack");
CreateInvItems(hero,ItMiNugget,25);
};
FUNC VOID GoldSack_01()
{
PutMsg("Otrzymano 25 monet.","font_default.tga",RGBAToZColor(255,255,255,255),8,"");
Snd_Play ("GoldSack");
CreateInvItems(hero,ItMi_Stuff_OldCoin_01,25);
};
FUNC VOID NuggetSack_02()
{
PutMsg("Otrzymano 50 bryłek rudy.","font_default.tga",RGBAToZColor(255,255,255,255),8,"");
Snd_Play ("GoldSack");
CreateInvItems(hero,ItMiNugget,50);
};
FUNC VOID NuggetSack_03()
{
PutMsg("Otrzymano 100 bryłek rudy.","font_default.tga",RGBAToZColor(255,255,255,255),8,"");
Snd_Play ("GoldSack");
CreateInvItems(hero,ItMiNugget,100);
};
/******************************************************************************************/
INSTANCE ItMi_NuggetSack_01 (C_Item)
{
name = "Sakiewka";
mainflag = ITEM_KAT_NONE;
flags = ITEM_MULTI;
value = 25;
visual = "ItMi_Pocket.3DS";
material = MAT_LEATHER;
description = name;
TEXT[4] = "W sakwie znajduje się kilka bryłek.";
scemeName = "MAPSEALED";
on_state[0] = NuggetSack_01;
};
INSTANCE ItMi_NuggetSack_02 (C_Item)
{
name = "Sakiewka";
mainflag = ITEM_KAT_NONE;
flags = ITEM_MULTI;
value = 50;
visual = "ItMi_Pocket.3DS";
material = MAT_LEATHER;
description = name;
TEXT[4] = "W sakwa jest ciężka od bryłek.";
scemeName = "MAPSEALED";
on_state[0] = NuggetSack_02;
};
INSTANCE ItMi_NuggetSack_03 (C_Item)
{
name = "Sakiewka";
mainflag = ITEM_KAT_NONE;
flags = ITEM_MULTI;
value = 100;
visual = "ItMi_Pocket.3DS";
material = MAT_LEATHER;
description = name;
TEXT[4] = "W sakwa jest wypełniona po brzegi rudą!";
scemeName = "MAPSEALED";
on_state[0] = NuggetSack_03;
};
INSTANCE ItMi_GoldtSack_01 (C_Item)
{
name = "Sakiewka";
mainflag = ITEM_KAT_NONE;
flags = ITEM_MULTI;
value = 1;
visual = "ItMi_Pocket.3DS";
material = MAT_LEATHER;
description = name;
TEXT[4] = "W sakwie znajduje się kilka monet.";
scemeName = "MAPSEALED";
on_state[0] = GoldSack_01;
}; | D |
/Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/CoreML_test.build/Debug-iphonesimulator/CoreML_test.build/Objects-normal/x86_64/MainRouterImpl.o : /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/CoreML_test.build/Debug-iphonesimulator/CoreML_test.build/DerivedSources/CoreMLGenerated/Inceptionv3/Inceptionv3.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/CoreML_test.build/Debug-iphonesimulator/CoreML_test.build/DerivedSources/CoreMLGenerated/Alphanum_28x28/Alphanum_28x28.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/AppDelegate.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/Map_/MapAnnotation/Artwork.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Common/Views/KerningLabel.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/OCR/OCRPresenterImpl.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/Main/MainPresenterImpl.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/Map_/MapPresenterImpl.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/TextDetector/TextDetectorPresenterImpl.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/OCR/OCRRouterImpl.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/Main/MainRouterImpl.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/Map_/MapRouterImpl.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/TextDetector/TextDetectorRouterImpl.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/ViewController.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/OCR/OCRViewController.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/Main/MainViewController.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/Map_/MapViewController.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/TextDetector/TextDetectorViewController.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/OCR/Utils/ImageUtils.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Extension/UIViewController\ Extensions.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/OCR/AlertControllers/AlertControllerFunctions.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/OCR/OCRContract.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/Main/MainContract.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/Map_/MapContract.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/TextDetector/TextDetectorContract.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/OCR/OCRDIPart.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/DI/NetworkDIPart.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/Main/MainDIPart.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/Map_/MapDIPart.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/DI/AppDIPart.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/TextDetector/TextDetectorDIPart.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/Map_/MapViews/ArtworkView.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/CustomView/PreviewView.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/Alamofire.swiftmodule/x86_64.swiftmodule /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/DITranquillity/DITranquillity.framework/Modules/DITranquillity.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Vision.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreLocation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Contacts.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/MapKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVProgressHUD.h /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVProgressHUD-umbrella.h /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-umbrella.h /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/DITranquillity/DITranquillity.framework/Headers/DITranquillity-umbrella.h /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/DITranquillity/DITranquillity.framework/Headers/DIStoryboardBase.h /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVRadialGradientLayer.h /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-Swift.h /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/DITranquillity/DITranquillity.framework/Headers/DITranquillity-Swift.h /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVIndefiniteAnimatedView.h /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVProgressAnimatedView.h /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/DITranquillity/DITranquillity.framework/Headers/DITranquillity.h /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Modules/module.modulemap /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/module.modulemap /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/DITranquillity/DITranquillity.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/CoreML.framework/Headers/CoreML.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/Vision.framework/Headers/Vision.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/Contacts.framework/Headers/Contacts.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.apinotes
/Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/CoreML_test.build/Debug-iphonesimulator/CoreML_test.build/Objects-normal/x86_64/MainRouterImpl~partial.swiftmodule : /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/CoreML_test.build/Debug-iphonesimulator/CoreML_test.build/DerivedSources/CoreMLGenerated/Inceptionv3/Inceptionv3.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/CoreML_test.build/Debug-iphonesimulator/CoreML_test.build/DerivedSources/CoreMLGenerated/Alphanum_28x28/Alphanum_28x28.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/AppDelegate.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/Map_/MapAnnotation/Artwork.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Common/Views/KerningLabel.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/OCR/OCRPresenterImpl.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/Main/MainPresenterImpl.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/Map_/MapPresenterImpl.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/TextDetector/TextDetectorPresenterImpl.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/OCR/OCRRouterImpl.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/Main/MainRouterImpl.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/Map_/MapRouterImpl.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/TextDetector/TextDetectorRouterImpl.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/ViewController.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/OCR/OCRViewController.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/Main/MainViewController.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/Map_/MapViewController.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/TextDetector/TextDetectorViewController.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/OCR/Utils/ImageUtils.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Extension/UIViewController\ Extensions.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/OCR/AlertControllers/AlertControllerFunctions.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/OCR/OCRContract.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/Main/MainContract.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/Map_/MapContract.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/TextDetector/TextDetectorContract.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/OCR/OCRDIPart.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/DI/NetworkDIPart.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/Main/MainDIPart.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/Map_/MapDIPart.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/DI/AppDIPart.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/TextDetector/TextDetectorDIPart.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/Map_/MapViews/ArtworkView.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/CustomView/PreviewView.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/Alamofire.swiftmodule/x86_64.swiftmodule /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/DITranquillity/DITranquillity.framework/Modules/DITranquillity.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Vision.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreLocation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Contacts.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/MapKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVProgressHUD.h /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVProgressHUD-umbrella.h /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-umbrella.h /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/DITranquillity/DITranquillity.framework/Headers/DITranquillity-umbrella.h /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/DITranquillity/DITranquillity.framework/Headers/DIStoryboardBase.h /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVRadialGradientLayer.h /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-Swift.h /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/DITranquillity/DITranquillity.framework/Headers/DITranquillity-Swift.h /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVIndefiniteAnimatedView.h /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVProgressAnimatedView.h /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/DITranquillity/DITranquillity.framework/Headers/DITranquillity.h /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Modules/module.modulemap /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/module.modulemap /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/DITranquillity/DITranquillity.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/CoreML.framework/Headers/CoreML.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/Vision.framework/Headers/Vision.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/Contacts.framework/Headers/Contacts.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.apinotes
/Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/CoreML_test.build/Debug-iphonesimulator/CoreML_test.build/Objects-normal/x86_64/MainRouterImpl~partial.swiftdoc : /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/CoreML_test.build/Debug-iphonesimulator/CoreML_test.build/DerivedSources/CoreMLGenerated/Inceptionv3/Inceptionv3.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/CoreML_test.build/Debug-iphonesimulator/CoreML_test.build/DerivedSources/CoreMLGenerated/Alphanum_28x28/Alphanum_28x28.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/AppDelegate.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/Map_/MapAnnotation/Artwork.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Common/Views/KerningLabel.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/OCR/OCRPresenterImpl.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/Main/MainPresenterImpl.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/Map_/MapPresenterImpl.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/TextDetector/TextDetectorPresenterImpl.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/OCR/OCRRouterImpl.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/Main/MainRouterImpl.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/Map_/MapRouterImpl.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/TextDetector/TextDetectorRouterImpl.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/ViewController.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/OCR/OCRViewController.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/Main/MainViewController.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/Map_/MapViewController.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/TextDetector/TextDetectorViewController.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/OCR/Utils/ImageUtils.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Extension/UIViewController\ Extensions.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/OCR/AlertControllers/AlertControllerFunctions.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/OCR/OCRContract.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/Main/MainContract.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/Map_/MapContract.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/TextDetector/TextDetectorContract.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/OCR/OCRDIPart.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/DI/NetworkDIPart.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/Main/MainDIPart.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/Map_/MapDIPart.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/DI/AppDIPart.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/TextDetector/TextDetectorDIPart.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/Models/Map_/MapViews/ArtworkView.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/CoreML_test/CustomView/PreviewView.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/Alamofire.swiftmodule/x86_64.swiftmodule /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/DITranquillity/DITranquillity.framework/Modules/DITranquillity.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Vision.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreLocation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Contacts.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/MapKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVProgressHUD.h /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVProgressHUD-umbrella.h /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-umbrella.h /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/DITranquillity/DITranquillity.framework/Headers/DITranquillity-umbrella.h /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/DITranquillity/DITranquillity.framework/Headers/DIStoryboardBase.h /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVRadialGradientLayer.h /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-Swift.h /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/DITranquillity/DITranquillity.framework/Headers/DITranquillity-Swift.h /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVIndefiniteAnimatedView.h /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVProgressAnimatedView.h /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/DITranquillity/DITranquillity.framework/Headers/DITranquillity.h /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Modules/module.modulemap /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/module.modulemap /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Debug-iphonesimulator/DITranquillity/DITranquillity.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/CoreML.framework/Headers/CoreML.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/Vision.framework/Headers/Vision.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/Contacts.framework/Headers/Contacts.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.apinotes
| D |
INSTANCE SH(NPC_DEFAULT)
// PlayerInstanz
{
//-------- primary data --------
name = "StoryHelper";
Npctype = Npctype_Main;
guild = GIL_NONE;
level = 10;
voice = 15;
id = 0;
//-------- visuals --------
// animations
Mdl_SetVisual (self,"HUMANS.MDS");
// Body-Mesh Body-Tex Skin-Color Head-MMS Head-Tex Teeth-Tex Armor-Tex
Mdl_SetVisualBody (self,"hum_body_Naked0", 4, 1, "Hum_Head_Pony", 9, 0, -1);
//-------- ai ----------
start_aistate = ZS_SH_Hangaround;
};
func void ZS_SH_Hangaround ()
{
PrintDebugNpc (PD_ZS_FRAME, "ZS_SH_Hangaround");
Npc_PercEnable (self, PERC_ASSESSTALK, B_AssessTalk );
};
func void ZS_SH_Hangaround_Loop ()
{
PrintDebugNpc (PD_ZS_LOOP, "ZS_SH_Hangaround_Loop");
};
func void ZS_SH_Hangaround_End ()
{
PrintDebugNpc (PD_ZS_FRAME, "ZS_SH_Hangaround_End");
};
| D |
/Users/andrewv/Views/playground/rust/web_app/migration/target/debug/deps/futures-2fcf09bdda3b49da.rmeta: /Users/andrewv/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.3.8/src/lib.rs
/Users/andrewv/Views/playground/rust/web_app/migration/target/debug/deps/libfutures-2fcf09bdda3b49da.rlib: /Users/andrewv/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.3.8/src/lib.rs
/Users/andrewv/Views/playground/rust/web_app/migration/target/debug/deps/futures-2fcf09bdda3b49da.d: /Users/andrewv/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.3.8/src/lib.rs
/Users/andrewv/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.3.8/src/lib.rs:
| D |
/Users/Tamas/Dropbox/A_Egyetem\ BME/IOS/Házi/MyInsanity/DerivedData/MyInsanity/Build/Intermediates.noindex/MyInsanity.build/Debug-iphonesimulator/MyInsanity.build/Objects-normal/x86_64/AppDelegate.o : /Users/Tamas/Dropbox/A_Egyetem\ BME/IOS/Házi/MyInsanity/MyInsanity/AppDelegate.swift /Users/Tamas/Dropbox/A_Egyetem\ BME/IOS/Házi/MyInsanity/MyInsanity/WorkoutDataManager.swift /Users/Tamas/Dropbox/A_Egyetem\ BME/IOS/Házi/MyInsanity/MyInsanity/WorkoutDetailViewController.swift /Users/Tamas/Dropbox/A_Egyetem\ BME/IOS/Házi/MyInsanity/MyInsanity/WorkoutEquipmentsViewController.swift /Users/Tamas/Dropbox/A_Egyetem\ BME/IOS/Házi/MyInsanity/MyInsanity/WorkoutsViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/Tamas/Dropbox/A_Egyetem\ BME/IOS/Házi/MyInsanity/DerivedData/MyInsanity/Build/Intermediates.noindex/MyInsanity.build/Debug-iphonesimulator/MyInsanity.build/Objects-normal/x86_64/AppDelegate~partial.swiftmodule : /Users/Tamas/Dropbox/A_Egyetem\ BME/IOS/Házi/MyInsanity/MyInsanity/AppDelegate.swift /Users/Tamas/Dropbox/A_Egyetem\ BME/IOS/Házi/MyInsanity/MyInsanity/WorkoutDataManager.swift /Users/Tamas/Dropbox/A_Egyetem\ BME/IOS/Házi/MyInsanity/MyInsanity/WorkoutDetailViewController.swift /Users/Tamas/Dropbox/A_Egyetem\ BME/IOS/Házi/MyInsanity/MyInsanity/WorkoutEquipmentsViewController.swift /Users/Tamas/Dropbox/A_Egyetem\ BME/IOS/Házi/MyInsanity/MyInsanity/WorkoutsViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/Tamas/Dropbox/A_Egyetem\ BME/IOS/Házi/MyInsanity/DerivedData/MyInsanity/Build/Intermediates.noindex/MyInsanity.build/Debug-iphonesimulator/MyInsanity.build/Objects-normal/x86_64/AppDelegate~partial.swiftdoc : /Users/Tamas/Dropbox/A_Egyetem\ BME/IOS/Házi/MyInsanity/MyInsanity/AppDelegate.swift /Users/Tamas/Dropbox/A_Egyetem\ BME/IOS/Házi/MyInsanity/MyInsanity/WorkoutDataManager.swift /Users/Tamas/Dropbox/A_Egyetem\ BME/IOS/Házi/MyInsanity/MyInsanity/WorkoutDetailViewController.swift /Users/Tamas/Dropbox/A_Egyetem\ BME/IOS/Házi/MyInsanity/MyInsanity/WorkoutEquipmentsViewController.swift /Users/Tamas/Dropbox/A_Egyetem\ BME/IOS/Házi/MyInsanity/MyInsanity/WorkoutsViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
| D |
INSTANCE Info_Mod_August_Hi (C_INFO)
{
npc = Mod_7385_OUT_August_REL;
nr = 1;
condition = Info_Mod_August_Hi_Condition;
information = Info_Mod_August_Hi_Info;
permanent = 0;
important = 1;
};
FUNC INT Info_Mod_August_Hi_Condition()
{
return 1;
};
FUNC VOID Info_Mod_August_Hi_Info()
{
AI_Output(self, hero, "Info_Mod_August_Hi_13_00"); //Halt! Deine Fresse kenn ich nicht.
AI_Output(self, hero, "Info_Mod_August_Hi_13_01"); //Das bedeutet, ich hab dir die Regeln der Stadt noch nicht vorgelesen - oder du hast dich von 'nem Schattenläufer "umoperieren" lassen. (lacht merkwürdig)
AI_Output(self, hero, "Info_Mod_August_Hi_13_02"); //Ich kann den bescheuerten Text immer noch nicht auswendig, also muss ich zwischendurch mal aufs Papier gucken, wenn es dir nichts ausmacht.
B_UseFakeScroll ();
AI_Output(self, hero, "Info_Mod_August_Hi_13_03"); //(liest stockend) Die vier Gebote für Stadtfremde.
AI_Output(self, hero, "Info_Mod_August_Hi_13_04"); //Erstens: Der Gebrauch von Freudenspender innerhalb der Stadtmauern ist untersagt.
AI_Output(self, hero, "Info_Mod_August_Hi_13_05"); //Haha, gilt wenigstens nur für euch Fremde.
B_UseFakeScroll ();
AI_Output(self, hero, "Info_Mod_August_Hi_13_06"); //Zweitens: Den drei gezähmten Ratten des Stadthalters soll gehuldigt werden.
AI_Output(self, hero, "Info_Mod_August_Hi_13_07"); //Das hat sich übrigens erledigt, die sind gestorben.
B_UseFakeScroll ();
AI_Output(self, hero, "Info_Mod_August_Hi_13_08"); //Drittens: Jegliche Anwendung von Gewalt ist untersagt.
B_UseFakeScroll ();
AI_Output(self, hero, "Info_Mod_August_Hi_13_09"); //Viertens: Die Huldigung Beliars und Ausübung von Gräueln in seinem Namen können mit dem Feuertod bestraft werden.
if (Mod_Gottstatus == 1)
|| (Mod_Gottstatus == 2)
|| (Mod_Gottstatus == 3)
|| (Mod_Gottstatus == 4)
{
AI_Output(self, hero, "Info_Mod_August_Hi_13_10"); //Oh ja, das könnte ganz besonders für dich interessant sein.
};
AI_Output(self, hero, "Info_Mod_August_Hi_13_11"); //Das war's. Noch irgendwelche Fragen?
AI_PlayAni (self, "T_HUNGER");
AI_Output(self, hero, "Info_Mod_August_Hi_13_12"); //(murmelt) Ich könnte auch mal wieder was zum Beißen vertragen ...
B_StartOtherRoutine (self, "START");
};
INSTANCE Info_Mod_August_Essenholen (C_INFO)
{
npc = Mod_7385_OUT_August_REL;
nr = 1;
condition = Info_Mod_August_Essenholen_Condition;
information = Info_Mod_August_Essenholen_Info;
permanent = 0;
important = 0;
description = "Soll ich dir was Essbares besorgen?";
};
FUNC INT Info_Mod_August_Essenholen_Condition()
{
if (Npc_KnowsInfo(hero, Info_Mod_August_Hi))
{
return 1;
};
};
FUNC VOID Info_Mod_August_Essenholen_Info()
{
AI_Output(hero, self, "Info_Mod_August_Essenholen_15_00"); //Soll ich dir was Essbares besorgen?
AI_Output(self, hero, "Info_Mod_August_Essenholen_13_01"); //Oh ja! Ich hätte so richtig Hunger auf eine Spezialität des Gasthauses, das gepökelte Lammfleisch.
AI_Output(self, hero, "Info_Mod_August_Essenholen_13_02"); //Zwei Rationen, und das Geld geb ich dir natürlich wieder.
Log_CreateTopic (TOPIC_MOD_KHORATA_FRISCHFLEISCH, LOG_MISSION);
B_SetTopicStatus (TOPIC_MOD_KHORATA_FRISCHFLEISCH, LOG_RUNNING);
B_LogEntry (TOPIC_MOD_KHORATA_FRISCHFLEISCH, "Der Torwächter August wünscht sich zwei Rationen gepökeltes Lammfleisch aus dem Gasthaus Khoratas.");
};
INSTANCE Info_Mod_August_EssenGeholt (C_INFO)
{
npc = Mod_7385_OUT_August_REL;
nr = 1;
condition = Info_Mod_August_EssenGeholt_Condition;
information = Info_Mod_August_EssenGeholt_Info;
permanent = 0;
important = 0;
description = "Hier hast du dein Essen.";
};
FUNC INT Info_Mod_August_EssenGeholt_Condition()
{
if (Npc_KnowsInfo(hero, Info_Mod_August_Essenholen))
&& (Npc_HasItems(hero, ItFo_LammPoekelfleisch) >= 2)
{
return 1;
};
};
FUNC VOID Info_Mod_August_EssenGeholt_Info()
{
AI_Output(hero, self, "Info_Mod_August_EssenGeholt_15_00"); //Hier hast du dein Essen.
B_GiveInvItems (hero, self, ItFo_LammPoekelfleisch, 2);
AI_Output(self, hero, "Info_Mod_August_EssenGeholt_13_01"); //Dank dir! Nimm das!
B_GiveInvItems (self, hero, ItMi_Gold, 50);
B_GivePlayerXP (50);
B_LogEntry (TOPIC_MOD_KHORATA_FRISCHFLEISCH, "Ich konnte den Auftrag zu Augusts Zufriedenheit ausführen.");
B_SetTopicStatus (TOPIC_MOD_KHORATA_FRISCHFLEISCH, LOG_SUCCESS);
CurrentNQ += 1;
Mod_REL_QuestCounter += 1;
Info_ClearChoices (Info_Mod_August_EssenGeholt);
Info_AddChoice (Info_Mod_August_EssenGeholt, "Bis bald.", Info_Mod_August_EssenGeholt_B);
Info_AddChoice (Info_Mod_August_EssenGeholt, "Ein bisschen wenig ... (Feilschen)", Info_Mod_August_EssenGeholt_A);
};
FUNC VOID Info_Mod_August_EssenGeholt_B()
{
AI_Output(hero, self, "Info_Mod_August_EssenGeholt_B_15_00"); //Bis bald.
Info_ClearChoices (Info_Mod_August_EssenGeholt);
AI_StopProcessInfos (self);
};
FUNC VOID Info_Mod_August_EssenGeholt_A()
{
AI_Output(hero, self, "Info_Mod_August_EssenGeholt_A_15_00"); //Ein bisschen wenig ...
if (self.aivar[AIV_Verhandlung] == TRUE)
{
AI_Output(self, hero, "Info_Mod_August_EssenGeholt_A_13_01"); //Hast Recht, hast mehr verdient.
B_GiveInvItems (self, hero, ItMi_Gold, 50);
B_GivePlayerXP (10);
B_RaiseHandelsgeschick (2);
}
else
{
AI_Output(self, hero, "Info_Mod_August_EssenGeholt_A_13_02"); //Du machst Späße!
};
Info_ClearChoices (Info_Mod_August_EssenGeholt);
};
INSTANCE Info_Mod_August_Plagenquest (C_INFO)
{
npc = Mod_7385_OUT_August_REL;
nr = 1;
condition = Info_Mod_August_Plagenquest_Condition;
information = Info_Mod_August_Plagenquest_Info;
permanent = 0;
important = 1;
};
FUNC INT Info_Mod_August_Plagenquest_Condition()
{
if (Mod_WM_UnheilFertig == 2)
&& (Mod_REL_Stadthalter > 0)
{
return 1;
};
};
FUNC VOID Info_Mod_August_Plagenquest_Info()
{
if (Mod_REL_Stadthalter == 1)
{
AI_Output(self, hero, "Info_Mod_August_Plagenquest_13_00"); //Verdammt, hoffentlich findet Theodorus bald etwas heraus.
Log_CreateTopic (TOPIC_MOD_ADANOS_DRECKSVIECHER, LOG_MISSION);
B_SetTopicStatus (TOPIC_MOD_ADANOS_DRECKSVIECHER, LOG_RUNNING);
B_LogEntry (TOPIC_MOD_ADANOS_DRECKSVIECHER, "Khorata scheint ein Problem mit Insekten zu haben. Theodorus wird hoffentlich mehr dazu sagen können.");
}
else if (Mod_REL_Stadthalter == 2)
{
AI_Output(self, hero, "Info_Mod_August_Plagenquest_13_01"); //Verdammt, hoffentlich findet Wendel bald etwas heraus.
Log_CreateTopic (TOPIC_MOD_ADANOS_DRECKSVIECHER, LOG_MISSION);
B_SetTopicStatus (TOPIC_MOD_ADANOS_DRECKSVIECHER, LOG_RUNNING);
B_LogEntry (TOPIC_MOD_ADANOS_DRECKSVIECHER, "Khorata scheint ein Problem mit Insekten zu haben. Wendel wird hoffentlich mehr dazu sagen können.");
}
else
{
AI_Output(self, hero, "Info_Mod_August_Plagenquest_13_02"); //Verdammt, hoffentlich findet Lukas bald etwas heraus.
Log_CreateTopic (TOPIC_MOD_ADANOS_DRECKSVIECHER, LOG_MISSION);
B_SetTopicStatus (TOPIC_MOD_ADANOS_DRECKSVIECHER, LOG_RUNNING);
B_LogEntry (TOPIC_MOD_ADANOS_DRECKSVIECHER, "Khorata scheint ein Problem mit Insekten zu haben. Lukas wird hoffentlich mehr dazu sagen können.");
};
AI_Output(self, hero, "Info_Mod_August_Plagenquest_13_03"); //Die ganzen Scheißviecher ... erinnert mich an meinen bisher übelsten Trip, den ich hatte.
};
INSTANCE Info_Mod_August_Zurechtfinden (C_INFO)
{
npc = Mod_7385_OUT_August_REL;
nr = 1;
condition = Info_Mod_August_Zurechtfinden_Condition;
information = Info_Mod_August_Zurechtfinden_Info;
permanent = 0;
important = 0;
description = "Wie finde ich mich hier zurecht?";
};
FUNC INT Info_Mod_August_Zurechtfinden_Condition()
{
if (Npc_KnowsInfo(hero, Info_Mod_August_Hi))
{
return 1;
};
};
FUNC VOID Info_Mod_August_Zurechtfinden_Info()
{
AI_Output(hero, self, "Info_Mod_August_Zurechtfinden_15_00"); //Wie finde ich mich hier zurecht?
AI_Output(self, hero, "Info_Mod_August_Zurechtfinden_13_01"); //Das ist gar nicht so schwierig. Einfach die Hauptstraße hier geradeaus, und du kommst zum Marktplatz.
AI_Output(self, hero, "Info_Mod_August_Zurechtfinden_13_02"); //Links davon geht eine Straße ab, die führt dich geradewegs zum Gericht.
AI_Output(self, hero, "Info_Mod_August_Zurechtfinden_13_03"); //Und von dort nochmal links und du landest beim Gasthaus. Das sollte fürs Erste genügen.
AI_Output(self, hero, "Info_Mod_August_Zurechtfinden_13_04"); //Wenn du geführt werden willst, frag doch Hubert, der lungert häufig hier beim Tor herum.
};
INSTANCE Info_Mod_August_KhorataOrganisation (C_INFO)
{
npc = Mod_7385_OUT_August_REL;
nr = 1;
condition = Info_Mod_August_KhorataOrganisation_Condition;
information = Info_Mod_August_KhorataOrganisation_Info;
permanent = 0;
important = 0;
description = "Wie ist Khorata organisiert?";
};
FUNC INT Info_Mod_August_KhorataOrganisation_Condition()
{
if (Npc_KnowsInfo(hero, Info_Mod_August_Hi))
&& (Kapitel < 3)
{
return 1;
};
};
FUNC VOID Info_Mod_August_KhorataOrganisation_Info()
{
AI_Output(hero, self, "Info_Mod_August_KhorataOrganisation_15_00"); //Wie ist Khorata organisiert?
AI_Output(self, hero, "Info_Mod_August_KhorataOrganisation_13_01"); //Kann ich dir auch nicht ganz genau erklären.
AI_Output(self, hero, "Info_Mod_August_KhorataOrganisation_13_02"); //Unser Stadthalter Anselm kümmert sich um die ganzen Vorschriften und neuen Gesetze, der Richter und seine zwei Schöppen leiten das Gericht, und wir Wachen sorgen dafür, dass alles ruhig bleibt.
AI_Output(self, hero, "Info_Mod_August_KhorataOrganisation_13_03"); //Durch den Handel mit Freudenspender macht Khorata ganz ordentlich Gewinn, und was die Händler dafür alles kaufen!
AI_Output(self, hero, "Info_Mod_August_KhorataOrganisation_13_04"); //Schleppen ganz schön viel Zeug rein in die Stadt, ich bekomm's ja hier mit.
};
INSTANCE Info_Mod_August_Buerger (C_INFO)
{
npc = Mod_7385_OUT_August_REL;
nr = 1;
condition = Info_Mod_August_Buerger_Condition;
information = Info_Mod_August_Buerger_Info;
permanent = 0;
important = 0;
description = "Du hattest doch mal die drei Ratten von Anselm erwähnt ...";
};
FUNC INT Info_Mod_August_Buerger_Condition()
{
if (Npc_KnowsInfo(hero, Info_Mod_Anselm_Buerger2))
&& (Kapitel < 3)
{
return 1;
};
};
FUNC VOID Info_Mod_August_Buerger_Info()
{
AI_Output(hero, self, "Info_Mod_August_Buerger_15_00"); //Du hattest doch mal die drei Ratten von Anselm erwähnt ...
AI_Output(self, hero, "Info_Mod_August_Buerger_13_01"); //Die toten Drecksviecher, genau. Was ist mit denen?
AI_Output(hero, self, "Info_Mod_August_Buerger_15_02"); //Kennst du ihre Namen?
AI_Output(self, hero, "Info_Mod_August_Buerger_13_03"); //Türlich. Damals, als die noch gelebt haben, mussten wir von der Wache ihnen täglich huldigen.
AI_Output(self, hero, "Info_Mod_August_Buerger_13_04"); //Oleg, Pinky und Fievel. Haha, echt kranke Namen für so olle Ratten, oder?
AI_Output(hero, self, "Info_Mod_August_Buerger_15_05"); //Stimmt. Dank dir für die Information.
AI_Output(self, hero, "Info_Mod_August_Buerger_13_06"); //Nix zu danken.
};
INSTANCE Info_Mod_August_Buerger2 (C_INFO)
{
npc = Mod_7385_OUT_August_REL;
nr = 1;
condition = Info_Mod_August_Buerger2_Condition;
information = Info_Mod_August_Buerger2_Info;
permanent = 0;
important = 1;
};
FUNC INT Info_Mod_August_Buerger2_Condition()
{
if (Mod_REL_Buerger == 1)
{
return TRUE;
};
};
FUNC VOID Info_Mod_August_Buerger2_Info()
{
AI_Output(self, hero, "Info_Mod_August_Buerger2_13_00"); //Na, die Stadtsbürgerschaft hast du gekriegt? Meinen Glückwunsch, bist ein guter Mann.
};
INSTANCE Info_Mod_August_Unruhen (C_INFO)
{
npc = Mod_7385_OUT_August_REL;
nr = 1;
condition = Info_Mod_August_Unruhen_Condition;
information = Info_Mod_August_Unruhen_Info;
permanent = 0;
important = 1;
};
FUNC INT Info_Mod_August_Unruhen_Condition()
{
if (Kapitel >= 3)
{
return 1;
};
};
FUNC VOID Info_Mod_August_Unruhen_Info()
{
AI_Output(self, hero, "Info_Mod_August_Unruhen_13_00"); //(grimmig) Kein guter Zeitpunkt, um hier anzukommen, fürchte ich.
AI_Output(hero, self, "Info_Mod_August_Unruhen_15_01"); //Was ist passiert?
AI_Output(self, hero, "Info_Mod_August_Unruhen_13_02"); //Lauter Scheiße. Es begann damit, dass die Buddler in unserer Mine mehr Lohn und bessere Arbeitsbedingungen forderten.
AI_Output(self, hero, "Info_Mod_August_Unruhen_13_03"); //Aber Anselm ließ nicht mit sich reden.
AI_Output(self, hero, "Info_Mod_August_Unruhen_13_04"); //Daraufhin haben die Bergleute sich geweigert, weiterzuarbeiten, und dazu haben sie ihren Aufseher Frazer überwältigt und gefesselt.
AI_Output(self, hero, "Info_Mod_August_Unruhen_13_05"); //Anselm hat Tyrus und Dalton geschickt, um die Buddler wieder zum Arbeiten zu bringen.
AI_Output(self, hero, "Info_Mod_August_Unruhen_13_06"); //Scheiße! Gerade Tyrus und Dalton, die beiden Hitzköpfe.
AI_Output(self, hero, "Info_Mod_August_Unruhen_13_07"); //Natürlich ist der Streit eskaliert, und dann kamen die Spitzhacken ins Spiel.
AI_Output(self, hero, "Info_Mod_August_Unruhen_13_08"); //Wir haben uns noch nicht getraut, die beiden Leichen vor der Mine wegzuholen.
AI_Output(hero, self, "Info_Mod_August_Unruhen_15_09"); //Klingt nach einem gewaltigen Problem.
AI_Output(self, hero, "Info_Mod_August_Unruhen_13_10"); //Wenn das nur alles wäre! Anselm hat sich aus dem Staub gemacht, und wir haben keinen Stadthalter mehr!
AI_Output(self, hero, "Info_Mod_August_Unruhen_13_11"); //Und ohne einen verdammten Anführer will sich niemand um die Verhandlungen mit den Buddlern kümmern.
AI_Output(self, hero, "Info_Mod_August_Unruhen_13_12"); //Du hast nicht zufällig Lust auf das Amt?
AI_Output(hero, self, "Info_Mod_August_Unruhen_15_13"); //Tut mir Leid, aber das entspricht nicht meiner Vorstellung der Zukunft.
AI_Output(self, hero, "Info_Mod_August_Unruhen_13_14"); //(verzweifelt) Könntest du dich dann wenigstens um einen Nachfolger für Anselm kümmern?
B_StartOtherRoutine (self, "START");
};
INSTANCE Info_Mod_August_Unruhen2 (C_INFO)
{
npc = Mod_7385_OUT_August_REL;
nr = 1;
condition = Info_Mod_August_Unruhen2_Condition;
information = Info_Mod_August_Unruhen2_Info;
permanent = 0;
important = 0;
description = "In Ordnung, ich mache mich auf die Suche.";
};
FUNC INT Info_Mod_August_Unruhen2_Condition()
{
if (Npc_KnowsInfo(hero, Info_Mod_August_Unruhen))
{
return 1;
};
};
FUNC VOID Info_Mod_August_Unruhen2_Info()
{
AI_Output(hero, self, "Info_Mod_August_Unruhen2_15_00"); //In Ordnung, ich mache mich auf die Suche.
AI_Output(self, hero, "Info_Mod_August_Unruhen2_13_01"); //In meinen Augen gibt's drei geeignete Kandidaten: Lukas, Wendel und Theodorus.
AI_Output(self, hero, "Info_Mod_August_Unruhen2_13_02"); //Sprich mit ihnen und versuch sie zu überzeugen.
AI_Output(self, hero, "Info_Mod_August_Unruhen2_13_03"); //Wenn du sie alle angehört hast, entscheide dich und berichte mir.
AI_Output(self, hero, "Info_Mod_August_Unruhen2_13_04"); //Wir vertrauen auf dich.
Log_CreateTopic (TOPIC_MOD_KHORATA_UNRUHEN, LOG_MISSION);
B_SetTopicStatus (TOPIC_MOD_KHORATA_UNRUHEN, LOG_RUNNING);
B_LogEntry (TOPIC_MOD_KHORATA_UNRUHEN, "In Khorata geht es drunter und drüber: Die Buddler proben einen Aufstand, und die Städter haben ihr Oberhaupt verloren und versinken im Chaos. August meint, Lukas, Wendel und Theodorus würden sich als nachfolgende Stadthalter eignen. Ich sollte mit jedem von ihnen sprechen.");
};
INSTANCE Info_Mod_August_Unruhen3 (C_INFO)
{
npc = Mod_7385_OUT_August_REL;
nr = 1;
condition = Info_Mod_August_Unruhen3_Condition;
information = Info_Mod_August_Unruhen3_Info;
permanent = 1;
important = 0;
description = "Ich habe mich entschieden.";
};
FUNC INT Info_Mod_August_Unruhen3_Condition()
{
if (Npc_KnowsInfo(hero, Info_Mod_August_Unruhen2))
&& (Mod_REL_Kandidat == 1)
{
return 1;
};
};
FUNC VOID Info_Mod_August_Unruhen3_Info()
{
AI_Output(hero, self, "Info_Mod_August_Unruhen3_15_00"); //Ich habe mich entschieden.
AI_Output(self, hero, "Info_Mod_August_Unruhen3_13_01"); //Spuck's aus.
Info_ClearChoices (Info_Mod_August_Unruhen3);
Info_AddChoice (Info_Mod_August_Unruhen3, "Ich brauche doch noch Zeit ...", Info_Mod_August_Unruhen3_BACK);
Info_AddChoice (Info_Mod_August_Unruhen3, "Lukas soll neuer Stadthalter werden.", Info_Mod_August_Unruhen3_C);
Info_AddChoice (Info_Mod_August_Unruhen3, "Wendel soll neuer Stadthalter werden.", Info_Mod_August_Unruhen3_B);
Info_AddChoice (Info_Mod_August_Unruhen3, "Theodorus soll neuer Stadthalter werden.", Info_Mod_August_Unruhen3_A);
};
FUNC VOID Info_Mod_August_Unruhen3_BACK()
{
AI_Output(hero, self, "Info_Mod_August_Unruhen3_BACK_15_00"); //Ich brauche doch noch Zeit ...
Info_ClearChoices (Info_Mod_August_Unruhen3);
};
FUNC VOID Info_Mod_August_Unruhen3_C()
{
AI_Output(hero, self, "Info_Mod_August_Unruhen3_C_15_00"); //Lukas soll neuer Stadthalter werden.
AI_Output(self, hero, "Info_Mod_August_Unruhen3_C_13_01"); //Ja, der gute Lukas wird's richten.
AI_Output(self, hero, "Info_Mod_August_Unruhen3_C_13_02"); //Geh zu ihm und richte ihm die freudige Botschaft aus, ich kümmere mich darum, dass die ganze Stadt davon erfährt.
Mod_REL_Kandidat = 4;
B_LogEntry (TOPIC_MOD_KHORATA_UNRUHEN, "Ich habe die Aufgabe, Lukas davon in Erfahrung zu setzen, dass er der neue Stadthalter ist.");
Info_ClearChoices (Info_Mod_August_Unruhen3);
};
FUNC VOID Info_Mod_August_Unruhen3_B()
{
AI_Output(hero, self, "Info_Mod_August_Unruhen3_B_15_00"); //Wendel soll neuer Stadthalter werden.
AI_Output(self, hero, "Info_Mod_August_Unruhen3_B_13_01"); //Dann lass uns hoffen, dass Wendel genug Biss hat.
AI_Output(self, hero, "Info_Mod_August_Unruhen3_B_13_02"); //Teil ihm die Neuigkeiten mit, ich werde sie in der Stadt bekannt machen.
Mod_REL_Kandidat = 3;
B_LogEntry (TOPIC_MOD_KHORATA_UNRUHEN, "Wendel soll von mir erfahren, dass er der neue Stadthalter ist.");
Info_ClearChoices (Info_Mod_August_Unruhen3);
};
FUNC VOID Info_Mod_August_Unruhen3_A()
{
AI_Output(hero, self, "Info_Mod_August_Unruhen3_A_15_00"); //Theodorus soll neuer Stadthalter werden.
AI_Output(self, hero, "Info_Mod_August_Unruhen3_A_13_01"); //Eine ... ungewöhnliche Wahl. Na gut, du wirst schon wissen, was du da sagst.
AI_Output(self, hero, "Info_Mod_August_Unruhen3_A_13_02"); //Ich werde es der restlichen Bevölkerung mitteilen.
AI_Output(self, hero, "Info_Mod_August_Unruhen3_A_13_03"); //Du solltest Theodorus in die Stadt führen und ihm seine neue Behausung zeigen.
Mod_REL_Kandidat = 2;
B_LogEntry (TOPIC_MOD_KHORATA_UNRUHEN, "Ich soll als nächstes Theodorus zu seinem neuen Dienstgebäude führen.");
Info_ClearChoices (Info_Mod_August_Unruhen3);
};
INSTANCE Info_Mod_August_Freudenspender (C_INFO)
{
npc = Mod_7385_OUT_August_REL;
nr = 1;
condition = Info_Mod_August_Freudenspender_Condition;
information = Info_Mod_August_Freudenspender_Info;
permanent = 0;
important = 0;
description = "Ich hab hier Freudenspender ...";
};
FUNC INT Info_Mod_August_Freudenspender_Condition()
{
if (Npc_HasItems(hero, ItMi_Freudenspender) >= 1)
&& (Mod_Freudenspender < 5)
&& (Npc_KnowsInfo(hero, Info_Mod_Sabine_Hi))
{
return TRUE;
};
};
FUNC VOID Info_Mod_August_Freudenspender_Info()
{
AI_Output(hero, self, "Info_Mod_August_Freudenspender_15_00"); //Ich hab hier Freudenspender ...
AI_Output(self, hero, "Info_Mod_August_Freudenspender_13_01"); //... den du nicht in der Stadt konsumieren darfst, genau. Halt dich dran.
};
INSTANCE Info_Mod_August_Penner (C_INFO)
{
npc = Mod_7385_OUT_August_REL;
nr = 1;
condition = Info_Mod_August_Penner_Condition;
information = Info_Mod_August_Penner_Info;
permanent = 0;
important = 1;
};
FUNC INT Info_Mod_August_Penner_Condition()
{
if (Npc_KnowsInfo(hero, Info_Mod_Cyrco_Sweetwater2))
{
return TRUE;
};
};
FUNC VOID Info_Mod_August_Penner_Info()
{
AI_Output(self, hero, "Info_Mod_August_Penner_13_00"); //Schau her! Ein neues Gesich ... Nein. Dich hab ich schon mal gesehen.
AI_Output(hero, self, "Info_Mod_August_Penner_15_01"); //Wohl wahr.
if (Npc_KnowsInfo(hero, Info_Mod_August_EssenGeholt))
{
AI_Output(hero, self, "Info_Mod_August_Penner_15_02"); //Ich habe dir das Frühstück gebracht.
AI_Output(self, hero, "Info_Mod_August_Penner_13_03"); //(eifrig) Genau! Das gepökelte Lamm. Für den großen Hunger. Würdest du ...
AI_Output(hero, self, "Info_Mod_August_Penner_15_04"); //Ich verstehe. Noch eine Portion ...
AI_Output(self, hero, "Info_Mod_August_Penner_13_05"); //Genau! Und ein Fladenbrot vom Bäcker dazu, wenn's recht ist, und ein Dunkelbier aus der Brauerei.
AI_Output(self, hero, "Info_Mod_August_Penner_13_06"); //Das Lamm vom Fleischer ist fast noch besser, als das von Peter. So drei Keulen dürfen's sein.
}
else
{
AI_Output(self, hero, "Info_Mod_August_Penner_13_07"); //Könntest du mir einen Gefallen tun?
AI_Output(hero, self, "Info_Mod_August_Penner_15_08"); //Sicher, was gibt's?
AI_Output(self, hero, "Info_Mod_August_Penner_13_09"); //Könntest du mir eine Portion gepökeltes Lammfleisch von Peter oder dem Metzger, ein Fladenbrot vom Bäcker und ein Dunkelbier vom Brauer besorgen?
};
AI_Output(hero, self, "Info_Mod_August_Penner_15_10"); //Alkohol im Dienst? Wenn ich das dem Stadthalter sage ...
AI_Output(self, hero, "Info_Mod_August_Penner_13_11"); //Sagst du nicht. Dann würdest du nämlich bekommen, was ich zu geben habe ...
AI_Output(hero, self, "Info_Mod_August_Penner_15_12"); //So? Was denn?
AI_Output(self, hero, "Info_Mod_August_Penner_13_13"); //Erst den Happen.
Log_CreateTopic (TOPIC_MOD_JG_AUGUST, LOG_MISSION);
B_SetTopicStatus (TOPIC_MOD_JG_AUGUST, LOG_RUNNING);
B_LogEntry (TOPIC_MOD_JG_AUGUST, "Ich soll für August Essen besorgen. Gepökeltes Lamm von Peter oder dem Metzger, Fladenbrot vom Bäcker und Dunkelbier vom Brauer.");
B_StartOtherRoutine (self, "START");
};
INSTANCE Info_Mod_August_Penner2 (C_INFO)
{
npc = Mod_7385_OUT_August_REL;
nr = 1;
condition = Info_Mod_August_Penner2_Condition;
information = Info_Mod_August_Penner2_Info;
permanent = 0;
important = 0;
description = "Hier, dein Festmal.";
};
FUNC INT Info_Mod_August_Penner2_Condition()
{
if (Npc_KnowsInfo(hero, Info_Mod_August_Penner))
&& (Npc_HasItems(hero, ItFo_LammPoekelfleisch) >= 3)
&& (Npc_HasItems(hero, ItFo_Fladenbrot) >= 1)
&& (Npc_HasItems(hero, ItFo_Dunkelbier) >= 1)
{
return TRUE;
};
};
FUNC VOID Info_Mod_August_Penner2_Info()
{
AI_Output(hero, self, "Info_Mod_August_Penner2_15_00"); //Hier, dein Festmahl.
Npc_RemoveInvItems (hero, ItFo_LammPoekelfleisch, 3);
Npc_RemoveInvItems (hero, ItFo_Fladenbrot, 1);
Npc_RemoveInvItems (hero, ItFo_Dunkelbier, 1);
B_ShowGivenThings ("3 gepökeltes Lammfleisch, Fladenbrot und Dunkelbier gegeben");
AI_Output(self, hero, "Info_Mod_August_Penner2_13_01"); //Gib schon her. Mittlerweile schieb ich ordentlich Kohldampf.
AI_Output(hero, self, "Info_Mod_August_Penner2_15_02"); //Was ist es, was du mir geben wolltest?
AI_Output(self, hero, "Info_Mod_August_Penner2_13_03"); //Also letztens hatte ich Dienst auf dem Wachturm am Pass.
AI_Output(self, hero, "Info_Mod_August_Penner2_13_04"); //Wie ich so den Hang hochlaufe, stolpere ich doch über dieses Ding hier. Ist garantiert wertvoll, das Teil.
AI_Output(hero, self, "Info_Mod_August_Penner2_15_05"); //Zeig her.
AI_Output(self, hero, "Info_Mod_August_Penner2_13_06"); //Hier.
B_GiveInvItems (self, hero, ItMi_Brokenrune01, 1);
AI_Output(hero, self, "Info_Mod_August_Penner2_15_07"); //Aha. Eine kaputte Rune. Hast du auch die andere Hälfte?
AI_Output(self, hero, "Info_Mod_August_Penner2_13_08"); //Nee. Hab lange gesucht, aber nichts mehr gefunden.
AI_Output(hero, self, "Info_Mod_August_Penner2_15_09"); //Na gut. Vielleicht ist sie noch zu gebrauchen.
AI_Output(hero, self, "Info_Mod_August_Penner2_15_10"); //Hast mich aber ganz schön angeschmiert. Ich bekomme noch 50 Gold fürs Essen.
AI_Output(self, hero, "Info_Mod_August_Penner2_13_11"); //Natürlich, hier. Und sicher findet sich das andere Stück noch.
B_GiveInvItems (self, hero, ItMi_Gold, 50);
B_SetTopicStatus (TOPIC_MOD_JG_AUGUST, LOG_SUCCESS);
B_GivePlayerXP (100);
};
INSTANCE Info_Mod_August_Pickpocket (C_INFO)
{
npc = Mod_7385_OUT_August_REL;
nr = 1;
condition = Info_Mod_August_Pickpocket_Condition;
information = Info_Mod_August_Pickpocket_Info;
permanent = 1;
important = 0;
description = Pickpocket_90;
};
FUNC INT Info_Mod_August_Pickpocket_Condition()
{
C_Beklauen (62, ItMi_Gold, 234);
};
FUNC VOID Info_Mod_August_Pickpocket_Info()
{
Info_ClearChoices (Info_Mod_August_Pickpocket);
Info_AddChoice (Info_Mod_August_Pickpocket, DIALOG_BACK, Info_Mod_August_Pickpocket_BACK);
Info_AddChoice (Info_Mod_August_Pickpocket, DIALOG_PICKPOCKET, Info_Mod_August_Pickpocket_DoIt);
};
FUNC VOID Info_Mod_August_Pickpocket_BACK()
{
Info_ClearChoices (Info_Mod_August_Pickpocket);
};
FUNC VOID Info_Mod_August_Pickpocket_DoIt()
{
if (B_Beklauen() == TRUE)
{
Info_ClearChoices (Info_Mod_August_Pickpocket);
}
else
{
Info_ClearChoices (Info_Mod_August_Pickpocket);
Info_AddChoice (Info_Mod_August_Pickpocket, DIALOG_PP_BESCHIMPFEN, Info_Mod_August_Pickpocket_Beschimpfen);
Info_AddChoice (Info_Mod_August_Pickpocket, DIALOG_PP_BESTECHUNG, Info_Mod_August_Pickpocket_Bestechung);
Info_AddChoice (Info_Mod_August_Pickpocket, DIALOG_PP_HERAUSREDEN, Info_Mod_August_Pickpocket_Herausreden);
};
};
FUNC VOID Info_Mod_August_Pickpocket_Beschimpfen()
{
B_Say (hero, self, "$PICKPOCKET_BESCHIMPFEN");
B_Say (self, hero, "$DIRTYTHIEF");
Info_ClearChoices (Info_Mod_August_Pickpocket);
AI_StopProcessInfos (self);
B_Attack (self, hero, AR_Theft, 1);
};
FUNC VOID Info_Mod_August_Pickpocket_Bestechung()
{
B_Say (hero, self, "$PICKPOCKET_BESTECHUNG");
var int rnd; rnd = r_max(99);
if (rnd < 25)
|| ((rnd >= 25) && (rnd < 50) && (Npc_HasItems(hero, ItMi_Gold) < 50))
|| ((rnd >= 50) && (rnd < 75) && (Npc_HasItems(hero, ItMi_Gold) < 100))
|| ((rnd >= 75) && (rnd < 100) && (Npc_HasItems(hero, ItMi_Gold) < 200))
{
B_Say (self, hero, "$DIRTYTHIEF");
Info_ClearChoices (Info_Mod_August_Pickpocket);
AI_StopProcessInfos (self);
B_Attack (self, hero, AR_Theft, 1);
}
else
{
if (rnd >= 75)
{
B_GiveInvItems (hero, self, ItMi_Gold, 200);
}
else if (rnd >= 50)
{
B_GiveInvItems (hero, self, ItMi_Gold, 100);
}
else if (rnd >= 25)
{
B_GiveInvItems (hero, self, ItMi_Gold, 50);
};
B_Say (self, hero, "$PICKPOCKET_BESTECHUNG_01");
Info_ClearChoices (Info_Mod_August_Pickpocket);
AI_StopProcessInfos (self);
};
};
FUNC VOID Info_Mod_August_Pickpocket_Herausreden()
{
B_Say (hero, self, "$PICKPOCKET_HERAUSREDEN");
if (r_max(99) < Mod_Verhandlungsgeschick)
{
B_Say (self, hero, "$PICKPOCKET_HERAUSREDEN_01");
Info_ClearChoices (Info_Mod_August_Pickpocket);
}
else
{
B_Say (self, hero, "$PICKPOCKET_HERAUSREDEN_02");
};
};
INSTANCE Info_Mod_August_EXIT (C_INFO)
{
npc = Mod_7385_OUT_August_REL;
nr = 1;
condition = Info_Mod_August_EXIT_Condition;
information = Info_Mod_August_EXIT_Info;
permanent = 1;
important = 0;
description = DIALOG_ENDE;
};
FUNC INT Info_Mod_August_EXIT_Condition()
{
return 1;
};
FUNC VOID Info_Mod_August_EXIT_Info()
{
AI_StopProcessInfos (self);
}; | D |
; Copyright (C) 2008 The Android Open Source Project
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS,
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
; See the License for the specific language governing permissions and
; limitations under the License.
.source T_iget_char_11.java
.class public dot.junit.opcodes.iget_char.d.T_iget_char_11
.super dot/junit/opcodes/iget_char/d/T_iget_char_1
.method public <init>()V
.limit regs 1
invoke-direct {v0}, dot/junit/opcodes/iget_char/d/T_iget_char_1/<init>()V
return-void
.end method
.method public run()C
.limit regs 3
iget-char v1, v2, dot.junit.opcodes.iget_char.d.T_iget_char_1.p1 C
return v1
.end method
| D |
import std.stdio;
import std.string;
void main() {
immutable hello = "Hello";
writeln( toStringz( hello )[ 0 .. 5 ] );
}
| D |
/*
Copyright (c) 2014 Timur Gafarov
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:
The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/
module dgl.templates.freeview;
import derelict.sdl.sdl;
import derelict.opengl.gl;
import dlib.image.color;
import dgl.core.drawable;
import dgl.core.application;
import dgl.core.layer;
import dgl.scene.tbcamera;
import dgl.graphics.axes;
class FreeviewLayer: Layer
{
int currentWindowWidth = 0;
int currentWindowHeight = 0;
TrackballCamera camera;
int tempMouseX = 0;
int tempMouseY = 0;
bool drawAxes = true;
this(uint w, uint h, int depth)
{
super(0, 0, w, h, LayerType.Layer3D, depth);
alignToWindow = true;
currentWindowWidth = w;
currentWindowHeight = h;
camera = new TrackballCamera();
camera.pitch(45.0f);
camera.turn(45.0f);
camera.setZoom(20.0f);
addModifier(camera);
//auto axes = new Axes();
//addDrawable(axes);
}
override void onMouseButtonDown(EventManager manager)
{
if (manager.event_button == SDL_BUTTON_RIGHT)
{
tempMouseX = manager.mouse_x;
tempMouseY = manager.mouse_y;
SDL_WarpMouse(cast(ushort)width/2,
cast(ushort)height/2);
}
else if (manager.event_button == SDL_BUTTON_MIDDLE)
{
tempMouseX = manager.mouse_x;
tempMouseY = manager.mouse_y;
SDL_WarpMouse(cast(ushort)width/2,
cast(ushort)height/2);
}
else if (manager.event_button == SDL_BUTTON_WHEELUP)
{
camera.zoomSmooth(-2.0f, 16.0f);
}
else if (manager.event_button == SDL_BUTTON_WHEELDOWN)
{
camera.zoomSmooth(2.0f, 16.0f);
}
}
override void onUpdate(EventManager manager)
{
if (manager.rmb_pressed)
{
float turn_m = (cast(float)(manager.window_width/2 - manager.mouse_x))/8.0f;
float pitch_m = -(cast(float)(manager.window_height/2 - manager.mouse_y))/8.0f;
camera.pitchSmooth(pitch_m, 16.0f);
camera.turnSmooth(turn_m, 16.0f);
SDL_WarpMouse(cast(ushort)manager.window_width/2,
cast(ushort)manager.window_height/2);
SDL_ShowCursor(0);
}
else if (manager.mmb_pressed || (manager.lmb_pressed && manager.key_pressed[SDLK_LSHIFT]))
{
float shift_x = (cast(float)(manager.window_width/2 - manager.mouse_x))/16.0f;
float shift_y = (cast(float)(manager.window_height/2 - manager.mouse_y))/16.0f;
camera.moveSmooth(shift_y, 16.0f);
camera.strafeSmooth(-shift_x, 16.0f);
SDL_WarpMouse(cast(ushort)manager.window_width/2,
cast(ushort)manager.window_height/2);
SDL_ShowCursor(0);
}
else
SDL_ShowCursor(1);
}
}
| D |
// Written in the D programming language.
module windows.componentservices;
public import windows.core;
public import windows.automation : BSTR, IDispatch, SAFEARRAY, VARIANT;
public import windows.com : APTTYPE, EOC_ChangeType, HRESULT, IClassFactory,
IMoniker, IUnknown;
public import windows.systemservices : BOOL, HANDLE, PSTR, PWSTR;
public import windows.winsock : BLOB;
public import windows.windowsprogramming : FILETIME;
extern(Windows) @nogc nothrow:
// Enums
enum COMAdminInUse : int
{
COMAdminNotInUse = 0x00000000,
COMAdminInUseByCatalog = 0x00000001,
COMAdminInUseByRegistryUnknown = 0x00000002,
COMAdminInUseByRegistryProxyStub = 0x00000003,
COMAdminInUseByRegistryTypeLib = 0x00000004,
COMAdminInUseByRegistryClsid = 0x00000005,
}
enum COMAdminComponentType : int
{
COMAdmin32BitComponent = 0x00000001,
COMAdmin64BitComponent = 0x00000002,
}
enum COMAdminApplicationInstallOptions : int
{
COMAdminInstallNoUsers = 0x00000000,
COMAdminInstallUsers = 0x00000001,
COMAdminInstallForceOverwriteOfFiles = 0x00000002,
}
enum COMAdminApplicationExportOptions : int
{
COMAdminExportNoUsers = 0x00000000,
COMAdminExportUsers = 0x00000001,
COMAdminExportApplicationProxy = 0x00000002,
COMAdminExportForceOverwriteOfFiles = 0x00000004,
COMAdminExportIn10Format = 0x00000010,
}
enum COMAdminThreadingModels : int
{
COMAdminThreadingModelApartment = 0x00000000,
COMAdminThreadingModelFree = 0x00000001,
COMAdminThreadingModelMain = 0x00000002,
COMAdminThreadingModelBoth = 0x00000003,
COMAdminThreadingModelNeutral = 0x00000004,
COMAdminThreadingModelNotSpecified = 0x00000005,
}
enum COMAdminTransactionOptions : int
{
COMAdminTransactionIgnored = 0x00000000,
COMAdminTransactionNone = 0x00000001,
COMAdminTransactionSupported = 0x00000002,
COMAdminTransactionRequired = 0x00000003,
COMAdminTransactionRequiresNew = 0x00000004,
}
///Indicates the isolation level that is to be used for transactions.
enum COMAdminTxIsolationLevelOptions : int
{
///Any isolation level is supported. A downstream component that has this isolation level always uses the same
///isolation level that its immediate upstream component uses. If the root object in a transaction has its isolation
///level configured to COMAdminTxIsolationLevelAny, its isolation level becomes
///COMAdminTxIsolationLevelSerializable.
COMAdminTxIsolationLevelAny = 0x00000000,
///A transaction can read any data, even if it is being modified by another transaction. Any type of new data can be
///inserted during a transaction. This is the least safe isolation level but allows the highest concurrency.
COMAdminTxIsolationLevelReadUnCommitted = 0x00000001,
///A transaction cannot read data that is being modified by another transaction that has not committed. Any type of
///new data can be inserted during a transaction. This is the default isolation level in Microsoft SQL Server.
COMAdminTxIsolationLevelReadCommitted = 0x00000002,
///Data read by a current transaction cannot be changed by another transaction until the current transaction
///finishes. Any type of new data can be inserted during a transaction.
COMAdminTxIsolationLevelRepeatableRead = 0x00000003,
///Data read by a current transaction cannot be changed by another transaction until the current transaction
///finishes. No new data can be inserted that would affect the current transaction. This is the safest isolation
///level and is the default, but allows the lowest level of concurrency.
COMAdminTxIsolationLevelSerializable = 0x00000004,
}
enum COMAdminSynchronizationOptions : int
{
COMAdminSynchronizationIgnored = 0x00000000,
COMAdminSynchronizationNone = 0x00000001,
COMAdminSynchronizationSupported = 0x00000002,
COMAdminSynchronizationRequired = 0x00000003,
COMAdminSynchronizationRequiresNew = 0x00000004,
}
enum COMAdminActivationOptions : int
{
COMAdminActivationInproc = 0x00000000,
COMAdminActivationLocal = 0x00000001,
}
enum COMAdminAccessChecksLevelOptions : int
{
COMAdminAccessChecksApplicationLevel = 0x00000000,
COMAdminAccessChecksApplicationComponentLevel = 0x00000001,
}
enum COMAdminAuthenticationLevelOptions : int
{
COMAdminAuthenticationDefault = 0x00000000,
COMAdminAuthenticationNone = 0x00000001,
COMAdminAuthenticationConnect = 0x00000002,
COMAdminAuthenticationCall = 0x00000003,
COMAdminAuthenticationPacket = 0x00000004,
COMAdminAuthenticationIntegrity = 0x00000005,
COMAdminAuthenticationPrivacy = 0x00000006,
}
enum COMAdminImpersonationLevelOptions : int
{
COMAdminImpersonationAnonymous = 0x00000001,
COMAdminImpersonationIdentify = 0x00000002,
COMAdminImpersonationImpersonate = 0x00000003,
COMAdminImpersonationDelegate = 0x00000004,
}
enum COMAdminAuthenticationCapabilitiesOptions : int
{
COMAdminAuthenticationCapabilitiesNone = 0x00000000,
COMAdminAuthenticationCapabilitiesSecureReference = 0x00000002,
COMAdminAuthenticationCapabilitiesStaticCloaking = 0x00000020,
COMAdminAuthenticationCapabilitiesDynamicCloaking = 0x00000040,
}
alias COMAdminOS = int;
enum : int
{
COMAdminOSNotInitialized = 0x00000000,
COMAdminOSWindows3_1 = 0x00000001,
COMAdminOSWindows9x = 0x00000002,
COMAdminOSWindows2000 = 0x00000003,
COMAdminOSWindows2000AdvancedServer = 0x00000004,
COMAdminOSWindows2000Unknown = 0x00000005,
COMAdminOSUnknown = 0x00000006,
COMAdminOSWindowsXPPersonal = 0x0000000b,
COMAdminOSWindowsXPProfessional = 0x0000000c,
COMAdminOSWindowsNETStandardServer = 0x0000000d,
COMAdminOSWindowsNETEnterpriseServer = 0x0000000e,
COMAdminOSWindowsNETDatacenterServer = 0x0000000f,
COMAdminOSWindowsNETWebServer = 0x00000010,
COMAdminOSWindowsLonghornPersonal = 0x00000011,
COMAdminOSWindowsLonghornProfessional = 0x00000012,
COMAdminOSWindowsLonghornStandardServer = 0x00000013,
COMAdminOSWindowsLonghornEnterpriseServer = 0x00000014,
COMAdminOSWindowsLonghornDatacenterServer = 0x00000015,
COMAdminOSWindowsLonghornWebServer = 0x00000016,
COMAdminOSWindows7Personal = 0x00000017,
COMAdminOSWindows7Professional = 0x00000018,
COMAdminOSWindows7StandardServer = 0x00000019,
COMAdminOSWindows7EnterpriseServer = 0x0000001a,
COMAdminOSWindows7DatacenterServer = 0x0000001b,
COMAdminOSWindows7WebServer = 0x0000001c,
COMAdminOSWindows8Personal = 0x0000001d,
COMAdminOSWindows8Professional = 0x0000001e,
COMAdminOSWindows8StandardServer = 0x0000001f,
COMAdminOSWindows8EnterpriseServer = 0x00000020,
COMAdminOSWindows8DatacenterServer = 0x00000021,
COMAdminOSWindows8WebServer = 0x00000022,
COMAdminOSWindowsBluePersonal = 0x00000023,
COMAdminOSWindowsBlueProfessional = 0x00000024,
COMAdminOSWindowsBlueStandardServer = 0x00000025,
COMAdminOSWindowsBlueEnterpriseServer = 0x00000026,
COMAdminOSWindowsBlueDatacenterServer = 0x00000027,
COMAdminOSWindowsBlueWebServer = 0x00000028,
}
enum COMAdminServiceOptions : int
{
COMAdminServiceLoadBalanceRouter = 0x00000001,
}
enum COMAdminServiceStatusOptions : int
{
COMAdminServiceStopped = 0x00000000,
COMAdminServiceStartPending = 0x00000001,
COMAdminServiceStopPending = 0x00000002,
COMAdminServiceRunning = 0x00000003,
COMAdminServiceContinuePending = 0x00000004,
COMAdminServicePausePending = 0x00000005,
COMAdminServicePaused = 0x00000006,
COMAdminServiceUnknownState = 0x00000007,
}
enum COMAdminQCMessageAuthenticateOptions : int
{
COMAdminQCMessageAuthenticateSecureApps = 0x00000000,
COMAdminQCMessageAuthenticateOff = 0x00000001,
COMAdminQCMessageAuthenticateOn = 0x00000002,
}
enum COMAdminFileFlags : int
{
COMAdminFileFlagLoadable = 0x00000001,
COMAdminFileFlagCOM = 0x00000002,
COMAdminFileFlagContainsPS = 0x00000004,
COMAdminFileFlagContainsComp = 0x00000008,
COMAdminFileFlagContainsTLB = 0x00000010,
COMAdminFileFlagSelfReg = 0x00000020,
COMAdminFileFlagSelfUnReg = 0x00000040,
COMAdminFileFlagUnloadableDLL = 0x00000080,
COMAdminFileFlagDoesNotExist = 0x00000100,
COMAdminFileFlagAlreadyInstalled = 0x00000200,
COMAdminFileFlagBadTLB = 0x00000400,
COMAdminFileFlagGetClassObjFailed = 0x00000800,
COMAdminFileFlagClassNotAvailable = 0x00001000,
COMAdminFileFlagRegistrar = 0x00002000,
COMAdminFileFlagNoRegistrar = 0x00004000,
COMAdminFileFlagDLLRegsvrFailed = 0x00008000,
COMAdminFileFlagRegTLBFailed = 0x00010000,
COMAdminFileFlagRegistrarFailed = 0x00020000,
COMAdminFileFlagError = 0x00040000,
}
enum COMAdminComponentFlags : int
{
COMAdminCompFlagTypeInfoFound = 0x00000001,
COMAdminCompFlagCOMPlusPropertiesFound = 0x00000002,
COMAdminCompFlagProxyFound = 0x00000004,
COMAdminCompFlagInterfacesFound = 0x00000008,
COMAdminCompFlagAlreadyInstalled = 0x00000010,
COMAdminCompFlagNotInApplication = 0x00000020,
}
enum COMAdminErrorCodes : int
{
COMAdminErrObjectErrors = 0x80110401,
COMAdminErrObjectInvalid = 0x80110402,
COMAdminErrKeyMissing = 0x80110403,
COMAdminErrAlreadyInstalled = 0x80110404,
COMAdminErrAppFileWriteFail = 0x80110407,
COMAdminErrAppFileReadFail = 0x80110408,
COMAdminErrAppFileVersion = 0x80110409,
COMAdminErrBadPath = 0x8011040a,
COMAdminErrApplicationExists = 0x8011040b,
COMAdminErrRoleExists = 0x8011040c,
COMAdminErrCantCopyFile = 0x8011040d,
COMAdminErrNoUser = 0x8011040f,
COMAdminErrInvalidUserids = 0x80110410,
COMAdminErrNoRegistryCLSID = 0x80110411,
COMAdminErrBadRegistryProgID = 0x80110412,
COMAdminErrAuthenticationLevel = 0x80110413,
COMAdminErrUserPasswdNotValid = 0x80110414,
COMAdminErrCLSIDOrIIDMismatch = 0x80110418,
COMAdminErrRemoteInterface = 0x80110419,
COMAdminErrDllRegisterServer = 0x8011041a,
COMAdminErrNoServerShare = 0x8011041b,
COMAdminErrDllLoadFailed = 0x8011041d,
COMAdminErrBadRegistryLibID = 0x8011041e,
COMAdminErrAppDirNotFound = 0x8011041f,
COMAdminErrRegistrarFailed = 0x80110423,
COMAdminErrCompFileDoesNotExist = 0x80110424,
COMAdminErrCompFileLoadDLLFail = 0x80110425,
COMAdminErrCompFileGetClassObj = 0x80110426,
COMAdminErrCompFileClassNotAvail = 0x80110427,
COMAdminErrCompFileBadTLB = 0x80110428,
COMAdminErrCompFileNotInstallable = 0x80110429,
COMAdminErrNotChangeable = 0x8011042a,
COMAdminErrNotDeletable = 0x8011042b,
COMAdminErrSession = 0x8011042c,
COMAdminErrCompMoveLocked = 0x8011042d,
COMAdminErrCompMoveBadDest = 0x8011042e,
COMAdminErrRegisterTLB = 0x80110430,
COMAdminErrSystemApp = 0x80110433,
COMAdminErrCompFileNoRegistrar = 0x80110434,
COMAdminErrCoReqCompInstalled = 0x80110435,
COMAdminErrServiceNotInstalled = 0x80110436,
COMAdminErrPropertySaveFailed = 0x80110437,
COMAdminErrObjectExists = 0x80110438,
COMAdminErrComponentExists = 0x80110439,
COMAdminErrRegFileCorrupt = 0x8011043b,
COMAdminErrPropertyOverflow = 0x8011043c,
COMAdminErrNotInRegistry = 0x8011043e,
COMAdminErrObjectNotPoolable = 0x8011043f,
COMAdminErrApplidMatchesClsid = 0x80110446,
COMAdminErrRoleDoesNotExist = 0x80110447,
COMAdminErrStartAppNeedsComponents = 0x80110448,
COMAdminErrRequiresDifferentPlatform = 0x80110449,
COMAdminErrQueuingServiceNotAvailable = 0x80110602,
COMAdminErrObjectParentMissing = 0x80110808,
COMAdminErrObjectDoesNotExist = 0x80110809,
COMAdminErrCanNotExportAppProxy = 0x8011044a,
COMAdminErrCanNotStartApp = 0x8011044b,
COMAdminErrCanNotExportSystemApp = 0x8011044c,
COMAdminErrCanNotSubscribeToComponent = 0x8011044d,
COMAdminErrAppNotRunning = 0x8011080a,
COMAdminErrEventClassCannotBeSubscriber = 0x8011044e,
COMAdminErrLibAppProxyIncompatible = 0x8011044f,
COMAdminErrBasePartitionOnly = 0x80110450,
COMAdminErrDuplicatePartitionName = 0x80110457,
COMAdminErrPartitionInUse = 0x80110459,
COMAdminErrImportedComponentsNotAllowed = 0x8011045b,
COMAdminErrRegdbNotInitialized = 0x80110472,
COMAdminErrRegdbNotOpen = 0x80110473,
COMAdminErrRegdbSystemErr = 0x80110474,
COMAdminErrRegdbAlreadyRunning = 0x80110475,
COMAdminErrMigVersionNotSupported = 0x80110480,
COMAdminErrMigSchemaNotFound = 0x80110481,
COMAdminErrCatBitnessMismatch = 0x80110482,
COMAdminErrCatUnacceptableBitness = 0x80110483,
COMAdminErrCatWrongAppBitnessBitness = 0x80110484,
COMAdminErrCatPauseResumeNotSupported = 0x80110485,
COMAdminErrCatServerFault = 0x80110486,
COMAdminErrCantRecycleLibraryApps = 0x8011080f,
COMAdminErrCantRecycleServiceApps = 0x80110811,
COMAdminErrProcessAlreadyRecycled = 0x80110812,
COMAdminErrPausedProcessMayNotBeRecycled = 0x80110813,
COMAdminErrInvalidPartition = 0x8011080b,
COMAdminErrPartitionMsiOnly = 0x80110819,
COMAdminErrStartAppDisabled = 0x80110451,
COMAdminErrCompMoveSource = 0x8011081c,
COMAdminErrCompMoveDest = 0x8011081d,
COMAdminErrCompMovePrivate = 0x8011081e,
COMAdminErrCannotCopyEventClass = 0x80110820,
}
alias TX_MISC_CONSTANTS = int;
enum : int
{
MAX_TRAN_DESC = 0x00000028,
}
alias ISOLATIONLEVEL = int;
enum : int
{
ISOLATIONLEVEL_UNSPECIFIED = 0xffffffff,
ISOLATIONLEVEL_CHAOS = 0x00000010,
ISOLATIONLEVEL_READUNCOMMITTED = 0x00000100,
ISOLATIONLEVEL_BROWSE = 0x00000100,
ISOLATIONLEVEL_CURSORSTABILITY = 0x00001000,
ISOLATIONLEVEL_READCOMMITTED = 0x00001000,
ISOLATIONLEVEL_REPEATABLEREAD = 0x00010000,
ISOLATIONLEVEL_SERIALIZABLE = 0x00100000,
ISOLATIONLEVEL_ISOLATED = 0x00100000,
}
alias ISOFLAG = int;
enum : int
{
ISOFLAG_RETAIN_COMMIT_DC = 0x00000001,
ISOFLAG_RETAIN_COMMIT = 0x00000002,
ISOFLAG_RETAIN_COMMIT_NO = 0x00000003,
ISOFLAG_RETAIN_ABORT_DC = 0x00000004,
ISOFLAG_RETAIN_ABORT = 0x00000008,
ISOFLAG_RETAIN_ABORT_NO = 0x0000000c,
ISOFLAG_RETAIN_DONTCARE = 0x00000005,
ISOFLAG_RETAIN_BOTH = 0x0000000a,
ISOFLAG_RETAIN_NONE = 0x0000000f,
ISOFLAG_OPTIMISTIC = 0x00000010,
ISOFLAG_READONLY = 0x00000020,
}
alias XACTTC = int;
enum : int
{
XACTTC_NONE = 0x00000000,
XACTTC_SYNC_PHASEONE = 0x00000001,
XACTTC_SYNC_PHASETWO = 0x00000002,
XACTTC_SYNC = 0x00000002,
XACTTC_ASYNC_PHASEONE = 0x00000004,
XACTTC_ASYNC = 0x00000004,
}
alias XACTRM = int;
enum : int
{
XACTRM_OPTIMISTICLASTWINS = 0x00000001,
XACTRM_NOREADONLYPREPARES = 0x00000002,
}
alias XACTCONST = int;
enum : int
{
XACTCONST_TIMEOUTINFINITE = 0x00000000,
}
alias XACTHEURISTIC = int;
enum : int
{
XACTHEURISTIC_ABORT = 0x00000001,
XACTHEURISTIC_COMMIT = 0x00000002,
XACTHEURISTIC_DAMAGE = 0x00000003,
XACTHEURISTIC_DANGER = 0x00000004,
}
alias XACTSTAT = int;
enum : int
{
XACTSTAT_NONE = 0x00000000,
XACTSTAT_OPENNORMAL = 0x00000001,
XACTSTAT_OPENREFUSED = 0x00000002,
XACTSTAT_PREPARING = 0x00000004,
XACTSTAT_PREPARED = 0x00000008,
XACTSTAT_PREPARERETAINING = 0x00000010,
XACTSTAT_PREPARERETAINED = 0x00000020,
XACTSTAT_COMMITTING = 0x00000040,
XACTSTAT_COMMITRETAINING = 0x00000080,
XACTSTAT_ABORTING = 0x00000100,
XACTSTAT_ABORTED = 0x00000200,
XACTSTAT_COMMITTED = 0x00000400,
XACTSTAT_HEURISTIC_ABORT = 0x00000800,
XACTSTAT_HEURISTIC_COMMIT = 0x00001000,
XACTSTAT_HEURISTIC_DAMAGE = 0x00002000,
XACTSTAT_HEURISTIC_DANGER = 0x00004000,
XACTSTAT_FORCED_ABORT = 0x00008000,
XACTSTAT_FORCED_COMMIT = 0x00010000,
XACTSTAT_INDOUBT = 0x00020000,
XACTSTAT_CLOSED = 0x00040000,
XACTSTAT_OPEN = 0x00000003,
XACTSTAT_NOTPREPARED = 0x0007ffc3,
XACTSTAT_ALL = 0x0007ffff,
}
alias AUTHENTICATION_LEVEL = int;
enum : int
{
NO_AUTHENTICATION_REQUIRED = 0x00000000,
INCOMING_AUTHENTICATION_REQUIRED = 0x00000001,
MUTUAL_AUTHENTICATION_REQUIRED = 0x00000002,
}
alias XACT_DTC_CONSTANTS = int;
enum : int
{
XACT_E_CONNECTION_REQUEST_DENIED = 0x8004d100,
XACT_E_TOOMANY_ENLISTMENTS = 0x8004d101,
XACT_E_DUPLICATE_GUID = 0x8004d102,
XACT_E_NOTSINGLEPHASE = 0x8004d103,
XACT_E_RECOVERYALREADYDONE = 0x8004d104,
XACT_E_PROTOCOL = 0x8004d105,
XACT_E_RM_FAILURE = 0x8004d106,
XACT_E_RECOVERY_FAILED = 0x8004d107,
XACT_E_LU_NOT_FOUND = 0x8004d108,
XACT_E_DUPLICATE_LU = 0x8004d109,
XACT_E_LU_NOT_CONNECTED = 0x8004d10a,
XACT_E_DUPLICATE_TRANSID = 0x8004d10b,
XACT_E_LU_BUSY = 0x8004d10c,
XACT_E_LU_NO_RECOVERY_PROCESS = 0x8004d10d,
XACT_E_LU_DOWN = 0x8004d10e,
XACT_E_LU_RECOVERING = 0x8004d10f,
XACT_E_LU_RECOVERY_MISMATCH = 0x8004d110,
XACT_E_RM_UNAVAILABLE = 0x8004d111,
XACT_E_LRMRECOVERYALREADYDONE = 0x8004d112,
XACT_E_NOLASTRESOURCEINTERFACE = 0x8004d113,
XACT_S_NONOTIFY = 0x0004d100,
XACT_OK_NONOTIFY = 0x0004d101,
dwUSER_MS_SQLSERVER = 0x0000ffff,
}
alias _DtcLu_LocalRecovery_Work = int;
enum : int
{
DTCINITIATEDRECOVERYWORK_CHECKLUSTATUS = 0x00000001,
DTCINITIATEDRECOVERYWORK_TRANS = 0x00000002,
DTCINITIATEDRECOVERYWORK_TMDOWN = 0x00000003,
}
alias _DtcLu_Xln = int;
enum : int
{
DTCLUXLN_COLD = 0x00000001,
DTCLUXLN_WARM = 0x00000002,
}
alias _DtcLu_Xln_Confirmation = int;
enum : int
{
DTCLUXLNCONFIRMATION_CONFIRM = 0x00000001,
DTCLUXLNCONFIRMATION_LOGNAMEMISMATCH = 0x00000002,
DTCLUXLNCONFIRMATION_COLDWARMMISMATCH = 0x00000003,
DTCLUXLNCONFIRMATION_OBSOLETE = 0x00000004,
}
alias _DtcLu_Xln_Response = int;
enum : int
{
DTCLUXLNRESPONSE_OK_SENDOURXLNBACK = 0x00000001,
DTCLUXLNRESPONSE_OK_SENDCONFIRMATION = 0x00000002,
DTCLUXLNRESPONSE_LOGNAMEMISMATCH = 0x00000003,
DTCLUXLNRESPONSE_COLDWARMMISMATCH = 0x00000004,
}
alias _DtcLu_Xln_Error = int;
enum : int
{
DTCLUXLNERROR_PROTOCOL = 0x00000001,
DTCLUXLNERROR_LOGNAMEMISMATCH = 0x00000002,
DTCLUXLNERROR_COLDWARMMISMATCH = 0x00000003,
}
alias _DtcLu_CompareState = int;
enum : int
{
DTCLUCOMPARESTATE_COMMITTED = 0x00000001,
DTCLUCOMPARESTATE_HEURISTICCOMMITTED = 0x00000002,
DTCLUCOMPARESTATE_HEURISTICMIXED = 0x00000003,
DTCLUCOMPARESTATE_HEURISTICRESET = 0x00000004,
DTCLUCOMPARESTATE_INDOUBT = 0x00000005,
DTCLUCOMPARESTATE_RESET = 0x00000006,
}
alias _DtcLu_CompareStates_Confirmation = int;
enum : int
{
DTCLUCOMPARESTATESCONFIRMATION_CONFIRM = 0x00000001,
DTCLUCOMPARESTATESCONFIRMATION_PROTOCOL = 0x00000002,
}
alias _DtcLu_CompareStates_Error = int;
enum : int
{
DTCLUCOMPARESTATESERROR_PROTOCOL = 0x00000001,
}
alias _DtcLu_CompareStates_Response = int;
enum : int
{
DTCLUCOMPARESTATESRESPONSE_OK = 0x00000001,
DTCLUCOMPARESTATESRESPONSE_PROTOCOL = 0x00000002,
}
///Indicates the type of objects in a tracking information collection.
alias TRACKING_COLL_TYPE = int;
enum : int
{
///The objects in the referenced tracking information collections are processes.
TRKCOLL_PROCESSES = 0x00000000,
///The objects in the referenced tracking information collections are applications.
TRKCOLL_APPLICATIONS = 0x00000001,
///The objects in the referenced tracking information collections are components.
TRKCOLL_COMPONENTS = 0x00000002,
}
alias DUMPTYPE = int;
enum : int
{
DUMPTYPE_FULL = 0x00000000,
DUMPTYPE_MINI = 0x00000001,
DUMPTYPE_NONE = 0x00000002,
}
///Represents types of applications tracked by the tracker server.
alias COMPLUS_APPTYPE = int;
enum : int
{
///This value is not used.
APPTYPE_UNKNOWN = 0xffffffff,
///COM+ server application.
APPTYPE_SERVER = 0x00000001,
///COM+ library application.
APPTYPE_LIBRARY = 0x00000000,
///COM+ services without components.
APPTYPE_SWC = 0x00000002,
}
///Controls what data is returned from calls to the IGetAppTrackerData interface.
enum GetAppTrackerDataFlags : int
{
///Include the name of the process's executable image in the ApplicationProcessSummary structure. If set, it is the
///caller's responsibility to free the memory allocated for this string.
GATD_INCLUDE_PROCESS_EXE_NAME = 0x00000001,
///Include COM+ library applications in the tracking data. By default, these are excluded.
GATD_INCLUDE_LIBRARY_APPS = 0x00000002,
///Include Services Without Components contexts in the tracking data. By default, these are excluded.
GATD_INCLUDE_SWC = 0x00000004,
///Include the class name in the ComponentSummary structure. If set, it is the caller's responsibility to free the
///memory allocated for this string.
GATD_INCLUDE_CLASS_NAME = 0x00000008,
///Include the application name in the ApplicationSummary and ComponentSummary structures. If set, it is the
///caller's responsibility to free the memory allocated for this string.
GATD_INCLUDE_APPLICATION_NAME = 0x00000010,
}
///Indicates the readiness of an object to commit or abort the current transaction.
enum TransactionVote : int
{
///An existing object votes to commit the current transaction.
TxCommit = 0x00000000,
///An existing object votes to abort the current transaction.
TxAbort = 0x00000001,
}
///Represents the current transaction state of the transaction.
enum CrmTransactionState : int
{
///The transaction is active.
TxState_Active = 0x00000000,
///The transaction is committed.
TxState_Committed = 0x00000001,
///The transaction was aborted.
TxState_Aborted = 0x00000002,
///The transaction is in doubt.
TxState_Indoubt = 0x00000003,
}
///Indicates whether to create a new context based on the current context or to create a new context based solely upon
///the information in CServiceConfig.
alias CSC_InheritanceConfig = int;
enum : int
{
///The new context is created from the existing context.
CSC_Inherit = 0x00000000,
///The new context is created from the default context.
CSC_Ignore = 0x00000001,
}
///Indicates the thread pool in which the work runs that is submitted through the activity returned from
///CoCreateActivity.
alias CSC_ThreadPool = int;
enum : int
{
///No thread pool is used. If this value is used to configure a CServiceConfig object that is passed to
///CoCreateActivity, an error (CO_E_THREADPOOL_CONFIG) is returned. This is the default thread pool setting for
///<b>CServiceConfig</b> when CSC_InheritanceConfig is set to CSC_Ignore.
CSC_ThreadPoolNone = 0x00000000,
///The same type of thread pool apartment as the caller's thread apartment is used. If the caller's thread apartment
///is the neutral apartment, a single-threaded apartment is used. This is the default thread pool setting for
///CServiceConfig when CSC_InheritanceConfig is set to CSC_Inherit.
CSC_ThreadPoolInherit = 0x00000001,
///A single-threaded apartment (STA) is used.
CSC_STAThreadPool = 0x00000002,
///A multithreaded apartment (MTA) is used.
CSC_MTAThreadPool = 0x00000003,
}
///Indicates whether all of the work that is submitted via the activity returned from CoCreateActivity should be bound
///to only one single-threaded apartment (STA). This enumeration has no impact on the multithreaded apartment (MTA).
alias CSC_Binding = int;
enum : int
{
///The work submitted through the activity is not bound to a single STA.
CSC_NoBinding = 0x00000000,
///The work submitted through the activity is bound to a single STA.
CSC_BindToPoolThread = 0x00000001,
}
///Indicates how transactions are configured for CServiceConfig.
alias CSC_TransactionConfig = int;
enum : int
{
///Transactions are never used within the enclosed context. This is the default transaction setting for
///CServiceConfig when CSC_InheritanceConfig is set to CSC_Ignore.
CSC_NoTransaction = 0x00000000,
///Transactions are used only if the enclosed context is using a transaction; a new transaction is never created.
///This is the default transaction setting for CServiceConfig when CSC_InheritanceConfig is set to CSC_Inherit.
CSC_IfContainerIsTransactional = 0x00000001,
///Transactions are always used. The existing transaction is used, or if the enclosed context does not already use
///transactions, a new transaction is created.
CSC_CreateTransactionIfNecessary = 0x00000002,
///A new transaction is always created.
CSC_NewTransaction = 0x00000003,
}
///Indicates how synchronization is configured for CServiceConfig.
alias CSC_SynchronizationConfig = int;
enum : int
{
///The code is forced to run unsynchronized. This is the default synchronization setting for CServiceConfig when
///CSC_InheritanceConfig is set to CSC_Ignore.
CSC_NoSynchronization = 0x00000000,
///The code runs in the containing synchronization domain if one exists. This is the default synchronization setting
///for CServiceConfig when CSC_InheritanceConfig is set to CSC_Inherit.
CSC_IfContainerIsSynchronized = 0x00000001,
///Synchronization is always used. The existing synchronization domain is used, or if the enclosed context does not
///already use synchronization, a new synchronization domain is created.
CSC_NewSynchronizationIfNecessary = 0x00000002,
///A new synchronization domain is always created.
CSC_NewSynchronization = 0x00000003,
}
///Indicates whether the tracker property is added to the context in which the enclosed code runs.
alias CSC_TrackerConfig = int;
enum : int
{
///The tracker property is not added to the context in which the enclosed code runs.
CSC_DontUseTracker = 0x00000000,
///The tracker property is added to the context in which the enclosed code runs.
CSC_UseTracker = 0x00000001,
}
///Indicates the COM+ partition on which the enclosed context runs.
alias CSC_PartitionConfig = int;
enum : int
{
///The enclosed context runs on the Base Application Partition. This is the default setting for CServiceConfig when
///CSC_InheritanceConfig is set to CSC_Ignore.
CSC_NoPartition = 0x00000000,
///The enclosed context runs in the current containing COM+ partition. This is the default setting for
///CServiceConfig when CSC_InheritanceConfig is set to CSC_Inherit.
CSC_InheritPartition = 0x00000001,
///The enclosed context runs in a COM+ partition that is different from the current containing partition.
CSC_NewPartition = 0x00000002,
}
///Indicates whether the current IIS intrinsics are propagated into the new context.
alias CSC_IISIntrinsicsConfig = int;
enum : int
{
///The current IIS intrinsics do not propagate to the new context. This is the default setting for CServiceConfig
///when CSC_InheritanceConfig is set to CSC_Ignore.
CSC_NoIISIntrinsics = 0x00000000,
///The current IIS intrinsics propagate to the new context. This is the default setting for CServiceConfig when
///CSC_InheritanceConfig is set to CSC_Inherit.
CSC_InheritIISIntrinsics = 0x00000001,
}
///Indicates whether the current COM Transaction Integrator (COMTI) intrinsics are propagated into the new context.
///Values from this enumeration are passed to IServiceComTIIntrinsicsConfig::ComTIIntrinsicsConfig. The COMTI eases the
///task of wrapping mainframe transactions and business logic as COM components.
alias CSC_COMTIIntrinsicsConfig = int;
enum : int
{
///The current COMTI intrinsics do not propagate to the new context. This is the default setting for CServiceConfig
///when CSC_InheritanceConfig is set to CSC_Ignore.
CSC_NoCOMTIIntrinsics = 0x00000000,
///The current COMTI intrinsics propagate to the new context. This is the default setting for CServiceConfig when
///CSC_InheritanceConfig is set to CSC_Inherit.
CSC_InheritCOMTIIntrinsics = 0x00000001,
}
///Indicates how side-by-side assemblies are configured for CServiceConfig.
alias CSC_SxsConfig = int;
enum : int
{
///Side-by-side assemblies are not used within the enclosed context. This is the default setting for CServiceConfig
///when CSC_InheritanceConfig is set to CSC_Ignore.
CSC_NoSxs = 0x00000000,
///The current side-by-side assembly of the enclosed context is used. This is the default setting for CServiceConfig
///when CSC_InheritanceConfig is set to CSC_Inherit.
CSC_InheritSxs = 0x00000001,
///A new side-by-side assembly is created for the enclosed context.
CSC_NewSxs = 0x00000002,
}
alias __MIDL___MIDL_itf_autosvcs_0001_0150_0001 = int;
enum : int
{
mtsErrCtxAborted = 0x8004e002,
mtsErrCtxAborting = 0x8004e003,
mtsErrCtxNoContext = 0x8004e004,
mtsErrCtxNotRegistered = 0x8004e005,
mtsErrCtxSynchTimeout = 0x8004e006,
mtsErrCtxOldReference = 0x8004e007,
mtsErrCtxRoleNotFound = 0x8004e00c,
mtsErrCtxNoSecurity = 0x8004e00d,
mtsErrCtxWrongThread = 0x8004e00e,
mtsErrCtxTMNotAvailable = 0x8004e00f,
comQCErrApplicationNotQueued = 0x80110600,
comQCErrNoQueueableInterfaces = 0x80110601,
comQCErrQueuingServiceNotAvailable = 0x80110602,
comQCErrQueueTransactMismatch = 0x80110603,
comqcErrRecorderMarshalled = 0x80110604,
comqcErrOutParam = 0x80110605,
comqcErrRecorderNotTrusted = 0x80110606,
comqcErrPSLoad = 0x80110607,
comqcErrMarshaledObjSameTxn = 0x80110608,
comqcErrInvalidMessage = 0x80110650,
comqcErrMsmqSidUnavailable = 0x80110651,
comqcErrWrongMsgExtension = 0x80110652,
comqcErrMsmqServiceUnavailable = 0x80110653,
comqcErrMsgNotAuthenticated = 0x80110654,
comqcErrMsmqConnectorUsed = 0x80110655,
comqcErrBadMarshaledObject = 0x80110656,
}
alias __MIDL___MIDL_itf_autosvcs_0001_0159_0001 = int;
enum : int
{
LockSetGet = 0x00000000,
LockMethod = 0x00000001,
}
alias __MIDL___MIDL_itf_autosvcs_0001_0159_0002 = int;
enum : int
{
Standard = 0x00000000,
Process = 0x00000001,
}
///Provides information about when a particular log record to the CRM compensator was written.
alias CRMFLAGS = int;
enum : int
{
CRMFLAG_FORGETTARGET = 0x00000001,
///The record was written during prepare.
CRMFLAG_WRITTENDURINGPREPARE = 0x00000002,
///The record was written during commit.
CRMFLAG_WRITTENDURINGCOMMIT = 0x00000004,
///The record was written during abort.
CRMFLAG_WRITTENDURINGABORT = 0x00000008,
///The record was written during recovery.
CRMFLAG_WRITTENDURINGRECOVERY = 0x00000010,
///The record was written during replay.
CRMFLAG_WRITTENDURINGREPLAY = 0x00000020,
CRMFLAG_REPLAYINPROGRESS = 0x00000040,
}
///Controls which phases of transaction completion should be received by the CRM compensator and whether recovery should
///fail if in-doubt transactions remain after recovery has been attempted.
alias CRMREGFLAGS = int;
enum : int
{
///Receive the prepare phase.
CRMREGFLAG_PREPAREPHASE = 0x00000001,
///Receive the commit phase.
CRMREGFLAG_COMMITPHASE = 0x00000002,
///Receive the abort phase.
CRMREGFLAG_ABORTPHASE = 0x00000004,
///Receive all phases.
CRMREGFLAG_ALLPHASES = 0x00000007,
///Fail if in-doubt transactions remain after recovery.
CRMREGFLAG_FAILIFINDOUBTSREMAIN = 0x00000010,
}
// Structs
struct BOID
{
ubyte[16] rgb;
}
struct XACTTRANSINFO
{
BOID uow;
int isoLevel;
uint isoFlags;
uint grfTCSupported;
uint grfRMSupported;
uint grfTCSupportedRetaining;
uint grfRMSupportedRetaining;
}
struct XACTSTATS
{
uint cOpen;
uint cCommitting;
uint cCommitted;
uint cAborting;
uint cAborted;
uint cInDoubt;
uint cHeuristicDecision;
FILETIME timeTransactionsUp;
}
struct XACTOPT
{
uint ulTimeout;
ubyte[40] szDescription;
}
struct xid_t
{
int formatID;
int gtrid_length;
int bqual_length;
byte[128] data;
}
struct xa_switch_t
{
byte[32] name;
int flags;
int version_;
ptrdiff_t xa_open_entry;
ptrdiff_t xa_close_entry;
ptrdiff_t xa_start_entry;
ptrdiff_t xa_end_entry;
ptrdiff_t xa_rollback_entry;
ptrdiff_t xa_prepare_entry;
ptrdiff_t xa_commit_entry;
ptrdiff_t xa_recover_entry;
ptrdiff_t xa_forget_entry;
ptrdiff_t xa_complete_entry;
}
struct _ProxyConfigParams
{
ushort wcThreadsMax;
}
///Represents contextual information about an event, such as the time it was generated and which process server and COM+
///application generated it.
struct COMSVCSEVENTINFO
{
///The size of this structure, in bytes.
uint cbSize;
///The process ID of the server application from which the event originated.
uint dwPid;
///The coordinated universal time of the event, as seconds elapsed since midnight, January 1, 1970.
long lTime;
///The microseconds added to <b>lTime</b> for time to microsecond resolution.
int lMicroTime;
///The value of the high-resolution performance counter when the event originated.
long perfCount;
///The applications globally unique identifier (GUID) for the first component instantiated in <b>dwPid</b>. If you
///are subscribing to an administration interface or event and the event is not generated from a COM+ application,
///this member is set to zero.
GUID guidApp;
///The fully qualified name of the computer where the event originated.
PWSTR sMachineName;
}
struct RECYCLE_INFO
{
GUID guidCombaseProcessIdentifier;
long ProcessStartTime;
uint dwRecycleLifetimeLimit;
uint dwRecycleMemoryLimit;
uint dwRecycleExpirationTimeout;
}
struct HANG_INFO
{
BOOL fAppHangMonitorEnabled;
BOOL fTerminateOnHang;
DUMPTYPE DumpType;
uint dwHangTimeout;
uint dwDumpCount;
uint dwInfoMsgCount;
}
struct CAppStatistics
{
uint m_cTotalCalls;
uint m_cTotalInstances;
uint m_cTotalClasses;
uint m_cCallsPerSecond;
}
struct CAppData
{
uint m_idApp;
ushort[40] m_szAppGuid;
uint m_dwAppProcessId;
CAppStatistics m_AppStatistics;
}
struct CCLSIDData
{
GUID m_clsid;
uint m_cReferences;
uint m_cBound;
uint m_cPooled;
uint m_cInCall;
uint m_dwRespTime;
uint m_cCallsCompleted;
uint m_cCallsFailed;
}
struct CCLSIDData2
{
GUID m_clsid;
GUID m_appid;
GUID m_partid;
PWSTR m_pwszAppName;
PWSTR m_pwszCtxName;
COMPLUS_APPTYPE m_eAppType;
uint m_cReferences;
uint m_cBound;
uint m_cPooled;
uint m_cInCall;
uint m_dwRespTime;
uint m_cCallsCompleted;
uint m_cCallsFailed;
}
///Represents summary information about a process hosting COM+ applications.
struct ApplicationProcessSummary
{
///The partition ID of the COM+ server application, for server application processes. For processes that are not
///hosting a COM+ server application, this is set to the partition ID of the first tracked component instantiated in
///the process.
GUID PartitionIdPrimaryApplication;
///The application ID of the COM+ server application, for server application processes. For processes that are not
///hosting a COM+ server application, this is set to the application ID of the first tracked component instantiated
///in the process.
GUID ApplicationIdPrimaryApplication;
///The application instance GUID uniquely identifying the tracked process.
GUID ApplicationInstanceId;
///The process ID of the tracked process.
uint ProcessId;
///The type of application this process is hosting. For COM+ server application processes, this is set to
///APPTYPE_SERVER. For processes that are not hosting a COM+ server applications, this is set to either
///APPTYPE_LIBRARY or APPTYPE_SWC, based on the first tracked component instantiated in the process.
COMPLUS_APPTYPE Type;
///The name of the process's executable image. Space for this string is allocated by the method called and freed by
///the caller (for more information, see CoTaskMemFree). This member is not returned by default. To return this
///member, specify the GATD_INCLUDE_PROCESS_EXE_NAME flag when you call a method that returns an
///<b>ApplicationProcessSummary</b> structure.
PWSTR ProcessExeName;
///Indicates whether the process is a COM+ server application running as a Windows service.
BOOL IsService;
///Indicates whether the process is a COM+ server application instance that is paused.
BOOL IsPaused;
///Indicates whether the process is a COM+ server application instance that has been recycled.
BOOL IsRecycled;
}
///Represents statistical information about a process hosting COM+ applications.
struct ApplicationProcessStatistics
{
///The number of calls currently outstanding in tracked components in the process.
uint NumCallsOutstanding;
///The number of distinct tracked components instantiated in the process.
uint NumTrackedComponents;
///The number of component instances in the process.
uint NumComponentInstances;
///A rolling average of the number of calls this process is servicing per second.
uint AvgCallsPerSecond;
///This member is reserved and set to DATA_NOT_AVAILABLE (0xFFFFFFFF).
uint Reserved1;
///This member is reserved and set to DATA_NOT_AVAILABLE (0xFFFFFFFF).
uint Reserved2;
///This member is reserved and set to DATA_NOT_AVAILABLE (0xFFFFFFFF).
uint Reserved3;
///This member is reserved and set to DATA_NOT_AVAILABLE (0xFFFFFFFF).
uint Reserved4;
}
///Represents details about the recycling of a process hosting COM+ applications.
struct ApplicationProcessRecycleInfo
{
///Indicates whether the process is one that can be recycled. For example, only COM+ server applications can be
///recycled, and applications running as Windows services cannot be recycled.
BOOL IsRecyclable;
///Indicates whether the process is a COM+ server application instance that has been recycled.
BOOL IsRecycled;
///The time at which the process was recycled. This member is meaningful only if <b>IsRecycled</b> is <b>TRUE</b>.
FILETIME TimeRecycled;
///The time at which a recycled process will be forcibly terminated if it does not shut down on its own before this
///time. This member is meaningful only if <b>IsRecycled</b> is <b>TRUE</b>.
FILETIME TimeToTerminate;
///A code that indicates the reason a process was recycled. This is usually one of the recycle reason code constants
///defined in Comsvcs.h (for example, CRR_RECYCLED_FROM_UI), but may be any code supplied by an administrative
///application in a call to ICOMAdminCatalog2::RecycleApplicationInstances. This member is meaningful only if
///<b>IsRecycled</b> is <b>TRUE</b>.
int RecycleReasonCode;
///Indicates whether a paused COM+ server application instance has met the conditions for automatic recycling. If
///so, the application instance will be recycled when it is resumed.
BOOL IsPendingRecycle;
///Indicates whether the process is an instance of a COM+ server application that has been configured for automatic
///recycling based on lifetime.
BOOL HasAutomaticLifetimeRecycling;
///The time at which the process will be automatically recycled. This member is meaningful only if
///<b>HasAutomaticLifetimeRecycling</b> is <b>TRUE</b>.
FILETIME TimeForAutomaticRecycling;
///The recycling memory limit configured for a COM+ server application in kilobytes, or 0 if the application is not
///configured for automatic recycling based on memory usage.
uint MemoryLimitInKB;
///The memory usage of the process in kilobytes the last time this metric was calculated by the Tracker Server. This
///is set to DATA_NOT_AVAILABLE (0xFFFFFFFF) if the application is not configured for automatic recycling based on
///memory usage, or if memory usage has not yet been checked.
uint MemoryUsageInKBLastCheck;
///The activation limit configured for a COM+ server application, or 0 if the application is not configured for
///automatic recycling based on activation count. This data is not currently available, and is always set to
///DATA_NOT_AVAILABLE (0xFFFFFFFF).
uint ActivationLimit;
///The total number of activations performed in a COM+ server application instance, or 0 if the process is not
///hosting a COM+ server application. This data is not currently available, and is always set to DATA_NOT_AVAILABLE
///(0xFFFFFFFF).
uint NumActivationsLastReported;
///The call limit configured for a COM+ server application, or zero if the application is not configured for
///automatic recycling based on number of calls. This data is not currently available, and is always set to
///DATA_NOT_AVAILABLE (0xFFFFFFFF).
uint CallLimit;
///The total number of calls serviced by a COM+ server application instance, or 0 if the process is not hosting a
///COM+ server application. This data is not currently available, and is always set to DATA_NOT_AVAILABLE
///(0xFFFFFFFF).
uint NumCallsLastReported;
}
///Represents a COM+ application hosted in a particular process. It can also represent a pseudo-application entry for
///all Services Without Components (SWC) contexts in the process.
struct ApplicationSummary
{
///The application instance GUID that uniquely identifies the process hosting the COM+ application.
GUID ApplicationInstanceId;
///The partition ID of the COM+ application.
GUID PartitionId;
///The application ID of the COM+ application. The special value {84ac4168-6fe5-4308-a2ed-03688a023c7a} is used for
///the SWC pseudo-application.
GUID ApplicationId;
///The type of COM+ application. For a list of values, see COMPLUS_APPTYPE.
COMPLUS_APPTYPE Type;
///The name of the COM+ application, or an empty string for the SWC pseudo-application. Space for this string is
///allocated by the method called and freed by the caller (for more information, see CoTaskMemFree). This member is
///not returned by default. To return this member, specify the GATD_INCLUDE_APPLICATION_NAME flag when you call a
///method that returns an ApplicationProcessSummary structure.
PWSTR ApplicationName;
///The number of distinct components from this COM+ application instantiated in the hosting process.
uint NumTrackedComponents;
///The number of component instances from this COM+ application in the hosting process.
uint NumComponentInstances;
}
///Represents summary information about a COM+ component hosted in a particular process. It can also represent a
///Services Without Components (SWC) context.
struct ComponentSummary
{
///The application instance GUID that uniquely identifies the process that hosts the component.
GUID ApplicationInstanceId;
///The partition ID of the component.
GUID PartitionId;
///The application ID of the component. The special value {84ac4168-6fe5-4308-a2ed-03688a023c7a} indicates that this
///is an SWC context.
GUID ApplicationId;
///The CLSID of the component.
GUID Clsid;
///The name of the component. Usually, this is the component's ProgID (or the string representation of the
///component's CLSID if the component does not have a ProgID). For SWC contexts, this is the context name property
///configured for the context. Space for this string is allocated by the method called and freed by the caller (for
///more information, see CoTaskMemFree). This member is not returned by default. To return this member, specify the
///GATD_INCLUDE_CLASS_NAME flag when you call a method that returns a <b>ComponentSummary</b> structure.
PWSTR ClassName;
///The name of the COM+ application, or the application name property configured for an SWC context. Space for this
///string is allocated by the method called and freed by the caller (for more information, see CoTaskMemFree). This
///member is not returned by default. To return this member, specify the GATD_INCLUDE_APPLICATION_NAME flag when you
///call a method that returns a <b>ComponentSummary</b> structure.
PWSTR ApplicationName;
}
///Represents statistical information about a COM+ component hosted in a particular process.
struct ComponentStatistics
{
///The number of instances of the component in the hosting process.
uint NumInstances;
///The number of client references bound to an instance of this component.
uint NumBoundReferences;
///The number of instances of the component in the hosting process's object pool.
uint NumPooledObjects;
///The number of instances of the component that are currently servicing a call.
uint NumObjectsInCall;
///A rolling average of the time it takes an instance of this component to service a call.
uint AvgResponseTimeInMs;
///The number of calls to instances of this component that have completed (successfully or not) in a recent time
///period (for comparison with <b>NumCallsFailedRecent</b>).
uint NumCallsCompletedRecent;
///The number of calls to instances of this component that have failed in a recent time period (for comparison with
///<b>NumCallsCompletedRecent</b>).
uint NumCallsFailedRecent;
///The total number of calls to instances of this component that have completed (successfully or not) throughout the
///lifetime of the hosting process. This data is not currently available, and this member is always set to
///DATA_NOT_AVAILABLE (0xFFFFFFFF).
uint NumCallsCompletedTotal;
///The total number of calls to instances of this component that have failed throughout the lifetime of the hosting
///process. This data is not currently available, and this member is always set to DATA_NOT_AVAILABLE (0xFFFFFFFF).
uint NumCallsFailedTotal;
///This member is reserved and set to DATA_NOT_AVAILABLE (0xFFFFFFFF).
uint Reserved1;
///This member is reserved and set to DATA_NOT_AVAILABLE (0xFFFFFFFF).
uint Reserved2;
///This member is reserved and set to DATA_NOT_AVAILABLE (0xFFFFFFFF).
uint Reserved3;
///This member is reserved and set to DATA_NOT_AVAILABLE (0xFFFFFFFF).
uint Reserved4;
}
///Represents the hang monitoring configuration for a COM+ component.
struct ComponentHangMonitorInfo
{
///Indicates whether the component is configured for hang monitoring.
BOOL IsMonitored;
///Indicates whether the hang monitoring configuration for the component specifies the process will be terminated on
///a hang. This member is meaningful only if <b>IsMonitored</b> is <b>TRUE</b>.
BOOL TerminateOnHang;
///The average call response time threshold configured for the component. This member is meaningful only if
///<b>IsMonitored</b> is <b>TRUE</b>.
uint AvgCallThresholdInMs;
}
///Contains unstructured log records for the Compensating Resource Manager (CRM).
struct CrmLogRecordRead
{
///Information about when this record was written. For a list of values, see CRMFLAGS.
uint dwCrmFlags;
///The sequence number of the log record. Sequence numbers are not necessarily contiguous because not all internal
///log records or forgotten log records are delivered to the CRM Compensator.
uint dwSequenceNumber;
///The user data.
BLOB blobUserData;
}
///Represents a system event structure, which contains the partition and application ID from which an event originated.
struct COMEVENTSYSCHANGEINFO
{
///The size of this structure.
uint cbSize;
///The type of change that has been made to the subscription. For a list of values, see EOC_ChangeType.
EOC_ChangeType changeType;
///The EventClass ID or subscription ID from which the change impacts.
BSTR objectId;
///The EventClass partition ID or the subscriber partition ID affected.
BSTR partitionId;
///The EventClass application ID or subscriber application ID affected.
BSTR applicationId;
///This member is reserved.
GUID[10] reserved;
}
// Functions
///Retrieves a reference to the default context of the specified apartment.
///Params:
/// aptType = The apartment type of the default context that is being requested. This parameter can be one of the following
/// values. <table> <tr> <th>Value</th> <th>Meaning</th> </tr> <tr> <td width="40%"><a id="APTTYPE_CURRENT"></a><a
/// id="apttype_current"></a><dl> <dt><b>APTTYPE_CURRENT</b></dt> <dt>-1</dt> </dl> </td> <td width="60%"> The
/// caller's apartment. </td> </tr> <tr> <td width="40%"><a id="APTTYPE_MTA"></a><a id="apttype_mta"></a><dl>
/// <dt><b>APTTYPE_MTA</b></dt> <dt>1</dt> </dl> </td> <td width="60%"> The multithreaded apartment for the current
/// process. </td> </tr> <tr> <td width="40%"><a id="APTTYPE_NA"></a><a id="apttype_na"></a><dl>
/// <dt><b>APTTYPE_NA</b></dt> <dt>2</dt> </dl> </td> <td width="60%"> The neutral apartment for the current process.
/// </td> </tr> <tr> <td width="40%"><a id="APTTYPE_MAINSTA"></a><a id="apttype_mainsta"></a><dl>
/// <dt><b>APTTYPE_MAINSTA</b></dt> <dt>3</dt> </dl> </td> <td width="60%"> The main single-threaded apartment for
/// the current process. </td> </tr> </table> The APTTYPE value APTTYPE_STA (0) is not supported. A process can
/// contain multiple single-threaded apartments, each with its own context, so <b>CoGetDefaultContext</b> could not
/// determine which STA is of interest. Therefore, this function returns E_INVALIDARG if APTTYPE_STA is specified.
/// riid = The interface identifier (IID) of the interface that is being requested on the default context. Typically, the
/// caller requests IID_IObjectContext. The default context does not support all of the normal object context
/// interfaces.
/// ppv = A reference to the interface specified by riid on the default context. If the object's component is
/// non-configured, (that is, the object's component has not been imported into a COM+ application), or if the
/// <b>CoGetDefaultContext</b> function is called from a constructor or an IUnknown method, this parameter is set to
/// a <b>NULL</b> pointer.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr>
/// <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>E_INVALIDARG</b></dt> </dl> </td> <td width="60%"> One of the parameters
/// is invalid. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>CO_E_NOTINITIALIZED</b></dt> </dl> </td> <td
/// width="60%"> The caller is not in an initialized apartment. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>E_NOINTERFACE</b></dt> </dl> </td> <td width="60%"> The object context does not support the interface
/// specified by <i>riid</i>. </td> </tr> </table>
///
@DllImport("OLE32")
HRESULT CoGetDefaultContext(APTTYPE aptType, const(GUID)* riid, void** ppv);
///Creates an activity to do synchronous or asynchronous batch work that can use COM+ services without needing to create
///a COM+ component.
///Params:
/// pIUnknown = A pointer to the IUnknown interface of the object, created from the CServiceConfig class, that contains the
/// configuration information for the services to be used within the activity created by <b>CoCreateActivity</b>.
/// riid = The ID of the interface to be returned through the <i>ppObj</i> parameter. This parameter should always be
/// IID_IServiceActivity so that a pointer to IServiceActivity is returned.
/// ppObj = A pointer to the interface of an activity object. The activity object is automatically created by the call to
/// <b>CoCreateActivity</b>.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_FAIL, as well as the
/// following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>CO_E_SXS_CONFIG</b></dt> </dl> </td> <td width="60%"> The side-by-side assembly
/// configuration of the CServiceConfig object is invalid. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>CO_E_THREADPOOL_CONFIG</b></dt> </dl> </td> <td width="60%"> The thread pool configuration of the
/// CServiceConfig object is invalid. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>CO_E_TRACKER_CONFIG</b></dt>
/// </dl> </td> <td width="60%"> The tracker configuration of the CServiceConfig object is invalid. </td> </tr> <tr>
/// <td width="40%"> <dl> <dt><b>COMADMIN_E_PARTITION_ACCESSDENIED</b></dt> </dl> </td> <td width="60%"> The caller
/// does not have access permissions for the COM+ partition. </td> </tr> </table>
///
@DllImport("comsvcs")
HRESULT CoCreateActivity(IUnknown pIUnknown, const(GUID)* riid, void** ppObj);
///Used to enter code that can then use COM+ services.
///Params:
/// pConfigObject = A pointer to the IUnknown interface of the object, created from the CServiceConfig class, that contains the
/// configuration information for the services to be used within the enclosed code.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_FAIL, as well as the
/// following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>CO_E_SXS_CONFIG</b></dt> </dl> </td> <td width="60%"> The side-by-side assembly
/// configuration of the CServiceConfig object is invalid. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>CO_E_THREADPOOL_CONFIG</b></dt> </dl> </td> <td width="60%"> The thread pool configuration of the
/// CServiceConfig object is invalid. The thread apartment model cannot be reconfigured by calling
/// CoEnterServiceDomain. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>CO_E_TRACKER_CONFIG</b></dt> </dl> </td> <td
/// width="60%"> The tracker configuration of the CServiceConfig object is invalid. </td> </tr> <tr> <td width="40%">
/// <dl> <dt><b>COMADMIN_E_PARTITION_ACCESSDENIED</b></dt> </dl> </td> <td width="60%"> The caller does not have
/// access permissions for the COM+ partition. </td> </tr> </table>
///
@DllImport("comsvcs")
HRESULT CoEnterServiceDomain(IUnknown pConfigObject);
///Used to leave code that uses COM+ services.
///Params:
/// pUnkStatus = If you want to know the status of the transaction that is completed by the call, this must be a pointer to the
/// IUnknown interface of an object that implements the ITransactionStatus interface. If the enclosed code did not
/// use transactions or if you do not need to know the transaction status, this parameter should be <b>NULL</b>. This
/// parameter is ignored if it is non-<b>NULL</b> and if no transactions were used in the service domain.
@DllImport("comsvcs")
void CoLeaveServiceDomain(IUnknown pUnkStatus);
///Determines whether the installed version of COM+ supports special features provided to manage serviced components
///(managed objects).
///Params:
/// dwExts = Indicates whether the installed version of COM+ supports managed extensions. A value of 1 indicates that it does,
/// while a value of 0 indicates that it does not.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and S_OK.
///
@DllImport("comsvcs")
HRESULT GetManagedExtensions(uint* dwExts);
///<p class="CCE_Message">[Do not use SafeRef in COM+. This function was used by objects in MTS to obtain a reference to
///itself. With COM+, this is no longer necessary.]
///Params:
/// rid = A reference to the IID of the interface that the current object wants to pass to another object or client.
/// pUnk = A reference to the IUnknown interface on the current object.
///Returns:
/// If the function succeds, the return value is a pointer to the specified interface that can be passed outside the
/// current object's context. Otherwise, the return value is <b>NULL</b>.
///
@DllImport("comsvcs")
void* SafeRef(const(GUID)* rid, IUnknown pUnk);
///Recycles the calling process. For similar functionality, see IMTxAS::RecycleSurrogate.
///Params:
/// lReasonCode = The reason code that explains why a process was recycled. The following codes are defined. <table> <tr>
/// <th>Value</th> <th>Meaning</th> </tr> <tr> <td width="40%"><a id="CRR_NO_REASON_SUPPLIED"></a><a
/// id="crr_no_reason_supplied"></a><dl> <dt><b>CRR_NO_REASON_SUPPLIED</b></dt> <dt>0x00000000</dt> </dl> </td> <td
/// width="60%"> The reason is not specified. </td> </tr> <tr> <td width="40%"><a id="CRR_LIFETIME_LIMIT"></a><a
/// id="crr_lifetime_limit"></a><dl> <dt><b>CRR_LIFETIME_LIMIT</b></dt> <dt>xFFFFFFFF</dt> </dl> </td> <td
/// width="60%"> The specified number of minutes that an application runs before recycling was reached. </td> </tr>
/// <tr> <td width="40%"><a id="CRR_ACTIVATION_LIMIT"></a><a id="crr_activation_limit"></a><dl>
/// <dt><b>CRR_ACTIVATION_LIMIT</b></dt> <dt>0xFFFFFFFE</dt> </dl> </td> <td width="60%"> The specified number of
/// activations was reached. </td> </tr> <tr> <td width="40%"><a id="CRR_CALL_LIMIT"></a><a
/// id="crr_call_limit"></a><dl> <dt><b>CRR_CALL_LIMIT</b></dt> <dt>0xFFFFFFFD</dt> </dl> </td> <td width="60%"> The
/// specified number of calls to configured objects in the application was reached. </td> </tr> <tr> <td
/// width="40%"><a id="CRR_MEMORY_LIMIT"></a><a id="crr_memory_limit"></a><dl> <dt><b>CRR_MEMORY_LIMIT</b></dt>
/// <dt>0xFFFFFFFC</dt> </dl> </td> <td width="60%"> The specified memory usage that a process cannot exceed was
/// reached. </td> </tr> <tr> <td width="40%"><a id="CRR_RECYCLED_FROM_UI"></a><a id="crr_recycled_from_ui"></a><dl>
/// <dt><b>CRR_RECYCLED_FROM_UI</b></dt> <dt>xFFFFFFFB</dt> </dl> </td> <td width="60%"> An administrator decided to
/// recycle the process through the Component Services administration tool. </td> </tr> </table>
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and S_OK.
///
@DllImport("comsvcs")
HRESULT RecycleSurrogate(int lReasonCode);
///<p class="CCE_Message">[<b>MTSCreateActivity</b> is available for in the operating systems specified in the
///Requirements section. It may be altered or unavailable in subsequent versions. Instead, use the CoCreateActivity
///function.] Creates an activity in a single-threaded apartment to do synchronous or asynchronous batch work.
///Params:
/// riid = The ID of the interface to be returned by the <i>ppObj</i> parameter. This parameter should always be
/// IID_IMTSActivity so that a pointer to IMTSActivity is returned.
/// ppobj = A pointer to the interface of an activity object. The activity object is automatically created by the call to
/// <b>MTSCreateActivity</b>.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
@DllImport("comsvcs")
HRESULT MTSCreateActivity(const(GUID)* riid, void** ppobj);
///Retrieves the dispenser manager's IDispenserManager interface.
///Params:
/// Arg1 = A pointer to the location that receives the IDispenserManager interface pointer.
///Returns:
/// If the method succeeds, the return value is S_OK. Otherwise, it is E_FAIL.
///
@DllImport("MTxDM")
HRESULT GetDispenserManager(IDispenserManager* param0);
// Interfaces
@GUID("ECABB0A5-7F19-11D2-978E-0000F8757E2A")
struct SecurityIdentity;
@GUID("ECABB0A6-7F19-11D2-978E-0000F8757E2A")
struct SecurityCallers;
@GUID("ECABB0A7-7F19-11D2-978E-0000F8757E2A")
struct SecurityCallContext;
@GUID("ECABB0A8-7F19-11D2-978E-0000F8757E2A")
struct GetSecurityCallContextAppObject;
@GUID("ECABB0A9-7F19-11D2-978E-0000F8757E2A")
struct Dummy30040732;
@GUID("7999FC25-D3C6-11CF-ACAB-00A024A55AEF")
struct TransactionContext;
@GUID("5CB66670-D3D4-11CF-ACAB-00A024A55AEF")
struct TransactionContextEx;
@GUID("ECABB0AA-7F19-11D2-978E-0000F8757E2A")
struct ByotServerEx;
@GUID("ECABB0C8-7F19-11D2-978E-0000F8757E2A")
struct CServiceConfig;
@GUID("ECABB0C9-7F19-11D2-978E-0000F8757E2A")
struct ServicePool;
@GUID("ECABB0CA-7F19-11D2-978E-0000F8757E2A")
struct ServicePoolConfig;
@GUID("2A005C05-A5DE-11CF-9E66-00AA00A3F464")
struct SharedProperty;
@GUID("2A005C0B-A5DE-11CF-9E66-00AA00A3F464")
struct SharedPropertyGroup;
@GUID("2A005C11-A5DE-11CF-9E66-00AA00A3F464")
struct SharedPropertyGroupManager;
@GUID("ECABB0AB-7F19-11D2-978E-0000F8757E2A")
struct COMEvents;
@GUID("ECABB0AC-7F19-11D2-978E-0000F8757E2A")
struct CoMTSLocator;
@GUID("4B2E958D-0393-11D1-B1AB-00AA00BA3258")
struct MtsGrp;
@GUID("ECABB0C3-7F19-11D2-978E-0000F8757E2A")
struct ComServiceEvents;
@GUID("ECABB0C6-7F19-11D2-978E-0000F8757E2A")
struct ComSystemAppEventData;
@GUID("ECABB0BD-7F19-11D2-978E-0000F8757E2A")
struct CRMClerk;
@GUID("ECABB0BE-7F19-11D2-978E-0000F8757E2A")
struct CRMRecoveryClerk;
@GUID("ECABB0C1-7F19-11D2-978E-0000F8757E2A")
struct LBEvents;
@GUID("ECABB0BF-7F19-11D2-978E-0000F8757E2A")
struct MessageMover;
@GUID("ECABB0C0-7F19-11D2-978E-0000F8757E2A")
struct DispenserManager;
@GUID("ECABAFB5-7F19-11D2-978E-0000F8757E2A")
struct PoolMgr;
@GUID("ECABAFBC-7F19-11D2-978E-0000F8757E2A")
struct EventServer;
@GUID("ECABAFB9-7F19-11D2-978E-0000F8757E2A")
struct TrackerServer;
@GUID("EF24F689-14F8-4D92-B4AF-D7B1F0E70FD4")
struct AppDomainHelper;
@GUID("458AA3B5-265A-4B75-BC05-9BEA4630CF18")
struct ClrAssemblyLocator;
@GUID("F618C514-DFB8-11D1-A2CF-00805FC79235")
struct COMAdminCatalog;
@GUID("F618C515-DFB8-11D1-A2CF-00805FC79235")
struct COMAdminCatalogObject;
@GUID("F618C516-DFB8-11D1-A2CF-00805FC79235")
struct COMAdminCatalogCollection;
@GUID("4E14FBA2-2E22-11D1-9964-00C04FBBB345")
struct CEventSystem;
@GUID("AB944620-79C6-11D1-88F9-0080C7D771BF")
struct CEventPublisher;
@GUID("CDBEC9C0-7A68-11D1-88F9-0080C7D771BF")
struct CEventClass;
@GUID("7542E960-79C7-11D1-88F9-0080C7D771BF")
struct CEventSubscription;
@GUID("D0565000-9DF4-11D1-A281-00C04FCA0AA7")
struct EventObjectChange;
@GUID("BB07BACD-CD56-4E63-A8FF-CBF0355FB9F4")
struct EventObjectChange2;
///Initiates a session to do programmatic COM+ administration, access collections in the catalog, install COM+
///applications and components, start and stop services, and connect to remote servers. <b>ICOMAdminCatalog</b> provides
///access to the COM+ catalog data store.
@GUID("DD662187-DFC2-11D1-A2CF-00805FC79235")
interface ICOMAdminCatalog : IDispatch
{
///Retrieves a top-level collection on the COM+ catalog.
///Params:
/// bstrCollName = The name of the collection to be retrieved.
/// ppCatalogCollection = The ICatalogCollection interface for the collection.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT GetCollection(BSTR bstrCollName, IDispatch* ppCatalogCollection);
///Connects to the COM+ catalog on a specified remote computer.
///Params:
/// bstrCatalogServerName = The name of the remote computer. To connect to the local computer, use an empty string.
/// ppCatalogCollection = The ICatalogCollection interface for the root collection on the remote computer.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT Connect(BSTR bstrCatalogServerName, IDispatch* ppCatalogCollection);
///Retrieves the major version number of the COMAdmin library. This property is read-only.
HRESULT get_MajorVersion(int* plMajorVersion);
///Retrieves the minor version number of the COMAdmin library. This property is read-only.
HRESULT get_MinorVersion(int* plMinorVersion);
///Retrieves a collection on the COM+ catalog given the key property values for all of its parent items.
///Params:
/// bstrCollName = The name of the collection to be retrieved.
/// ppsaVarQuery = A reference to an array consisting of key property values for all parent items of the collection to be
/// retrieved.
/// ppCatalogCollection = The ICatalogCollection interface for the collection.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT GetCollectionByQuery(BSTR bstrCollName, SAFEARRAY** ppsaVarQuery, IDispatch* ppCatalogCollection);
///Imports a component already registered as an in-process server into a COM+ application.
///Params:
/// bstrApplIDOrName = The GUID or name of the application.
/// bstrCLSIDOrProgID = The CLSID or ProgID for the component to import.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT ImportComponent(BSTR bstrApplIDOrName, BSTR bstrCLSIDOrProgID);
///Installs all components (COM classes) from a DLL file into a COM+ application and registers the components in the
///COM+ class registration database.
///Params:
/// bstrApplIDOrName = The GUID or name of the application.
/// bstrDLL = The name of the DLL file containing the component to be installed.
/// bstrTLB = The name of the external type library file. If the type library file is embedded in the DLL, pass in an empty
/// string for this parameter.
/// bstrPSDLL = The name of the proxy-stub DLL file. If there is no proxy-stub DLL associated with the component, pass in an
/// empty string for this parameter.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT InstallComponent(BSTR bstrApplIDOrName, BSTR bstrDLL, BSTR bstrTLB, BSTR bstrPSDLL);
///Initiates shutdown of a COM+ server application process.
///Params:
/// bstrApplIDOrName = The GUID or name of the application.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>COMADMIN_E_OBJECT_DOES_NOT_EXIST</b></dt> </dl> </td> <td
/// width="60%"> The application does not exist. </td> </tr> </table>
///
HRESULT ShutdownApplication(BSTR bstrApplIDOrName);
///Exports a COM+ application or application proxy to a file, ready for installation on different computers.
///Params:
/// bstrApplIDOrName = The GUID or application name of the application to be exported.
/// bstrApplicationFile = The name of the file to export the application to, including the file path. If this parameter is <b>NULL</b>
/// or an empty string, the <b>ExportApplication</b> method returns E_INVALIDARG. If the path is not specified,
/// the current directory is used. If a relative path is entered, the path is relative to the current directory.
/// lOptions = Specifies the application export options. This parameter can be one of more of the following values from the
/// <b>COMAdminApplicationExportOptions</b> enumeration type. <table> <tr> <th>Value</th> <th>Meaning</th> </tr>
/// <tr> <td width="40%"><a id="COMAdminExportNoUsers"></a><a id="comadminexportnousers"></a><a
/// id="COMADMINEXPORTNOUSERS"></a><dl> <dt><b>COMAdminExportNoUsers</b></dt> <dt>0</dt> </dl> </td> <td
/// width="60%"> Export without the users assigned to application roles. </td> </tr> <tr> <td width="40%"><a
/// id="COMAdminExportUsers"></a><a id="comadminexportusers"></a><a id="COMADMINEXPORTUSERS"></a><dl>
/// <dt><b>COMAdminExportUsers</b></dt> <dt>1</dt> </dl> </td> <td width="60%"> Export with the users assigned to
/// application roles. </td> </tr> <tr> <td width="40%"><a id="COMAdminExportApplicationProxy"></a><a
/// id="comadminexportapplicationproxy"></a><a id="COMADMINEXPORTAPPLICATIONPROXY"></a><dl>
/// <dt><b>COMAdminExportApplicationProxy</b></dt> <dt>2</dt> </dl> </td> <td width="60%"> Export applications as
/// proxies. </td> </tr> <tr> <td width="40%"><a id="COMAdminExportForceOverwriteOfFile"></a><a
/// id="comadminexportforceoverwriteoffile"></a><a id="COMADMINEXPORTFORCEOVERWRITEOFFILE"></a><dl>
/// <dt><b>COMAdminExportForceOverwriteOfFile</b></dt> <dt>4</dt> </dl> </td> <td width="60%"> Overwrite existing
/// files. </td> </tr> <tr> <td width="40%"><a id="COMAdminExportIn10Format"></a><a
/// id="comadminexportin10format"></a><a id="COMADMINEXPORTIN10FORMAT"></a><dl>
/// <dt><b>COMAdminExportIn10Format</b></dt> <dt>16</dt> </dl> </td> <td width="60%"> Export in COM+ 1.0 (Windows
/// 2000) format. </td> </tr> </table>
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>COMADMIN_E_OBJECT_DOES_NOT_EXIST</b></dt> </dl> </td> <td
/// width="60%"> The application does not exist. </td> </tr> </table>
///
HRESULT ExportApplication(BSTR bstrApplIDOrName, BSTR bstrApplicationFile, int lOptions);
///Installs a COM+ application or application proxy from the specified file.
///Params:
/// bstrApplicationFile = The name of the file containing the application to be installed.
/// bstrDestinationDirectory = Where to install the components. If this parameter is blank, the default directory is used.
/// lOptions = The option flags. This parameter can be one of the following values. <table> <tr> <th>Value</th>
/// <th>Meaning</th> </tr> <tr> <td width="40%"><a id="COMAdminInstallNoUsers"></a><a
/// id="comadmininstallnousers"></a><a id="COMADMININSTALLNOUSERS"></a><dl>
/// <dt><b>COMAdminInstallNoUsers</b></dt> <dt>0</dt> </dl> </td> <td width="60%"> Do not install users saved in
/// application file (default). </td> </tr> <tr> <td width="40%"><a id="COMAdminInstallUsers"></a><a
/// id="comadmininstallusers"></a><a id="COMADMININSTALLUSERS"></a><dl> <dt><b>COMAdminInstallUsers</b></dt>
/// <dt>1</dt> </dl> </td> <td width="60%"> Install users saved in an application file. </td> </tr> <tr> <td
/// width="40%"><a id="COMAdminInstallForceOverwriteOfFiles"></a><a
/// id="comadmininstallforceoverwriteoffiles"></a><a id="COMADMININSTALLFORCEOVERWRITEOFFILES"></a><dl>
/// <dt><b>COMAdminInstallForceOverwriteOfFiles</b></dt> <dt>2</dt> </dl> </td> <td width="60%"> Overwrite files.
/// </td> </tr> </table>
/// bstrUserId = The user ID under which to run the application.
/// bstrPassword = The password under which to run the application.
/// bstrRSN = A remote server name to use for an application proxy.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>ERROR_INSTALL_FAILURE</b></dt> </dl> </td> <td width="60%"> A fatal
/// error occurred during installation. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>COMADMIN_E_OBJECT_DOES_NOT_EXIST</b></dt> </dl> </td> <td width="60%"> The application does not exist.
/// </td> </tr> <tr> <td width="40%"> <dl> <dt><b>COMADMIN_E_OBJECTERRORS</b></dt> </dl> </td> <td width="60%">
/// An error occurred accessing one or more objects. </td> </tr> </table>
///
HRESULT InstallApplication(BSTR bstrApplicationFile, BSTR bstrDestinationDirectory, int lOptions,
BSTR bstrUserId, BSTR bstrPassword, BSTR bstrRSN);
///Stops the component load balancing service if the service is currently installed.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>COMADMIN_E_SERVICENOTINSTALLED</b></dt> </dl> </td> <td width="60%">
/// The component load balancing service is not currently installed on the computer. </td> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>COMADMIN_E_OBJECTERRORS</b></dt> </dl> </td> <td width="60%"> Errors occurred while
/// accessing one or more objects. </td> </tr> </table>
///
HRESULT StopRouter();
///This method is obsolete.
HRESULT RefreshRouter();
///Starts the component load balancing service if the service is currently installed.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>COMADMIN_E_SERVICENOTINSTALLED</b></dt> </dl> </td> <td width="60%">
/// The component load balancing service is not currently installed on the computer. </td> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>COMADMIN_E_OBJECTERRORS</b></dt> </dl> </td> <td width="60%"> Errors occurred while
/// accessing one or more objects. </td> </tr> </table>
///
HRESULT StartRouter();
HRESULT Reserved1();
HRESULT Reserved2();
///Installs components from multiple files into a COM+ application.
///Params:
/// bstrApplIDOrName = The GUID or name of the application.
/// ppsaVarFileNames = An array of the names of the DLL files that contains the components to be installed.
/// ppsaVarCLSIDs = An array of CLSIDs for the components to be installed.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>COMADMIN_E_OBJECTERRORS</b></dt> </dl> </td> <td width="60%"> Errors
/// occurred while accessing one or more objects. </td> </tr> </table>
///
HRESULT InstallMultipleComponents(BSTR bstrApplIDOrName, SAFEARRAY** ppsaVarFileNames,
SAFEARRAY** ppsaVarCLSIDs);
///Retrieves information about the components found in the specified files.
///Params:
/// bstrApplIdOrName = The GUID or application name representing the application.
/// ppsaVarFileNames = An array of names of files containing the components.
/// ppsaVarCLSIDs = An array of component CLSIDs.
/// ppsaVarClassNames = An array of component class names.
/// ppsaVarFileFlags = An array for file flags containing information about the files.
/// ppsaVarComponentFlags = An array for the component flags used to represent information about components in files.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>COMADMIN_E_OBJECTERRORS</b></dt> </dl> </td> <td width="60%"> Errors
/// occurred while accessing one or more objects. </td> </tr> </table>
///
HRESULT GetMultipleComponentsInfo(BSTR bstrApplIdOrName, SAFEARRAY** ppsaVarFileNames,
SAFEARRAY** ppsaVarCLSIDs, SAFEARRAY** ppsaVarClassNames,
SAFEARRAY** ppsaVarFileFlags, SAFEARRAY** ppsaVarComponentFlags);
///Updates component registration information from the registry. You generally should not use
///<b>RefreshComponents</b>. The recommended way to update components in COM+ applications is to remove and
///reinstall the components using ICOMAdminCatalog::InstallComponent so that complete registration information is
///updated in the registry database.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT RefreshComponents();
///Backs up the COM+ class registration database to a specified file.
///Params:
/// bstrBackupFilePath = The path for the file in which the registration database is to be backed up.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT BackupREGDB(BSTR bstrBackupFilePath);
///Restores the COM+ class registration database (RegDB) from the specified file. For this to take effect, a system
///reboot is required.
///Params:
/// bstrBackupFilePath = The name of the file to which the database was backed up.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>E_NOTIMPL</b></dt> </dl> </td> <td width="60%"> The method is not
/// implemented. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>COMADMIN_E_OBJECTERRORS</b></dt> </dl> </td> <td
/// width="60%"> Errors occurred while accessing one or more objects. </td> </tr> </table>
///
HRESULT RestoreREGDB(BSTR bstrBackupFilePath);
///Retrieves information about a COM+ application from an application file.
///Params:
/// bstrApplicationFile = The application file from which information is to be retrieved.
/// pbstrApplicationName = The application name in the specified file.
/// pbstrApplicationDescription = The application description.
/// pbHasUsers = Indicates whether the application has user information associated with its roles.
/// pbIsProxy = Indicates whether the file contains an application proxy.
/// ppsaVarFileNames = An array of names of the DLL files for the components installed in the application.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT QueryApplicationFile(BSTR bstrApplicationFile, BSTR* pbstrApplicationName,
BSTR* pbstrApplicationDescription, short* pbHasUsers, short* pbIsProxy,
SAFEARRAY** ppsaVarFileNames);
///Starts the specified COM+ server application. The application components are launched in a dedicated server
///process.
///Params:
/// bstrApplIdOrName = The GUID or name of the application. If a GUID is used, it must be surrounded by braces.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT StartApplication(BSTR bstrApplIdOrName);
///Retrieves the current status of the specified COM+ service.
///Params:
/// lService = The service for which status is to be checked. This parameter can be COMAdminServiceLoadBalanceRouter (1) to
/// check the component load balancing service.
/// plStatus = The status for the specified service. <table> <tr> <th>Value</th> <th>Meaning</th> </tr> <tr> <td
/// width="40%"><a id="COMAdminServiceStopped"></a><a id="comadminservicestopped"></a><a
/// id="COMADMINSERVICESTOPPED"></a><dl> <dt><b>COMAdminServiceStopped</b></dt> <dt>0</dt> </dl> </td> <td
/// width="60%"> The service is stopped. </td> </tr> <tr> <td width="40%"><a
/// id="COMAdminServiceStartPending"></a><a id="comadminservicestartpending"></a><a
/// id="COMADMINSERVICESTARTPENDING"></a><dl> <dt><b>COMAdminServiceStartPending</b></dt> <dt>1</dt> </dl> </td>
/// <td width="60%"> The service is due to start. </td> </tr> <tr> <td width="40%"><a
/// id="COMAdminServiceStopPending"></a><a id="comadminservicestoppending"></a><a
/// id="COMADMINSERVICESTOPPENDING"></a><dl> <dt><b>COMAdminServiceStopPending</b></dt> <dt>2</dt> </dl> </td>
/// <td width="60%"> The service is due to stop. </td> </tr> <tr> <td width="40%"><a
/// id="COMAdminServiceRunning"></a><a id="comadminservicerunning"></a><a id="COMADMINSERVICERUNNING"></a><dl>
/// <dt><b>COMAdminServiceRunning</b></dt> <dt>3</dt> </dl> </td> <td width="60%"> The service is running. </td>
/// </tr> <tr> <td width="40%"><a id="COMAdminServiceContinuePending"></a><a
/// id="comadminservicecontinuepending"></a><a id="COMADMINSERVICECONTINUEPENDING"></a><dl>
/// <dt><b>COMAdminServiceContinuePending</b></dt> <dt>4</dt> </dl> </td> <td width="60%"> The service is due to
/// continue. </td> </tr> <tr> <td width="40%"><a id="COMAdminServicePausePending"></a><a
/// id="comadminservicepausepending"></a><a id="COMADMINSERVICEPAUSEPENDING"></a><dl>
/// <dt><b>COMAdminServicePausePending</b></dt> <dt>5</dt> </dl> </td> <td width="60%"> The service is due to
/// pause. </td> </tr> <tr> <td width="40%"><a id="COMAdminServicePaused"></a><a
/// id="comadminservicepaused"></a><a id="COMADMINSERVICEPAUSED"></a><dl> <dt><b>COMAdminServicePaused</b></dt>
/// <dt>6</dt> </dl> </td> <td width="60%"> The service is paused. </td> </tr> <tr> <td width="40%"><a
/// id="COMAdminServiceUnknownState"></a><a id="comadminserviceunknownstate"></a><a
/// id="COMADMINSERVICEUNKNOWNSTATE"></a><dl> <dt><b>COMAdminServiceUnknownState</b></dt> <dt>7</dt> </dl> </td>
/// <td width="60%"> The service status is unknown. </td> </tr> </table>
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT ServiceCheck(int lService, int* plStatus);
///Installs event classes from multiple files into a COM+ application.
///Params:
/// bstrApplIdOrName = The GUID or name of the application.
/// ppsaVarFileNames = An array of the names of the DLL files that contains the event classes to be installed.
/// ppsaVarCLSIDS = An array of CLSIDs for the event classes to be installed.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT InstallMultipleEventClasses(BSTR bstrApplIdOrName, SAFEARRAY** ppsaVarFileNames,
SAFEARRAY** ppsaVarCLSIDS);
///Installs event classes from a file into a COM+ application.
///Params:
/// bstrApplIdOrName = The GUID or name of the application.
/// bstrDLL = The file name of the DLL containing the event classes to be installed.
/// bstrTLB = The name of an external type library file. If the type library file is embedded in the DLL, pass in an empty
/// string for this parameter.
/// bstrPSDLL = The name of the proxy-stub DLL file. If there is no proxy-stub DLL associated with the event class, pass in
/// an empty string for this parameter.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT InstallEventClass(BSTR bstrApplIdOrName, BSTR bstrDLL, BSTR bstrTLB, BSTR bstrPSDLL);
///Retrieves a list of the event classes registered on the computer that implement a specified interface.
///Params:
/// bstrIID = A GUID representing the interface for which event classes should be found. If this parameter is <b>NULL</b>,
/// the method retrieves all event classes registered on the computer.
/// ppsaVarCLSIDs = An array of CLSIDs for the event classes implementing the interface specified in <i>bstrIID</i>.
/// ppsaVarProgIDs = An array of ProgIDs for the event classes implementing the interface specified in <i>bstrIID</i>.
/// ppsaVarDescriptions = An array of descriptions for the event classes implementing the interface specified in <i>bstrIID</i>.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT GetEventClassesForIID(BSTR bstrIID, SAFEARRAY** ppsaVarCLSIDs, SAFEARRAY** ppsaVarProgIDs,
SAFEARRAY** ppsaVarDescriptions);
}
///An extension of the ICOMAdminCatalog interface. The <b>ICOMAdminCatalog2</b> methods are used to control the
///interactions of applications, components, and partitions. These methods enable developers to control application
///execution, to dump applications or partitions to disk, to move components between applications, and to move
///applications between partitions.
@GUID("790C6E0B-9194-4CC9-9426-A48A63185696")
interface ICOMAdminCatalog2 : ICOMAdminCatalog
{
///Retrieves a collection of items in the COM+ catalog that satisfy the specified set of query keys.
///Params:
/// bstrCollectionName = The name of the collection to be retrieved from the catalog. Possible collection names can be found in the
/// table of collections at COM+ Administration Collections.
/// pVarQueryStrings = The query keys.
/// ppCatalogCollection = A pointer to an ICatalogCollection interface pointer containing the result of the query.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT GetCollectionByQuery2(BSTR bstrCollectionName, VARIANT* pVarQueryStrings,
IDispatch* ppCatalogCollection);
///Retrieives the application instance identifier for the specified process identifier.
///Params:
/// lProcessID = The process ID.
/// pbstrApplicationInstanceID = The corresponding application instance ID.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT GetApplicationInstanceIDFromProcessID(int lProcessID, BSTR* pbstrApplicationInstanceID);
///Initiates shutdown of the specified application server processes.
///Params:
/// pVarApplicationInstanceID = The application instances to be shut down. Each element of the <b>Variant</b> may be a <b>String</b>
/// containing an application instance GUID (for example, as returned by the
/// GetApplicationInstanceIDFromProcessID method), a single catalog object, or a catalog collection (for example,
/// as returned by the GetCollectionByQuery2 method).
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>COMADIN_E_OBJECT_DOES_NOT_EXIST</b></dt> </dl> </td> <td width="60%">
/// A specified application instance does not exist. </td> </tr> </table>
///
HRESULT ShutdownApplicationInstances(VARIANT* pVarApplicationInstanceID);
///Pauses the specified application server processes.
///Params:
/// pVarApplicationInstanceID = The application instances to be paused. Each element of the <b>Variant</b> may be a <b>String</b> containing
/// an application instance GUID (for example, as returned by the GetApplicationInstanceIDFromProcessID method),
/// a single catalog object, or a catalog collection (for example, as returned by the GetCollectionByQuery2
/// method).
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>COMADIN_E_OBJECT_DOES_NOT_EXIST</b></dt> </dl> </td> <td width="60%">
/// A specified application instance does not exist. </td> </tr> </table>
///
HRESULT PauseApplicationInstances(VARIANT* pVarApplicationInstanceID);
///Resumes the specified application server processes.
///Params:
/// pVarApplicationInstanceID = The application instances to be resumed. Each element of the <b>Variant</b> may be a <b>String</b> containing
/// an application instance GUID (for example, as returned by the GetApplicationInstanceIDFromProcessID method),
/// a single catalog object, or a catalog collection (for example, as returned by the GetCollectionByQuery2
/// method).
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>COMADIN_E_OBJECT_DOES_NOT_EXIST</b></dt> </dl> </td> <td width="60%">
/// A specified application instance does not exist. </td> </tr> </table>
///
HRESULT ResumeApplicationInstances(VARIANT* pVarApplicationInstanceID);
///Recycles (shuts down and restarts) the specified application server processes.
///Params:
/// pVarApplicationInstanceID = The application instances to be recycled. Each element of the <b>Variant</b> may be a <b>String</b>
/// containing an application instance GUID (for example, as returned by the
/// GetApplicationInstanceIDFromProcessID method), a single catalog object, or a catalog collection (for example,
/// as returned by the GetCollectionByQuery2 method).
/// lReasonCode = The reason for recycling the specified application instances. This code is written to an event log entry.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>COMADIN_E_OBJECT_DOES_NOT_EXIST</b></dt> </dl> </td> <td width="60%">
/// A specified application instance does not exist. </td> </tr> </table>
///
HRESULT RecycleApplicationInstances(VARIANT* pVarApplicationInstanceID, int lReasonCode);
///Determines whether any of the specified application instances (processes) are paused.
///Params:
/// pVarApplicationInstanceID = The application instances to be checked. Each element of the <b>Variant</b> may be a <b>String</b> containing
/// an application instance ID (for example, as returned by the GetApplicationInstanceIDFromProcessID method), a
/// single catalog object, or a catalog collection (for example, as returned by the GetCollectionByQuery2
/// method).
/// pVarBoolPaused = Indicates whether the specified applications are paused.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>COMADIN_E_OBJECT_DOES_NOT_EXIST</b></dt> </dl> </td> <td width="60%">
/// A specified application instance does not exist. </td> </tr> </table>
///
HRESULT AreApplicationInstancesPaused(VARIANT* pVarApplicationInstanceID, short* pVarBoolPaused);
///Creates a dump file containing an image of the state of the specified application instance (process). <div
///class="alert"><b>Note</b> As of Windows Server 2003, only administrators have read access privileges to the COM+
///dump files.</div><div> </div>
///Params:
/// bstrApplicationInstanceID = The GUID of the application instance.
/// bstrDirectory = The complete path to the directory into which the dump file is placed. Do not include the file name. If this
/// parameter is <b>NULL</b>, the default directory is %SystemRoot%\system32\com\dmp.
/// lMaxImages = The maximum number of dump files that may exist in the dump directory. Specifying this variable prevents dump
/// files from consuming too much storage space.
/// pbstrDumpFile = The name of the dump file containing the resulting application instance image.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>COMADMIN_E_APP_NOT_RUNNING</b></dt> </dl> </td> <td width="60%"> The
/// specified process is not running. </td> </tr> </table>
///
HRESULT DumpApplicationInstance(BSTR bstrApplicationInstanceID, BSTR bstrDirectory, int lMaxImages,
BSTR* pbstrDumpFile);
///Indicates whether the software required for application instance dumps is installed. This property is read-only.
HRESULT get_IsApplicationInstanceDumpSupported(short* pVarBoolDumpSupported);
///Configures a COM+ application to run as a Windows service.
///Params:
/// bstrApplicationIDOrName = The application ID or name of the application.
/// bstrServiceName = The service name of the application. This name is the internal name used by the service control manager
/// (SCM), not the display name.
/// bstrStartType = When to start the service. The valid arguments are the options of the <i>dwStartType</i> parameter of the
/// CreateService function. The arguments must be in quotes. The following are the valid arguments:
/// SERVICE_BOOT_START, SERVICE_SYSTEM_START, SERVICE_AUTO_START, SERVICE_DEMAND_START, and SERVICE_DISABLED.
/// bstrErrorControl = The severity of the error if this service fails to start during startup. The error determines the action
/// taken by the startup program if failure occurs. The valid arguments are the options of the
/// <i>dwErrorControl</i> parameter of the CreateService function. The arguments must be in quotes. The following
/// are the valid arguments: SERVICE_ERROR_IGNORE, SERVICE_ERROR_NORMAL, SERVICE_ERROR_SEVERE, and
/// SERVICE_ERROR_CRITICAL.
/// bstrDependencies = A list of dependencies for the service. There are two possible formats for the string: a standard
/// null-delimited, double-null-terminated string (exactly as documented for CreateService); or a script-friendly
/// list of service names separated by "\" (an invalid character to have in a service name). The rpcss service is
/// implicit in this parameter and does not need to be specified.
/// bstrRunAs = The user name to run this service as. If this parameter is <b>NULL</b>, the service will run as Local
/// Service.
/// bstrPassword = The password for the system user account. This parameter must be <b>NULL</b> if the service is configured to
/// run as Local Service.
/// bDesktopOk = Indicates whether the service should be allowed to interact with the desktop. This parameter is valid only
/// when the service is marked as Local Service and must be <b>FALSE</b> otherwise.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT CreateServiceForApplication(BSTR bstrApplicationIDOrName, BSTR bstrServiceName, BSTR bstrStartType,
BSTR bstrErrorControl, BSTR bstrDependencies, BSTR bstrRunAs,
BSTR bstrPassword, short bDesktopOk);
///Deletes the Windows service associated with the specified COM+ application.
///Params:
/// bstrApplicationIDOrName = The application ID or name of the COM+ application to be deleted.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT DeleteServiceForApplication(BSTR bstrApplicationIDOrName);
///Retrieves the partition identifier for the specified COM+ application.
///Params:
/// bstrApplicationIDOrName = The application ID or name of a COM+ application.
/// pbstrPartitionID = The partition GUID associated with the specified application.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>COMADMIN_E_AMBIGUOUS_APPLICATION_NAME</b></dt> </dl> </td> <td
/// width="60%"> The named application exists in multiple partitions. To avoid this error, use an application ID
/// instead of a name. </td> </tr> </table>
///
HRESULT GetPartitionID(BSTR bstrApplicationIDOrName, BSTR* pbstrPartitionID);
///Retrieves the name of the specified COM+ application.
///Params:
/// bstrApplicationIDOrName = The application ID or name of a COM+ application.
/// pbstrPartitionName = The partition name associated with the specified application.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>COMADMIN_E_AMBIGUOUS_APPLICATION_NAME</b></dt> </dl> </td> <td
/// width="60%"> The named application exists in multiple partitions. To avoid this error, use an application ID
/// instead of a name. </td> </tr> </table>
///
HRESULT GetPartitionName(BSTR bstrApplicationIDOrName, BSTR* pbstrPartitionName);
///Sets the current destination partition. This property is write-only.
HRESULT put_CurrentPartition(BSTR bstrPartitionIDOrName);
///Retrieves the identifier for the current partition. This property is read-only.
HRESULT get_CurrentPartitionID(BSTR* pbstrPartitionID);
///Retrieves the name of the current partition. This property is read-only.
HRESULT get_CurrentPartitionName(BSTR* pbstrPartitionName);
///Retrieves the identifier for the global partition. This property is read-only.
HRESULT get_GlobalPartitionID(BSTR* pbstrGlobalPartitionID);
///Empties the cache that maps users to their default partitions. COM+ caches users' default partitions to avoid
///repetitive Active Directory requests. You might want to call this method after changing a user's default
///partition in Active Directory.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT FlushPartitionCache();
///Copies the specified COM+ applications from one partition to another.
///Params:
/// bstrSourcePartitionIDOrName = The partition GUID or the name of the source partition.
/// pVarApplicationID = The applications to be copied. Each element of the <b>Variant</b> may be a <b>String</b> containing an
/// application name or ID, a single catalog object, or a catalog collection (as returned, for example, by the
/// GetCollectionByQuery2 method).
/// bstrDestinationPartitionIDOrName = The partition GUID or the name of the destination partition.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT CopyApplications(BSTR bstrSourcePartitionIDOrName, VARIANT* pVarApplicationID,
BSTR bstrDestinationPartitionIDOrName);
///Copies the specified components from one partition to another.
///Params:
/// bstrSourceApplicationIDOrName = The application ID or name of the source application.
/// pVarCLSIDOrProgID = The components to be copied. Each element of the <b>Variant</b> may be a <b>String</b> containing a class ID
/// or program ID, a single catalog object, or a catalog collection (for example, as returned by the
/// GetCollectionByQuery2 method).
/// bstrDestinationApplicationIDOrName = The application ID or name of the destination application.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>COMADMIN_E_AMBIGUOUS_APPLICATION_NAME</b></dt> </dl> </td> <td
/// width="60%"> At least one of the named applications exists in multiple partitions. To avoid this error, use
/// application IDs instead of names. </td> </tr> </table>
///
HRESULT CopyComponents(BSTR bstrSourceApplicationIDOrName, VARIANT* pVarCLSIDOrProgID,
BSTR bstrDestinationApplicationIDOrName);
///Moves the specified components from one application to another.
///Params:
/// bstrSourceApplicationIDOrName = The application ID or name of the source application.
/// pVarCLSIDOrProgID = The components to be moved. Each element of the <b>Variant</b> may be a <b>String</b> containing a class ID
/// or program ID, a single catalog object, or a catalog collection (for example, as returned by the
/// GetCollectionByQuery2 method).
/// bstrDestinationApplicationIDOrName = The application ID or name of the destination application.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>COMADIN_E_AMBIGUOUS_APPLICATION_NAME</b></dt> </dl> </td> <td
/// width="60%"> At least one of the named applications exists in multiple partitions. To avoid this error, use
/// application IDs instead of names. </td> </tr> </table>
///
HRESULT MoveComponents(BSTR bstrSourceApplicationIDOrName, VARIANT* pVarCLSIDOrProgID,
BSTR bstrDestinationApplicationIDOrName);
///Creates an alias for an existing COM+ component.
///Params:
/// bstrSrcApplicationIDOrName = The application ID or name of the source application containing the component.
/// bstrCLSIDOrProgID = The class ID or program ID of the component for which an alias is created.
/// bstrDestApplicationIDOrName = The application ID or the name of the destination application that contains the alias. If this argument is
/// <b>NULL</b> or an empty string, the alias is created within the source application.
/// bstrNewProgId = The program ID of the alias.
/// bstrNewClsid = The class ID of the alias. If this argument is <b>NULL</b> or an empty string, a new, unique class ID is
/// assigned.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>COMADMIN_E_AMBIGUOUS_APPLICATION_NAME</b></dt> </dl> </td> <td
/// width="60%"> At least one of the named applications exists in multiple partitions. To avoid this error, use
/// application IDs instead of names. </td> </tr> </table>
///
HRESULT AliasComponent(BSTR bstrSrcApplicationIDOrName, BSTR bstrCLSIDOrProgID,
BSTR bstrDestApplicationIDOrName, BSTR bstrNewProgId, BSTR bstrNewClsid);
///Determines whether the specified DLL is in use by the COM+ catalog or the registry.
///Params:
/// bstrDllName = The full path to the DLL to be tested.
/// pCOMAdminInUse = Indicates the DLL usage. This parameter can be one of the following values. <table> <tr> <th>Value</th>
/// <th>Meaning</th> </tr> <tr> <td width="40%"><a id="COMAdminNotInUse"></a><a id="comadminnotinuse"></a><a
/// id="COMADMINNOTINUSE"></a><dl> <dt><b>COMAdminNotInUse</b></dt> <dt>0</dt> </dl> </td> <td width="60%"> The
/// DLL is not in use and may safely be deleted. </td> </tr> <tr> <td width="40%"><a
/// id="COMAdminInUseByCatalog"></a><a id="comadmininusebycatalog"></a><a id="COMADMININUSEBYCATALOG"></a><dl>
/// <dt><b>COMAdminInUseByCatalog</b></dt> <dt>0x1</dt> </dl> </td> <td width="60%"> The DLL is in use by the
/// COM+ catalog. </td> </tr> <tr> <td width="40%"><a id="COMAdminInUseByRegistryUnknown"></a><a
/// id="comadmininusebyregistryunknown"></a><a id="COMADMININUSEBYREGISTRYUNKNOWN"></a><dl>
/// <dt><b>COMAdminInUseByRegistryUnknown</b></dt> <dt>0x2</dt> </dl> </td> <td width="60%"> The DLL is in use by
/// an unknown registry component. </td> </tr> <tr> <td width="40%"><a
/// id="COMAdminInUseByRegistryProxyStub"></a><a id="comadmininusebyregistryproxystub"></a><a
/// id="COMADMININUSEBYREGISTRYPROXYSTUB"></a><dl> <dt><b>COMAdminInUseByRegistryProxyStub</b></dt> <dt>0x3</dt>
/// </dl> </td> <td width="60%"> The DLL is in use by the proxy registry component. </td> </tr> <tr> <td
/// width="40%"><a id="COMAdminInUseByRegistryTypeLib"></a><a id="comadmininusebyregistrytypelib"></a><a
/// id="COMADMININUSEBYREGISTRYTYPELIB"></a><dl> <dt><b>COMAdminInUseByRegistryTypeLib</b></dt> <dt>0x4</dt>
/// </dl> </td> <td width="60%"> The DLL is in use by the TypeLib registry component. </td> </tr> <tr> <td
/// width="40%"><a id="COMAdminInUseByRegistryClsid"></a><a id="comadmininusebyregistryclsid"></a><a
/// id="COMADMININUSEBYREGISTRYCLSID"></a><dl> <dt><b>COMAdminInUseByRegistryClsid</b></dt> <dt>0x5</dt> </dl>
/// </td> <td width="60%"> The DLL is in use by the CLSID registry component. </td> </tr> </table>
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT IsSafeToDelete(BSTR bstrDllName, COMAdminInUse* pCOMAdminInUse);
///Imports the specified classes into a COM+ application as unconfigured components.
///Params:
/// bstrApplicationIDOrName = The application ID or name of the application into which the components are to be imported.
/// pVarCLSIDOrProgID = The unconfigured components to be imported. Each element of the <b>Variant</b> may be a <b>String</b>
/// containing a class ID or program ID, a single catalog object, or a catalog collection (for example, as
/// returned by the GetCollectionByQuery2 method).
/// pVarComponentType = The bitnes of each component. This parameter can be one of the following values. If this parameter is
/// omitted, the native bitness of the computer is assumed. <table> <tr> <th>Value</th> <th>Meaning</th> </tr>
/// <tr> <td width="40%"><a id="COMAdmin32BitComponent"></a><a id="comadmin32bitcomponent"></a><a
/// id="COMADMIN32BITCOMPONENT"></a><dl> <dt><b>COMAdmin32BitComponent</b></dt> <dt>0x1</dt> </dl> </td> <td
/// width="60%"> Uses a 32-bit format. </td> </tr> <tr> <td width="40%"><a id="COMAdmin64BitComponent"></a><a
/// id="comadmin64bitcomponent"></a><a id="COMADMIN64BITCOMPONENT"></a><dl>
/// <dt><b>COMAdmin64BitComponent</b></dt> <dt>0x2</dt> </dl> </td> <td width="60%"> Uses a 64-bit format. </td>
/// </tr> </table>
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT ImportUnconfiguredComponents(BSTR bstrApplicationIDOrName, VARIANT* pVarCLSIDOrProgID,
VARIANT* pVarComponentType);
///Promotes the specified classes from unconfigured components to configured components. <div
///class="alert"><b>Note</b> Before calling this method, its necessary to first import the unconfigured components
///by using the ImportUnconfiguredComponents method. Otherwise, this method returns an E_INVALIDARG
///error.</div><div> </div>
///Params:
/// bstrApplicationIDOrName = The application ID or name of the application containing the components to be promoted.
/// pVarCLSIDOrProgID = The unconfigured components to be promoted. Each element of the <b>Variant</b> may be a <b>String</b>
/// containing a class ID or program ID, a single catalog object, or a catalog collection (for example, as
/// returned by the GetCollectionByQuery2 method).
/// pVarComponentType = The bitnes of each component. This parameter can be one of the following values. If this parameter is
/// omitted, the native bitness of the computer is assumed. <table> <tr> <th>Value</th> <th>Meaning</th> </tr>
/// <tr> <td width="40%"><a id="COMAdmin32BitComponent"></a><a id="comadmin32bitcomponent"></a><a
/// id="COMADMIN32BITCOMPONENT"></a><dl> <dt><b>COMAdmin32BitComponent</b></dt> <dt>0x1</dt> </dl> </td> <td
/// width="60%"> Uses a 32-bit format. </td> </tr> <tr> <td width="40%"><a id="COMAdmin64BitComponent"></a><a
/// id="comadmin64bitcomponent"></a><a id="COMADMIN64BITCOMPONENT"></a><dl>
/// <dt><b>COMAdmin64BitComponent</b></dt> <dt>0x2</dt> </dl> </td> <td width="60%"> Uses a 64-bit format. </td>
/// </tr> </table>
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT PromoteUnconfiguredComponents(BSTR bstrApplicationIDOrName, VARIANT* pVarCLSIDOrProgID,
VARIANT* pVarComponentType);
///Imports the specified components that are already registered into an application. To import unconfigured
///components, you can use the ImportUnconfiguredComponents and PromoteUnconfiguredComponents methods.
///Params:
/// bstrApplicationIDOrName = The application ID or name of the application into which the components are to be imported.
/// pVarCLSIDOrProgID = The components to be imported. Each element of the <b>Variant</b> may be a <b>String</b> containing a class
/// ID or program ID, a single catalog object, or a catalog collection (for example, as returned by the
/// GetCollectionByQuery2 method).
/// pVarComponentType = The bitnes of each component. This parameter can be one of the following values. If this parameter is
/// omitted, the native bitness of the computer is assumed. <table> <tr> <th>Value</th> <th>Meaning</th> </tr>
/// <tr> <td width="40%"><a id="COMAdmin32BitComponent"></a><a id="comadmin32bitcomponent"></a><a
/// id="COMADMIN32BITCOMPONENT"></a><dl> <dt><b>COMAdmin32BitComponent</b></dt> <dt>0x1</dt> </dl> </td> <td
/// width="60%"> Uses a 32-bit format. </td> </tr> <tr> <td width="40%"><a id="COMAdmin64BitComponent"></a><a
/// id="comadmin64bitcomponent"></a><a id="COMADMIN64BITCOMPONENT"></a><dl>
/// <dt><b>COMAdmin64BitComponent</b></dt> <dt>0x2</dt> </dl> </td> <td width="60%"> Uses a 64-bit format. </td>
/// </tr> </table>
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT ImportComponents(BSTR bstrApplicationIDOrName, VARIANT* pVarCLSIDOrProgID, VARIANT* pVarComponentType);
///Indicates whether the currently connected catalog server is a 64-bit computer. This property is read-only.
HRESULT get_Is64BitCatalogServer(short* pbIs64Bit);
///Exports a partition to a file. An exported partition can be imported using the InstallPartition method.
///Params:
/// bstrPartitionIDOrName = The partition GUID or name of the partition.
/// bstrPartitionFileName = The file to which the specified partition is exported. If no path is specified, the current directory is
/// used. If no file name is specified, the application name is used.
/// lOptions = The option flags. This parameter can be one or more of the following values. <table> <tr> <th>Value</th>
/// <th>Meaning</th> </tr> <tr> <td width="40%"><a id="COMAdminExportNoUsers"></a><a
/// id="comadminexportnousers"></a><a id="COMADMINEXPORTNOUSERS"></a><dl> <dt><b>COMAdminExportNoUsers</b></dt>
/// <dt>0</dt> </dl> </td> <td width="60%"> Do not export users with roles (default). </td> </tr> <tr> <td
/// width="40%"><a id="COMAdminExportUsers"></a><a id="comadminexportusers"></a><a
/// id="COMADMINEXPORTUSERS"></a><dl> <dt><b>COMAdminExportUsers</b></dt> <dt>1</dt> </dl> </td> <td width="60%">
/// Export users with roles. </td> </tr> <tr> <td width="40%"><a id="COMAdminExportApplicationProxy"></a><a
/// id="comadminexportapplicationproxy"></a><a id="COMADMINEXPORTAPPLICATIONPROXY"></a><dl>
/// <dt><b>COMAdminExportApplicationProxy</b></dt> <dt>2</dt> </dl> </td> <td width="60%"> Export applications as
/// proxies. </td> </tr> <tr> <td width="40%"><a id="COMAdminExportForceOverwriteOfFile"></a><a
/// id="comadminexportforceoverwriteoffile"></a><a id="COMADMINEXPORTFORCEOVERWRITEOFFILE"></a><dl>
/// <dt><b>COMAdminExportForceOverwriteOfFile</b></dt> <dt>4</dt> </dl> </td> <td width="60%"> Overwrite existing
/// files. </td> </tr> <tr> <td width="40%"><a id="COMAdminExportIn10Format"></a><a
/// id="comadminexportin10format"></a><a id="COMADMINEXPORTIN10FORMAT"></a><dl>
/// <dt><b>COMAdminExportIn10Format</b></dt> <dt>16</dt> </dl> </td> <td width="60%"> Export in COM+ 1.0 format.
/// </td> </tr> </table>
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>COMADMIN_E_OBJECT_DOES_NOT_EXIST</b></dt> </dl> </td> <td
/// width="60%"> The specified partition does not exist. </td> </tr> </table>
///
HRESULT ExportPartition(BSTR bstrPartitionIDOrName, BSTR bstrPartitionFileName, int lOptions);
///Imports a partition from a file.
///Params:
/// bstrFileName = The file from which the partition is to be imported.
/// bstrDestDirectory = The path to the directory in which to install the partition components.
/// lOptions = The install options. This parameter can be one of the following values. <table> <tr> <th>Value</th>
/// <th>Meaning</th> </tr> <tr> <td width="40%"><a id="COMAdminInstallNoUsers"></a><a
/// id="comadmininstallnousers"></a><a id="COMADMININSTALLNOUSERS"></a><dl>
/// <dt><b>COMAdminInstallNoUsers</b></dt> <dt>0</dt> </dl> </td> <td width="60%"> Do not install users saved in
/// the partition (default). </td> </tr> <tr> <td width="40%"><a id="COMAdminInstallUsers"></a><a
/// id="comadmininstallusers"></a><a id="COMADMININSTALLUSERS"></a><dl> <dt><b>COMAdminInstallUsers</b></dt>
/// <dt>1</dt> </dl> </td> <td width="60%"> Install users saved in the partition. </td> </tr> <tr> <td
/// width="40%"><a id="COMAdminInstallForceOverwriteOfFile"></a><a
/// id="comadmininstallforceoverwriteoffile"></a><a id="COMADMININSTALLFORCEOVERWRITEOFFILE"></a><dl>
/// <dt><b>COMAdminInstallForceOverwriteOfFile</b></dt> <dt>2</dt> </dl> </td> <td width="60%"> Overwrite
/// existing files. </td> </tr> </table>
/// bstrUserID = The user ID under which to install the partition.
/// bstrPassword = The password for the specified user.
/// bstrRSN = The name of a remote server to use as a proxy.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT InstallPartition(BSTR bstrFileName, BSTR bstrDestDirectory, int lOptions, BSTR bstrUserID,
BSTR bstrPassword, BSTR bstrRSN);
///Retrieves information about an application that is about to be installed.
///Params:
/// bstrApplicationFile = The full path to the application file.
/// ppFilesForImport = A pointer to an ICatalogCollection interface pointer that specifies the FilesForImport collection for the
/// application.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT QueryApplicationFile2(BSTR bstrApplicationFile, IDispatch* ppFilesForImport);
///Retrieves the number of partitions in which a specified component is installed.
///Params:
/// bstrCLSIDOrProgID = The class ID or program ID of the component.
/// plVersionCount = The number of different partitions in which the component is installed.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT GetComponentVersionCount(BSTR bstrCLSIDOrProgID, int* plVersionCount);
}
///Represents items in collections on the COM+ catalog. <b>ICatalogObject</b> enables you to get and put properties
///exposed by objects in the catalog. The ICatalogCollection::Item method returns a pointer to <b>ICatalogObject</b>
///when it retrieves an item in the collection.
@GUID("6EB22871-8A19-11D0-81B6-00A0C9231C29")
interface ICatalogObject : IDispatch
{
///Accesses the value of the specified property exposed by this catalog object. This property is read/write.
HRESULT get_Value(BSTR bstrPropName, VARIANT* pvarRetVal);
///Accesses the value of the specified property exposed by this catalog object. This property is read/write.
HRESULT put_Value(BSTR bstrPropName, VARIANT val);
///Retrieves the key property of the object. This property is read-only.
HRESULT get_Key(VARIANT* pvarRetVal);
///Retrieves the name property of the object. This property is read-only.
HRESULT get_Name(VARIANT* pvarRetVal);
///Indicates whether the specified property can be modified using Value.
///Params:
/// bstrPropName = The name of the property to be modified.
/// pbRetVal = If this value is True, you cannot modify the property. Otherwise, you can modify the property.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT IsPropertyReadOnly(BSTR bstrPropName, short* pbRetVal);
///Indicates whether all properties were successfully read from the catalog data store. This property is read-only.
HRESULT get_Valid(short* pbRetVal);
///Indicates whether the specified property can be read using Value.
///Params:
/// bstrPropName = The name of the property to be read.
/// pbRetVal = If this value is True, you cannot read the property. Otherwise, you can read the property.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT IsPropertyWriteOnly(BSTR bstrPropName, short* pbRetVal);
}
///Represents any collection in the COM+ catalog. <b>ICatalogCollection</b> enables you to enumerate, add, remove, and
///retrieve items in a collection and to access related collections.
@GUID("6EB22872-8A19-11D0-81B6-00A0C9231C29")
interface ICatalogCollection : IDispatch
{
///Retrieves an enumerator that can be used to iterate through the collection objects. This property is read-only.
HRESULT get__NewEnum(IUnknown* ppEnumVariant);
///Retrieves the item that correspond to the specified index. This property is read-only.
HRESULT get_Item(int lIndex, IDispatch* ppCatalogObject);
///Retrieves the number of items in the collection. This property is read-only.
HRESULT get_Count(int* plObjectCount);
///Removes an item from the collection, given its index, and re-indexes the items with higher index values.
///Params:
/// lIndex = The zero-based index of the item to be removed.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT Remove(int lIndex);
///Adds an item to the collection, giving it the high index value.
///Params:
/// ppCatalogObject = A pointer to the ICatalogObject interface pointer for the new object.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT Add(IDispatch* ppCatalogObject);
///Populates the collection with data for all items contained in the collection.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>COMADMIN_E_OBJECTERRORS </b></dt> </dl> </td> <td width="60%"> Errors
/// occurred while accessing one or more objects. </td> </tr> </table>
///
HRESULT Populate();
///Saves all pending changes made to the collection and the items it contains to the COM+ catalog data store.
///Params:
/// pcChanges = The number of changes to the collection that are being attempted; if no changes are pending, the value is
/// zero. If some changes fail, this returned value does not reflect the failure; it is still the number of
/// changes attempted.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>COMADMIN_E_OBJECTERRORS </b></dt> </dl> </td> <td width="60%"> Errors
/// occurred while accessing one or more objects. </td> </tr> </table>
///
HRESULT SaveChanges(int* pcChanges);
///Retrieves a collection from the COM+ catalog that is related to the current collection.
///Params:
/// bstrCollName = The name of the collection to be retrieved.
/// varObjectKey = The Key property value of the parent item of the collection to be retrieved.
/// ppCatalogCollection = The ICatalogCollection interface for the retrieved collection.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT GetCollection(BSTR bstrCollName, VARIANT varObjectKey, IDispatch* ppCatalogCollection);
///Retrieves the name of the collection. This property is read-only.
HRESULT get_Name(VARIANT* pVarNamel);
///Indicates whether the Add method is enabled for the collection. This property is read-only.
HRESULT get_AddEnabled(short* pVarBool);
///Indicates whether the Remove method is enabled for the collection. This property is read-only.
HRESULT get_RemoveEnabled(short* pVarBool);
///<p class="CCE_Message">[This method is for use with MTS 2.0 administration interfaces and objects and should not
///be used with COM+ administration interfaces and objects. It works as before with MTS 2.0 administration
///interfaces and objects, with the exception of IRemoteComponentUtil, which is no longer supported.] Retrieves the
///utility interface for the collection.
///Params:
/// ppIDispatch = The utility interface.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>COMADMIN_E_OBJECTERRORS </b></dt> </dl> </td> <td width="60%"> Errors
/// occurred while accessing one or more objects. </td> </tr> </table>
///
HRESULT GetUtilInterface(IDispatch* ppIDispatch);
///Retrieves the major version number of the catalog data store. This property is read-only.
HRESULT get_DataStoreMajorVersion(int* plMajorVersion);
///Retrieves the minor version number of the catalog data store. This property is read-only.
HRESULT get_DataStoreMinorVersion(int* plMinorVersionl);
///Populates a selected list of items in the collection from the COM+ catalog, based on the specified keys.
///Params:
/// psaKeys = The Key property value of the objects for which data is to be read.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>COMADMIN_E_OBJECTERRORS </b></dt> </dl> </td> <td width="60%"> Errors
/// occurred while accessing one or more objects. </td> </tr> </table>
///
HRESULT PopulateByKey(SAFEARRAY* psaKeys);
///Reserved for future use.
///Params:
/// bstrQueryString =
/// lQueryType =
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>COMADMIN_E_OBJECTERRORS </b></dt> </dl> </td> <td width="60%"> Errors
/// occurred while accessing one or more objects. </td> </tr> </table>
///
HRESULT PopulateByQuery(BSTR bstrQueryString, int lQueryType);
}
@GUID("0FB15084-AF41-11CE-BD2B-204C4F4F5020")
interface ITransaction : IUnknown
{
HRESULT Commit(BOOL fRetaining, uint grfTC, uint grfRM);
HRESULT Abort(BOID* pboidReason, BOOL fRetaining, BOOL fAsync);
HRESULT GetTransactionInfo(XACTTRANSINFO* pinfo);
}
@GUID("02656950-2152-11D0-944C-00A0C905416E")
interface ITransactionCloner : ITransaction
{
HRESULT CloneWithCommitDisabled(ITransaction* ppITransaction);
}
@GUID("34021548-0065-11D3-BAC1-00C04F797BE2")
interface ITransaction2 : ITransactionCloner
{
HRESULT GetTransactionInfo2(XACTTRANSINFO* pinfo);
}
@GUID("3A6AD9E1-23B9-11CF-AD60-00AA00A74CCD")
interface ITransactionDispenser : IUnknown
{
HRESULT GetOptionsObject(ITransactionOptions* ppOptions);
HRESULT BeginTransaction(IUnknown punkOuter, int isoLevel, uint isoFlags, ITransactionOptions pOptions,
ITransaction* ppTransaction);
}
@GUID("3A6AD9E0-23B9-11CF-AD60-00AA00A74CCD")
interface ITransactionOptions : IUnknown
{
HRESULT SetOptions(XACTOPT* pOptions);
HRESULT GetOptions(XACTOPT* pOptions);
}
@GUID("3A6AD9E2-23B9-11CF-AD60-00AA00A74CCD")
interface ITransactionOutcomeEvents : IUnknown
{
HRESULT Committed(BOOL fRetaining, BOID* pNewUOW, HRESULT hr);
HRESULT Aborted(BOID* pboidReason, BOOL fRetaining, BOID* pNewUOW, HRESULT hr);
HRESULT HeuristicDecision(uint dwDecision, BOID* pboidReason, HRESULT hr);
HRESULT Indoubt();
}
@GUID("30274F88-6EE4-474E-9B95-7807BC9EF8CF")
interface ITmNodeName : IUnknown
{
HRESULT GetNodeNameSize(uint* pcbNodeNameSize);
HRESULT GetNodeName(uint cbNodeNameBufferSize, PWSTR pNodeNameBuffer);
}
@GUID("79427A2B-F895-40E0-BE79-B57DC82ED231")
interface IKernelTransaction : IUnknown
{
HRESULT GetHandle(HANDLE* pHandle);
}
@GUID("69E971F0-23CE-11CF-AD60-00AA00A74CCD")
interface ITransactionResourceAsync : IUnknown
{
HRESULT PrepareRequest(BOOL fRetaining, uint grfRM, BOOL fWantMoniker, BOOL fSinglePhase);
HRESULT CommitRequest(uint grfRM, BOID* pNewUOW);
HRESULT AbortRequest(BOID* pboidReason, BOOL fRetaining, BOID* pNewUOW);
HRESULT TMDown();
}
@GUID("C82BD532-5B30-11D3-8A91-00C04F79EB6D")
interface ITransactionLastResourceAsync : IUnknown
{
HRESULT DelegateCommit(uint grfRM);
HRESULT ForgetRequest(BOID* pNewUOW);
}
@GUID("EE5FF7B3-4572-11D0-9452-00A0C905416E")
interface ITransactionResource : IUnknown
{
HRESULT PrepareRequest(BOOL fRetaining, uint grfRM, BOOL fWantMoniker, BOOL fSinglePhase);
HRESULT CommitRequest(uint grfRM, BOID* pNewUOW);
HRESULT AbortRequest(BOID* pboidReason, BOOL fRetaining, BOID* pNewUOW);
HRESULT TMDown();
}
@GUID("0FB15081-AF41-11CE-BD2B-204C4F4F5020")
interface ITransactionEnlistmentAsync : IUnknown
{
HRESULT PrepareRequestDone(HRESULT hr, IMoniker pmk, BOID* pboidReason);
HRESULT CommitRequestDone(HRESULT hr);
HRESULT AbortRequestDone(HRESULT hr);
}
@GUID("C82BD533-5B30-11D3-8A91-00C04F79EB6D")
interface ITransactionLastEnlistmentAsync : IUnknown
{
HRESULT TransactionOutcome(XACTSTAT XactStat, BOID* pboidReason);
}
@GUID("E1CF9B53-8745-11CE-A9BA-00AA006C3706")
interface ITransactionExportFactory : IUnknown
{
HRESULT GetRemoteClassId(GUID* pclsid);
HRESULT Create(uint cbWhereabouts, ubyte* rgbWhereabouts, ITransactionExport* ppExport);
}
@GUID("0141FDA4-8FC0-11CE-BD18-204C4F4F5020")
interface ITransactionImportWhereabouts : IUnknown
{
HRESULT GetWhereaboutsSize(uint* pcbWhereabouts);
HRESULT GetWhereabouts(uint cbWhereabouts, ubyte* rgbWhereabouts, uint* pcbUsed);
}
@GUID("0141FDA5-8FC0-11CE-BD18-204C4F4F5020")
interface ITransactionExport : IUnknown
{
HRESULT Export(IUnknown punkTransaction, uint* pcbTransactionCookie);
HRESULT GetTransactionCookie(IUnknown punkTransaction, uint cbTransactionCookie, ubyte* rgbTransactionCookie,
uint* pcbUsed);
}
@GUID("E1CF9B5A-8745-11CE-A9BA-00AA006C3706")
interface ITransactionImport : IUnknown
{
HRESULT Import(uint cbTransactionCookie, ubyte* rgbTransactionCookie, GUID* piid, void** ppvTransaction);
}
@GUID("17CF72D0-BAC5-11D1-B1BF-00C04FC2F3EF")
interface ITipTransaction : IUnknown
{
HRESULT Push(ubyte* i_pszRemoteTmUrl, PSTR* o_ppszRemoteTxUrl);
HRESULT GetTransactionUrl(PSTR* o_ppszLocalTxUrl);
}
@GUID("17CF72D1-BAC5-11D1-B1BF-00C04FC2F3EF")
interface ITipHelper : IUnknown
{
HRESULT Pull(ubyte* i_pszTxUrl, ITransaction* o_ppITransaction);
HRESULT PullAsync(ubyte* i_pszTxUrl, ITipPullSink i_pTipPullSink, ITransaction* o_ppITransaction);
HRESULT GetLocalTmUrl(ubyte** o_ppszLocalTmUrl);
}
@GUID("17CF72D2-BAC5-11D1-B1BF-00C04FC2F3EF")
interface ITipPullSink : IUnknown
{
HRESULT PullComplete(HRESULT i_hrPull);
}
@GUID("9797C15D-A428-4291-87B6-0995031A678D")
interface IDtcNetworkAccessConfig : IUnknown
{
HRESULT GetAnyNetworkAccess(BOOL* pbAnyNetworkAccess);
HRESULT SetAnyNetworkAccess(BOOL bAnyNetworkAccess);
HRESULT GetNetworkAdministrationAccess(BOOL* pbNetworkAdministrationAccess);
HRESULT SetNetworkAdministrationAccess(BOOL bNetworkAdministrationAccess);
HRESULT GetNetworkTransactionAccess(BOOL* pbNetworkTransactionAccess);
HRESULT SetNetworkTransactionAccess(BOOL bNetworkTransactionAccess);
HRESULT GetNetworkClientAccess(BOOL* pbNetworkClientAccess);
HRESULT SetNetworkClientAccess(BOOL bNetworkClientAccess);
HRESULT GetNetworkTIPAccess(BOOL* pbNetworkTIPAccess);
HRESULT SetNetworkTIPAccess(BOOL bNetworkTIPAccess);
HRESULT GetXAAccess(BOOL* pbXAAccess);
HRESULT SetXAAccess(BOOL bXAAccess);
HRESULT RestartDtcService();
}
@GUID("A7AA013B-EB7D-4F42-B41C-B2DEC09AE034")
interface IDtcNetworkAccessConfig2 : IDtcNetworkAccessConfig
{
HRESULT GetNetworkInboundAccess(BOOL* pbInbound);
HRESULT GetNetworkOutboundAccess(BOOL* pbOutbound);
HRESULT SetNetworkInboundAccess(BOOL bInbound);
HRESULT SetNetworkOutboundAccess(BOOL bOutbound);
HRESULT GetAuthenticationLevel(AUTHENTICATION_LEVEL* pAuthLevel);
HRESULT SetAuthenticationLevel(AUTHENTICATION_LEVEL AuthLevel);
}
@GUID("76E4B4F3-2CA5-466B-89D5-FD218EE75B49")
interface IDtcNetworkAccessConfig3 : IDtcNetworkAccessConfig2
{
HRESULT GetLUAccess(BOOL* pbLUAccess);
HRESULT SetLUAccess(BOOL bLUAccess);
}
@GUID("F3B1F131-EEDA-11CE-AED4-00AA0051E2C4")
interface IXATransLookup : IUnknown
{
HRESULT Lookup(ITransaction* ppTransaction);
}
@GUID("BF193C85-0D1A-4290-B88F-D2CB8873D1E7")
interface IXATransLookup2 : IUnknown
{
HRESULT Lookup(xid_t* pXID, ITransaction* ppTransaction);
}
@GUID("0D563181-DEFB-11CE-AED1-00AA0051E2C4")
interface IResourceManagerSink : IUnknown
{
HRESULT TMDown();
}
///The <code>IResourceManager</code> interface resolves contentions for system resources. The filter graph manager
///exposes this interface. Filters can use this interface to request resources that other objects are likely to use. For
///example, audio renderers use this interface to resolve contentions for the wave-output device, to enable sound to
///follow focus. Applications will typically not use this interface. An object can use this interface to resolve
///possible contentions between existing resources. The object registers the resource with the interface and then
///requests it whenever needed. The object should notify the filter graph manager whenever the user focus changes. The
///filter graph manager can then switch contended resources to the objects that have the focus of the user. An object
///that uses this interface must implement the IResourceConsumer interface. <b>IResourceConsumer</b> provides a callback
///mechanism for the filter graph manager to notify the object when a resource becomes available, or when the object
///should release a resource that it acquired.
@GUID("13741D21-87EB-11CE-8081-0080C758527E")
interface IResourceManager : IUnknown
{
HRESULT Enlist(ITransaction pTransaction, ITransactionResourceAsync pRes, BOID* pUOW, int* pisoLevel,
ITransactionEnlistmentAsync* ppEnlist);
HRESULT Reenlist(ubyte* pPrepInfo, uint cbPrepInfo, uint lTimeout, XACTSTAT* pXactStat);
HRESULT ReenlistmentComplete();
HRESULT GetDistributedTransactionManager(const(GUID)* iid, void** ppvObject);
}
@GUID("4D964AD4-5B33-11D3-8A91-00C04F79EB6D")
interface ILastResourceManager : IUnknown
{
HRESULT TransactionCommitted(ubyte* pPrepInfo, uint cbPrepInfo);
HRESULT RecoveryDone();
}
@GUID("D136C69A-F749-11D1-8F47-00C04F8EE57D")
interface IResourceManager2 : IResourceManager
{
HRESULT Enlist2(ITransaction pTransaction, ITransactionResourceAsync pResAsync, BOID* pUOW, int* pisoLevel,
xid_t* pXid, ITransactionEnlistmentAsync* ppEnlist);
HRESULT Reenlist2(xid_t* pXid, uint dwTimeout, XACTSTAT* pXactStat);
}
@GUID("6F6DE620-B5DF-4F3E-9CFA-C8AEBD05172B")
interface IResourceManagerRejoinable : IResourceManager2
{
HRESULT Rejoin(ubyte* pPrepInfo, uint cbPrepInfo, uint lTimeout, XACTSTAT* pXactStat);
}
@GUID("C8A6E3A1-9A8C-11CF-A308-00A0C905416E")
interface IXAConfig : IUnknown
{
HRESULT Initialize(GUID clsidHelperDll);
HRESULT Terminate();
}
@GUID("E793F6D1-F53D-11CF-A60D-00A0C905416E")
interface IRMHelper : IUnknown
{
HRESULT RMCount(uint dwcTotalNumberOfRMs);
HRESULT RMInfo(xa_switch_t* pXa_Switch, BOOL fCDeclCallingConv, byte* pszOpenString, byte* pszCloseString,
GUID guidRMRecovery);
}
@GUID("E793F6D2-F53D-11CF-A60D-00A0C905416E")
interface IXAObtainRMInfo : IUnknown
{
HRESULT ObtainRMInfo(IRMHelper pIRMHelper);
}
@GUID("13741D20-87EB-11CE-8081-0080C758527E")
interface IResourceManagerFactory : IUnknown
{
HRESULT Create(GUID* pguidRM, byte* pszRMName, IResourceManagerSink pIResMgrSink, IResourceManager* ppResMgr);
}
@GUID("6B369C21-FBD2-11D1-8F47-00C04F8EE57D")
interface IResourceManagerFactory2 : IResourceManagerFactory
{
HRESULT CreateEx(GUID* pguidRM, byte* pszRMName, IResourceManagerSink pIResMgrSink, const(GUID)* riidRequested,
void** ppvResMgr);
}
@GUID("80C7BFD0-87EE-11CE-8081-0080C758527E")
interface IPrepareInfo : IUnknown
{
HRESULT GetPrepareInfoSize(uint* pcbPrepInfo);
HRESULT GetPrepareInfo(ubyte* pPrepInfo);
}
@GUID("5FAB2547-9779-11D1-B886-00C04FB9618A")
interface IPrepareInfo2 : IUnknown
{
HRESULT GetPrepareInfoSize(uint* pcbPrepInfo);
HRESULT GetPrepareInfo(uint cbPrepareInfo, ubyte* pPrepInfo);
}
@GUID("C23CC370-87EF-11CE-8081-0080C758527E")
interface IGetDispenser : IUnknown
{
HRESULT GetDispenser(const(GUID)* iid, void** ppvObject);
}
@GUID("5433376C-414D-11D3-B206-00C04FC2F3EF")
interface ITransactionVoterBallotAsync2 : IUnknown
{
HRESULT VoteRequestDone(HRESULT hr, BOID* pboidReason);
}
@GUID("5433376B-414D-11D3-B206-00C04FC2F3EF")
interface ITransactionVoterNotifyAsync2 : ITransactionOutcomeEvents
{
HRESULT VoteRequest();
}
@GUID("5433376A-414D-11D3-B206-00C04FC2F3EF")
interface ITransactionVoterFactory2 : IUnknown
{
HRESULT Create(ITransaction pTransaction, ITransactionVoterNotifyAsync2 pVoterNotify,
ITransactionVoterBallotAsync2* ppVoterBallot);
}
@GUID("82DC88E1-A954-11D1-8F88-00600895E7D5")
interface ITransactionPhase0EnlistmentAsync : IUnknown
{
HRESULT Enable();
HRESULT WaitForEnlistment();
HRESULT Phase0Done();
HRESULT Unenlist();
HRESULT GetTransaction(ITransaction* ppITransaction);
}
@GUID("EF081809-0C76-11D2-87A6-00C04F990F34")
interface ITransactionPhase0NotifyAsync : IUnknown
{
HRESULT Phase0Request(BOOL fAbortingHint);
HRESULT EnlistCompleted(HRESULT status);
}
@GUID("82DC88E0-A954-11D1-8F88-00600895E7D5")
interface ITransactionPhase0Factory : IUnknown
{
HRESULT Create(ITransactionPhase0NotifyAsync pPhase0Notify,
ITransactionPhase0EnlistmentAsync* ppPhase0Enlistment);
}
@GUID("59313E01-B36C-11CF-A539-00AA006887C3")
interface ITransactionTransmitter : IUnknown
{
HRESULT Set(ITransaction pTransaction);
HRESULT GetPropagationTokenSize(uint* pcbToken);
HRESULT MarshalPropagationToken(uint cbToken, ubyte* rgbToken, uint* pcbUsed);
HRESULT UnmarshalReturnToken(uint cbReturnToken, ubyte* rgbReturnToken);
HRESULT Reset();
}
@GUID("59313E00-B36C-11CF-A539-00AA006887C3")
interface ITransactionTransmitterFactory : IUnknown
{
HRESULT Create(ITransactionTransmitter* ppTransmitter);
}
@GUID("59313E03-B36C-11CF-A539-00AA006887C3")
interface ITransactionReceiver : IUnknown
{
HRESULT UnmarshalPropagationToken(uint cbToken, ubyte* rgbToken, ITransaction* ppTransaction);
HRESULT GetReturnTokenSize(uint* pcbReturnToken);
HRESULT MarshalReturnToken(uint cbReturnToken, ubyte* rgbReturnToken, uint* pcbUsed);
HRESULT Reset();
}
@GUID("59313E02-B36C-11CF-A539-00AA006887C3")
interface ITransactionReceiverFactory : IUnknown
{
HRESULT Create(ITransactionReceiver* ppReceiver);
}
@GUID("4131E760-1AEA-11D0-944B-00A0C905416E")
interface IDtcLuConfigure : IUnknown
{
HRESULT Add(ubyte* pucLuPair, uint cbLuPair);
HRESULT Delete(ubyte* pucLuPair, uint cbLuPair);
}
@GUID("AC2B8AD2-D6F0-11D0-B386-00A0C9083365")
interface IDtcLuRecovery : IUnknown
{
}
@GUID("4131E762-1AEA-11D0-944B-00A0C905416E")
interface IDtcLuRecoveryFactory : IUnknown
{
HRESULT Create(ubyte* pucLuPair, uint cbLuPair, IDtcLuRecovery* ppRecovery);
}
@GUID("4131E765-1AEA-11D0-944B-00A0C905416E")
interface IDtcLuRecoveryInitiatedByDtcTransWork : IUnknown
{
HRESULT GetLogNameSizes(uint* pcbOurLogName, uint* pcbRemoteLogName);
HRESULT GetOurXln(_DtcLu_Xln* pXln, ubyte* pOurLogName, ubyte* pRemoteLogName, uint* pdwProtocol);
HRESULT HandleConfirmationFromOurXln(_DtcLu_Xln_Confirmation Confirmation);
HRESULT HandleTheirXlnResponse(_DtcLu_Xln Xln, ubyte* pRemoteLogName, uint cbRemoteLogName, uint dwProtocol,
_DtcLu_Xln_Confirmation* pConfirmation);
HRESULT HandleErrorFromOurXln(_DtcLu_Xln_Error Error);
HRESULT CheckForCompareStates(BOOL* fCompareStates);
HRESULT GetOurTransIdSize(uint* pcbOurTransId);
HRESULT GetOurCompareStates(ubyte* pOurTransId, _DtcLu_CompareState* pCompareState);
HRESULT HandleTheirCompareStatesResponse(_DtcLu_CompareState CompareState,
_DtcLu_CompareStates_Confirmation* pConfirmation);
HRESULT HandleErrorFromOurCompareStates(_DtcLu_CompareStates_Error Error);
HRESULT ConversationLost();
HRESULT GetRecoverySeqNum(int* plRecoverySeqNum);
HRESULT ObsoleteRecoverySeqNum(int lNewRecoverySeqNum);
}
@GUID("4131E766-1AEA-11D0-944B-00A0C905416E")
interface IDtcLuRecoveryInitiatedByDtcStatusWork : IUnknown
{
HRESULT HandleCheckLuStatus(int lRecoverySeqNum);
}
@GUID("4131E764-1AEA-11D0-944B-00A0C905416E")
interface IDtcLuRecoveryInitiatedByDtc : IUnknown
{
HRESULT GetWork(_DtcLu_LocalRecovery_Work* pWork, void** ppv);
}
@GUID("AC2B8AD1-D6F0-11D0-B386-00A0C9083365")
interface IDtcLuRecoveryInitiatedByLuWork : IUnknown
{
HRESULT HandleTheirXln(int lRecoverySeqNum, _DtcLu_Xln Xln, ubyte* pRemoteLogName, uint cbRemoteLogName,
ubyte* pOurLogName, uint cbOurLogName, uint dwProtocol, _DtcLu_Xln_Response* pResponse);
HRESULT GetOurLogNameSize(uint* pcbOurLogName);
HRESULT GetOurXln(_DtcLu_Xln* pXln, ubyte* pOurLogName, uint* pdwProtocol);
HRESULT HandleConfirmationOfOurXln(_DtcLu_Xln_Confirmation Confirmation);
HRESULT HandleTheirCompareStates(ubyte* pRemoteTransId, uint cbRemoteTransId, _DtcLu_CompareState CompareState,
_DtcLu_CompareStates_Response* pResponse, _DtcLu_CompareState* pCompareState);
HRESULT HandleConfirmationOfOurCompareStates(_DtcLu_CompareStates_Confirmation Confirmation);
HRESULT HandleErrorFromOurCompareStates(_DtcLu_CompareStates_Error Error);
HRESULT ConversationLost();
}
@GUID("4131E768-1AEA-11D0-944B-00A0C905416E")
interface IDtcLuRecoveryInitiatedByLu : IUnknown
{
HRESULT GetObjectToHandleWorkFromLu(IDtcLuRecoveryInitiatedByLuWork* ppWork);
}
@GUID("4131E769-1AEA-11D0-944B-00A0C905416E")
interface IDtcLuRmEnlistment : IUnknown
{
HRESULT Unplug(BOOL fConversationLost);
HRESULT BackedOut();
HRESULT BackOut();
HRESULT Committed();
HRESULT Forget();
HRESULT RequestCommit();
}
@GUID("4131E770-1AEA-11D0-944B-00A0C905416E")
interface IDtcLuRmEnlistmentSink : IUnknown
{
HRESULT AckUnplug();
HRESULT TmDown();
HRESULT SessionLost();
HRESULT BackedOut();
HRESULT BackOut();
HRESULT Committed();
HRESULT Forget();
HRESULT Prepare();
HRESULT RequestCommit();
}
@GUID("4131E771-1AEA-11D0-944B-00A0C905416E")
interface IDtcLuRmEnlistmentFactory : IUnknown
{
HRESULT Create(ubyte* pucLuPair, uint cbLuPair, ITransaction pITransaction, ubyte* pTransId, uint cbTransId,
IDtcLuRmEnlistmentSink pRmEnlistmentSink, IDtcLuRmEnlistment* ppRmEnlistment);
}
@GUID("4131E773-1AEA-11D0-944B-00A0C905416E")
interface IDtcLuSubordinateDtc : IUnknown
{
HRESULT Unplug(BOOL fConversationLost);
HRESULT BackedOut();
HRESULT BackOut();
HRESULT Committed();
HRESULT Forget();
HRESULT Prepare();
HRESULT RequestCommit();
}
@GUID("4131E774-1AEA-11D0-944B-00A0C905416E")
interface IDtcLuSubordinateDtcSink : IUnknown
{
HRESULT AckUnplug();
HRESULT TmDown();
HRESULT SessionLost();
HRESULT BackedOut();
HRESULT BackOut();
HRESULT Committed();
HRESULT Forget();
HRESULT RequestCommit();
}
@GUID("4131E775-1AEA-11D0-944B-00A0C905416E")
interface IDtcLuSubordinateDtcFactory : IUnknown
{
HRESULT Create(ubyte* pucLuPair, uint cbLuPair, IUnknown punkTransactionOuter, int isoLevel, uint isoFlags,
ITransactionOptions pOptions, ITransaction* ppTransaction, ubyte* pTransId, uint cbTransId,
IDtcLuSubordinateDtcSink pSubordinateDtcSink, IDtcLuSubordinateDtc* ppSubordinateDtc);
}
///Provides access to a collection of security information representing a caller's identity. The items available in this
///collection are the SID, the account name, the authentication service, the authentication level, and the impersonation
///level. This interface is used to find out about a particular caller in a chain of callers that is part of the
///security call context. For more information about how security call context information is accessed, see Programmatic
///Component Security. COM+ applications that do not use role-based security and base COM applications cannot call
///methods of <b>ISecurityIdentityColl</b> because they cannot obtain the necessary pointer to ISecurityCallContext. For
///more information, see CoGetCallContext.
@GUID("CAFC823C-B441-11D1-B82B-0000F8757E2A")
interface ISecurityIdentityColl : IDispatch
{
///Retrieves the number of properties in the security identity collection.
///Params:
/// plCount = The number of properties in the security identity collection.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT get_Count(int* plCount);
///Retrieves a specified property in the security identity collection.
///Params:
/// name = The name of the property to be retrieved. See Remarks for information about the available properties.
/// pItem = A reference to the retrieved property.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT get_Item(BSTR name, VARIANT* pItem);
///Retrieves an enumerator for the security identity collection.
///Params:
/// ppEnum = A reference to the returned IEnumVARIANT interface.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT get__NewEnum(IUnknown* ppEnum);
}
///Provides access to information about individual callers in a collection of callers. The collection represents the
///chain of calls ending with the current call, and each caller in the collection represents the identity of one caller.
///Only callers who cross a boundary where security is checked are included in the chain of callers. (In the COM+
///environment, security is checked at application boundaries.) Access to information about a particular caller's
///identity is provided through ISecurityIdentityColl, an identity collection.
@GUID("CAFC823D-B441-11D1-B82B-0000F8757E2A")
interface ISecurityCallersColl : IDispatch
{
///Retrieves the number of callers in the security callers collection.
///Params:
/// plCount = The number of callers in the security callers collection.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT get_Count(int* plCount);
///Retrieves a specified caller in the security callers collection.
///Params:
/// lIndex = The name of the caller to retrieve. See Remarks for information about the available callers.
/// pObj = A reference to the retrieved caller.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT get_Item(int lIndex, ISecurityIdentityColl* pObj);
///Retrieves an enumerator for the security callers collection.
///Params:
/// ppEnum = A reference to the returned IEnumVARIANT interface.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT get__NewEnum(IUnknown* ppEnum);
}
///Provides access to security methods and information about the security call context of the current call. COM+
///applications that use role-based security have access to the security call context property collection through this
///interface. You can obtain information about any caller in the chain of callers, as well as methods specific to COM+
///role-based security. For more information, see Programmatic Component Security.
@GUID("CAFC823E-B441-11D1-B82B-0000F8757E2A")
interface ISecurityCallContext : IDispatch
{
///Retrieves the number of properties in the security context collection.
///Params:
/// plCount = The number of named security call context properties.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT get_Count(int* plCount);
///Retrieves a specified property in the security call context collection.
///Params:
/// name = The name of the property item to be retrieved. See Remarks for information about the available items.
/// pItem = A reference to the retrieved property.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT get_Item(BSTR name, VARIANT* pItem);
///Retrieves an enumerator for the security call context collection.
///Params:
/// ppEnum = A reference to the returned IEnumVARIANT interface.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT get__NewEnum(IUnknown* ppEnum);
///Determines whether the direct caller is in the specified role.
///Params:
/// bstrRole = The name of the role.
/// pfInRole = <b>TRUE</b> if the caller is in the specified role; <b>FALSE</b> if not. If the specified role is not defined
/// for the application, <b>FALSE</b> is returned. This parameter is set to <b>TRUE</b> if role-based security is
/// not enabled.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The role specified in the <i>bstrRole</i>
/// parameter is a recognized role, and the Boolean result returned in the <i>pfIsInRole</i> parameter indicates
/// whether the caller is in that role. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>CONTEXT_E_ROLENOTFOUND</b></dt> </dl> </td> <td width="60%"> The role specified in the <i>bstrRole</i>
/// parameter does not exist. </td> </tr> </table>
///
HRESULT IsCallerInRole(BSTR bstrRole, short* pfInRole);
///Determines whether security is enabled for the object.
///Params:
/// pfIsEnabled = <b>TRUE</b> if the application uses role-based security and role checking is currently enabled for the
/// object; otherwise, <b>FALSE</b>.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT IsSecurityEnabled(short* pfIsEnabled);
///Determines whether the specified user is in the specified role.
///Params:
/// pUser = A pointer to value holding the User ID of the user whose role membership is to be checked. If you intend to
/// pass the security identifier (SID) to <b>IsUserInRole</b>, this parameter should meet the following
/// requirements: <code>V_VT(pUser) == (VT_ARRAY|VT_UI1) && V_ARRAY(pUser)->cDims == 1</code>.
/// bstrRole = The name of the role.
/// pfInRole = <b>TRUE</b> if the user is in the specified role; <b>FALSE</b> if not. If the specified role is not defined
/// for the application, <b>FALSE</b> is returned. This parameter is set to <b>TRUE</b> if role-based security is
/// not enabled.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The role specified in the <i>bstrRole</i>
/// parameter is a recognized role, and the Boolean result returned in the <i>pfIsInRole</i> parameter indicates
/// whether the user is in that role. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>CONTEXT_E_ROLENOTFOUND</b></dt> </dl> </td> <td width="60%"> The role specified in the <i>bstrRole</i>
/// parameter does not exist. </td> </tr> </table>
///
HRESULT IsUserInRole(VARIANT* pUser, BSTR bstrRole, short* pfInRole);
}
///Retrieves a reference to an object created from the SecurityCallContext class that is associated with the current
///call.
@GUID("CAFC823F-B441-11D1-B82B-0000F8757E2A")
interface IGetSecurityCallContext : IDispatch
{
///Retrieves a reference to an object created from the SecurityCallContext class that is associated with the current
///call. Instead of using this method, C++ developers should use the CoGetCallContext function, supplying
///IID_ISecurityCallContext for the <i>riid</i> parameter.
///Params:
/// ppObject = A reference to ISecurityCallContext on the object's context.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>CONTEXT_E_NOCONTEXT</b></dt> </dl> </td> <td width="60%"> The current
/// object does not have a context associated with it because either the component wasn't imported into an
/// application or the object was not created with one of the COM+ CreateInstance methods. This error is also
/// returned if the GetObjectContext method was called from a constructor or from an IUnknown method. </td> </tr>
/// </table>
///
HRESULT GetSecurityCallContext(ISecurityCallContext* ppObject);
}
///Retrieves information about the current object's original caller and direct caller. The preferred way to obtain
///information about an object's callers is to use the SecurityCallContext class instead of the <b>SecurityProperty</b>
///interface. <b>SecurityProperty</b> and ISecurityProperty provide the same functionality, but unlike
///<b>ISecurityProperty</b>, <b>SecurityProperty</b> is compatible with Automation.
@GUID("E74A7215-014D-11D1-A63C-00A0C911B4E0")
interface SecurityProperty : IDispatch
{
///Retrieves the user name associated with the external process that called the currently executing method.
///Params:
/// bstrUserName = A reference to the user name associated with the external process that called the currently executing method.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT GetDirectCallerName(BSTR* bstrUserName);
///<p class="CCE_Message">[Do not use this method in COM+ applications because it was designed to be used only in
///MTS 2.0 applications.] Retrieves the user name associated with the current object's immediate (out-of-process)
///creator.
///Params:
/// bstrUserName = A reference to the user name associated with the current object's immediate (out-of-process) creator.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT GetDirectCreatorName(BSTR* bstrUserName);
///Retrieves the user name associated with the base process that initiated the sequence of calls from which the call
///into the current object originated.
///Params:
/// bstrUserName = A reference to the user name associated with the base process that initiated the sequence of calls from which
/// the call into the current object originated.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT GetOriginalCallerName(BSTR* bstrUserName);
///<p class="CCE_Message">[Do not use this method in COM+ applications because it was designed to be used only in
///MTS 2.0 applications.] Retrieves the user name associated with the original base process that initiated the
///activity in which the current object is executing.
///Params:
/// bstrUserName = A reference to the user name associated with the original base process that initiated the activity in which
/// the current object is executing.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT GetOriginalCreatorName(BSTR* bstrUserName);
}
///Retrieves transaction, activity, and context information on the current context object. Using the methods of this
///interface, you can retrieve relevant information contained within an object context. <b>ContextInfo</b> and
///IObjectContextInfo provide the same functionality, but unlike <b>IObjectContextInfo</b>, <b>ContextInfo</b> is
///compatible with Automation. In COM+ 1.5, released with Windows XP, the <b>ContextInfo</b> interface is superseded by
///the ContextInfo2 interface.
@GUID("19A5A02C-0AC8-11D2-B286-00C04F8EF934")
interface ContextInfo : IDispatch
{
///Indicates whether the current object is executing in a transaction.
///Params:
/// pbIsInTx = <b>TRUE</b> if the current object is executing within a transaction and <b>FALSE</b> otherwise.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT IsInTransaction(short* pbIsInTx);
///Retrieves the object context's transaction object.
///Params:
/// ppTx = A reference to the IUnknown interface of the transaction object for the currently executing transaction.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>S_FALSE</b></dt> </dl> </td> <td width="60%"> The object is not
/// executing in a transaction. The <i>ppTx</i> parameter is <b>NULL</b>. </td> </tr> </table>
///
HRESULT GetTransaction(IUnknown* ppTx);
///Retrieves the transaction identifier associated with the object context. Objects in the same transaction share
///the same transaction identifier.
///Params:
/// pbstrTxId = A reference to the transaction identifier.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>CONTEXT_E_NOTRANSACTION</b></dt> </dl> </td> <td width="60%"> The
/// object is not executing within a transaction. </td> </tr> </table>
///
HRESULT GetTransactionId(BSTR* pbstrTxId);
///Retrieves the activity identifier associated with the object context.
///Params:
/// pbstrActivityId = A reference to the activity identifier.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT GetActivityId(BSTR* pbstrActivityId);
///Retrieves the unique identifier of this object context.
///Params:
/// pbstrCtxId = A reference to the unique identifier.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT GetContextId(BSTR* pbstrCtxId);
}
///Provides additional information about an object's context, supplementing the information that is available through
///the ContextInfo interface. <b>ContextInfo2</b> and IObjectContextInfo2 provide the same functionality, but unlike
///<b>IObjectContextInfo2</b>, <b>ContextInfo2</b> is compatible with Automation.
@GUID("C99D6E75-2375-11D4-8331-00C04F605588")
interface ContextInfo2 : ContextInfo
{
///Retrieves the GUID of the COM+ partition of the current object context.
///Params:
/// __MIDL__ContextInfo20000 = A reference to the partition identifier.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>COMADMIN_E_PARTITIONS_DISABLED</b></dt> </dl> </td> <td width="60%">
/// COM+ partitions are not enabled. </td> </tr> </table>
///
HRESULT GetPartitionId(BSTR* __MIDL__ContextInfo20000);
///Retrieves the GUID of the application of the current object context.
///Params:
/// __MIDL__ContextInfo20001 = A reference to the application identifier.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT GetApplicationId(BSTR* __MIDL__ContextInfo20001);
///Retrieves the GUID of the application instance of the current object context. This information is useful when
///using COM+ Application Recycling, for example.
///Params:
/// __MIDL__ContextInfo20002 = A reference to the application instance identifier.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT GetApplicationInstanceId(BSTR* __MIDL__ContextInfo20002);
}
///Provides access to the current object's context. An object's context is primarily used when working with transactions
///or dealing with the security of an object. <b>ObjectContext</b> and IObjectContext provide the same functionality,
///but unlike <b>IObjectContext</b>, <b>ObjectContext</b> is compatible with Automation.
@GUID("74C08646-CEDB-11CF-8B49-00AA00B8A790")
interface ObjectContext : IDispatch
{
///Creates an object using current object's context. The object will have context only if its component is
///registered with COM+.
///Params:
/// bstrProgID = The ProgID of the type of object to be instantiated.
/// pObject = A reference to the new object.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_FAIL, as well as the
/// following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>E_UNEXPECTED</b></dt> </dl> </td> <td width="60%"> An unexpected error occurred.
/// This can happen if one object passes its ObjectContext pointer to another object and the other object calls
/// CreateInstance using this pointer. An <b>ObjectContext</b> pointer is not valid outside the context of the
/// object that originally obtained it. </td> </tr> </table>
///
HRESULT CreateInstance(BSTR bstrProgID, VARIANT* pObject);
///Declares that the transaction in which the object is executing can be committed and that the object should be
///deactivated on return.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_FAIL, as well as the
/// following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>E_UNEXPECTED</b></dt> </dl> </td> <td width="60%"> An unexpected error has occurred.
/// This can happen if one object passes its ObjectContext pointer to another object and the other object calls
/// SetComplete using this pointer. An <b>ObjectContext</b> pointer is not valid outside the context of the
/// object that originally obtained it. </td> </tr> </table>
///
HRESULT SetComplete();
///Declares that the transaction in which the object is executing must be aborted and that the object should be
///deactivated on return.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_FAIL, as well as the
/// following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>E_UNEXPECTED</b></dt> </dl> </td> <td width="60%"> An unexpected error has occurred.
/// This can happen if one object passes its ObjectContext pointer to another object and the other object calls
/// SetAbort using this pointer. An <b>ObjectContext</b> pointer is not valid outside the context of the object
/// that originally obtained it. </td> </tr> </table>
///
HRESULT SetAbort();
///Declares that the current object's work is not necessarily finished but that its transactional updates are
///consistent and could be committed in their present form.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_FAIL, as well as the
/// following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed succesfully and the object's
/// transactional updates can now be committed. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>E_UNEXPECTED</b></dt> </dl> </td> <td width="60%"> An unexpected error has occurred. This can happen
/// if one object passes its ObjectContext pointer to another object and the other object calls EnableCommit
/// using this pointer. An <b>ObjectContext</b> pointer is not valid outside the context of the object that
/// originally obtained it. </td> </tr> </table>
///
HRESULT EnableCommit();
///Declares that the object's transactional updates are inconsistent and cannot be committed in their present state.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_FAIL, as well as the
/// following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed succesfully. The object's
/// transactional updates cannot be committed until the object calls either EnableCommit or SetComplete. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>E_UNEXPECTED</b></dt> </dl> </td> <td width="60%"> An unexpected
/// error has occurred. This can happen if one object passes its ObjectContext pointer to another object and the
/// other object calls DisableCommit using this pointer. An <b>ObjectContext</b> pointer is not valid outside the
/// context of the object that originally obtained it. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>CONTEXT_E_NOCONTEXT</b></dt> </dl> </td> <td width="60%"> The current object doesn't have a context
/// associated with it. This is probably because it was not created with one of the COM+ <b>CreateInstance</b>
/// methods. </td> </tr> </table>
///
HRESULT DisableCommit();
///Indicates whether the current object is executing in a transaction.
///Params:
/// pbIsInTx = <b>TRUE</b> if the current object is executing within a transaction; <b>FALSE</b> otherwise.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_FAIL, as well as the
/// following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>E_UNEXPECTED</b></dt> </dl> </td> <td width="60%"> An unexpected error has occurred.
/// This can happen if one object passes its ObjectContext pointer to another object and the other object calls
/// IsInTransaction using this pointer. An <b>ObjectContext</b> pointer is not valid outside the context of the
/// object that originally obtained it. </td> </tr> </table>
///
HRESULT IsInTransaction(short* pbIsInTx);
///Indicates whether security is enabled for the current object.
///Params:
/// pbIsEnabled = <b>TRUE</b> if security is enabled for this object; <b>FALSE</b> otherwise.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_FAIL, as well as the
/// following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>E_UNEXPECTED</b></dt> </dl> </td> <td width="60%"> An unexpected error has occurred.
/// This can happen if one object passes its ObjectContext pointer to another object and the other object calls
/// IsSecurityEnabled using this pointer. An <b>ObjectContext</b> pointer is not valid outside the context of the
/// object that originally obtained it. </td> </tr> </table>
///
HRESULT IsSecurityEnabled(short* pbIsEnabled);
///Indicates whether the object's direct caller is in a specified role (either directly or as part of a group).
///Params:
/// bstrRole = The name of the role.
/// pbInRole = <b>TRUE</b> if the caller is in the specified role; <b>FALSE</b> otherwise. This parameter is also set to
/// <b>TRUE</b> if security is not enabled.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_FAIL, as well as the
/// following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The role specified in the <i>bstrRole</i> parameter is a
/// recognized role, and the Boolean result returned in the <i>pbIsInRole</i> parameter indicates whether the
/// caller is in that role. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>CONTEXT_E_ROLENOTFOUND</b></dt> </dl>
/// </td> <td width="60%"> The role specified in the bstrRole parameter does not exist. </td> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>E_UNEXPECTED</b></dt> </dl> </td> <td width="60%"> An unexpected error has occurred.
/// This can happen if one object passes its ObjectContext pointer to another object and the other object calls
/// IsCallerInRole using this pointer. An <b>ObjectContext</b> pointer is not valid outside the context of the
/// object that originally obtained it. </td> </tr> </table>
///
HRESULT IsCallerInRole(BSTR bstrRole, short* pbInRole);
///Retrieves the number of named context object properties.
///Params:
/// plCount = The number of named context object properties.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT get_Count(int* plCount);
///Retrieves a named property.
///Params:
/// name = The name of the property to be retrieved.
/// pItem = A reference to the retrieved property.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT get_Item(BSTR name, VARIANT* pItem);
///Retrieves an enumerator for the named context object properties. This property is restricted in Microsoft Visual
///Basic and cannot be used.
///Params:
/// ppEnum = A reference to the returned IEnumVARIANT interface.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT get__NewEnum(IUnknown* ppEnum);
///Retrieves the security object of the current object's context.
///Params:
/// ppSecurityProperty = A reference to a SecurityProperty interface that contains the security property of the current object's
/// context.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT get_Security(SecurityProperty* ppSecurityProperty);
///Retrieves the context information object of the current object's context.
///Params:
/// ppContextInfo = A reference to a ContextInfo interface that contains the context information.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT get_ContextInfo(ContextInfo* ppContextInfo);
}
///Provides basic methods for a generic transactional object that begins a transaction. By calling the methods of this
///interface, you can compose the work of multiple COM+ objects in a single transaction and explicitly commit or abort
///the transaction. ITransactionContext and <b>ITransactionContextEx</b> provide the same functionality, but unlike
///<b>ITransactionContextEx</b>, <b>ITransactionContext</b> is compatible with Automation.
@GUID("7999FC22-D3C6-11CF-ACAB-00A024A55AEF")
interface ITransactionContextEx : IUnknown
{
///Creates a COM object that can execute within the scope of the transaction that was initiated by the transaction
///context object.
///Params:
/// rclsid = A reference to the CLSID of the type of object to be instantiated.
/// riid = A reference to the interface ID of the interface through which you will communicate with the new object.
/// pObject = A reference to a new object of the type specified by the <i>rclsid</i> parameter, through the interface
/// specified by the <i>riid</i> parameter.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>REGDB_E_CLASSNOTREG</b></dt> </dl> </td> <td width="60%"> The
/// component specified by <i>rclsid</i> is not registered as a COM component. </td> </tr> </table>
///
HRESULT CreateInstance(const(GUID)* rclsid, const(GUID)* riid, void** pObject);
///Attempts to commit the work of all COM objects participating in the current transaction. The transaction ends on
///return from this method.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_UNEXPECTED, as well as
/// the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The transaction was committed. </td> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>E_FAIL</b></dt> </dl> </td> <td width="60%"> The TransactionContextEx object is not
/// running under a COM+ process, possibly indicating a corrupted registry entry for the
/// <b>TransactionContextEx</b> component. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>CONTEXT_E_ABORTED</b></dt> </dl> </td> <td width="60%"> The transaction was aborted. </td> </tr>
/// </table>
///
HRESULT Commit();
///Aborts the work of all COM objects participating in the current transaction. The transaction ends on return from
///this method.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_UNEXPECTED, as well as
/// the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The transaction was aborted. </td> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>E_FAIL</b></dt> </dl> </td> <td width="60%"> The TransactionContextEx object is not
/// running under a COM+ process, possibly indicating a corrupted registry entry for the
/// <b>TransactionContextEx</b> component. </td> </tr> </table>
///
HRESULT Abort();
}
///Enables you to compose the work of multiple COM+ objects in a single transaction and explicitly commit or abort the
///transaction. <b>ITransactionContext</b> and ITransactionContextEx provide the same functionality, but unlike
///<b>ITransactionContextEx</b>, <b>ITransactionContext</b> is compatible with Automation.
@GUID("7999FC21-D3C6-11CF-ACAB-00A024A55AEF")
interface ITransactionContext : IDispatch
{
///Creates a COM object that can execute within the scope of the transaction that was initiated by the transaction
///context object.
///Params:
/// pszProgId = A reference to the ProgID of the type of object to be instantiated.
/// pObject = A reference to the new object.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT CreateInstance(BSTR pszProgId, VARIANT* pObject);
///Attempts to commit the work of all COM objects participating in the current transaction. The transaction ends on
///return from this method.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_UNEXPECTED, as well as
/// the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The transaction was committed. </td> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>E_FAIL</b></dt> </dl> </td> <td width="60%"> The TransactionContext object is not
/// running under a COM+ process, possibly indicating a corrupted registry entry for the
/// <b>TransactionContext</b> component. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>CONTEXT_E_ABORTED</b></dt>
/// </dl> </td> <td width="60%"> The transaction was aborted. </td> </tr> </table>
///
HRESULT Commit();
///Aborts the work of all COM objects participating in the current transaction. The transaction ends on return from
///this method.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_UNEXPECTED, as well as
/// the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The transaction was aborted. </td> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>E_FAIL</b></dt> </dl> </td> <td width="60%"> The TransactionContext object is not
/// running under a COM+ process, possibly indicating a corrupted registry entry for the
/// <b>TransactionContext</b> component. </td> </tr> </table>
///
HRESULT Abort();
}
///Creates an object that is enlisted within a manual transaction.
@GUID("455ACF57-5345-11D2-99CF-00C04F797BC9")
interface ICreateWithTransactionEx : IUnknown
{
///Creates a COM+ object that executes within the scope of a manual transaction specified with a reference to an
///<b>ITransaction</b> interface.
///Params:
/// pTransaction = An <b>ITransaction</b> interface pointer indicating the transaction in which you want to create the COM+
/// object.
/// rclsid = The CLSID of the type of object to instantiate.
/// riid = The ID of the interface to be returned by the <i>ppvObj</i> parameter.
/// pObject = A new object of the type specified by the <i>rclsid</i> argument through the interface specified by the
/// <i>riid</i> argument.
///Returns:
/// This method can return the following values:
///
HRESULT CreateInstance(ITransaction pTransaction, const(GUID)* rclsid, const(GUID)* riid, void** pObject);
}
///Creates a COM+ object that executes within the scope of the specified local transaction.
@GUID("227AC7A8-8423-42CE-B7CF-03061EC9AAA3")
interface ICreateWithLocalTransaction : IUnknown
{
///Creates a COM+ object that executes within the scope of the specified local transaction.
///Params:
/// pTransaction = The transaction in which the requested object participates.
/// rclsid = The CLSID of the class from which to create the requested object.
/// riid = A reference to the interface identifier (IID) of the interface that is used to communicate with the request
/// object.
/// pObject = The address of the pointer variable that receives the interface pointer specified with <i>riid</i>.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and S_OK.
///
HRESULT CreateInstanceWithSysTx(IUnknown pTransaction, const(GUID)* rclsid, const(GUID)* riid, void** pObject);
}
///<p class="CCE_Message">[The TIP service feature are deprecated and might not be available in future versions of the
///operating system. Consider using the WS-AtomicTransaction (WS-AT) protocol as a replacement transaction coordination
///and propagation technology. For more information about WS-AT support in the .Net Framework, see Transactions.]
///Creates an object that is enlisted within a manual transaction using the Transaction Internet Protocol (TIP).
@GUID("455ACF59-5345-11D2-99CF-00C04F797BC9")
interface ICreateWithTipTransactionEx : IUnknown
{
///<p class="CCE_Message">[The TIP service feature are deprecated and might not be available in future versions of
///the operating system. Consider using the WS-AtomicTransaction (WS-AT) protocol as a replacement transaction
///coordination and propagation technology. For more information about WS-AT support in the .Net Framework, see
///Transactions.] Creates a COM+ object that executes within the scope of the manual transaction specified by a TIP
///transaction URL.
///Params:
/// bstrTipUrl = The Transaction Internet Protocol (TIP) URL of the existing transaction in which you want to create the COM+
/// object.
/// rclsid = The CLSID of the type of object to be instantiated.
/// riid = The ID of the interface to be returned by the <i>ppvObj</i> parameter.
/// pObject = A reference to a new object of the type specified by the <i>rclsid</i> argument, through the interface
/// specified by the <i>riid</i> argument.
///Returns:
/// This method can return the following values:
///
HRESULT CreateInstance(BSTR bstrTipUrl, const(GUID)* rclsid, const(GUID)* riid, void** pObject);
}
///Notifies the subscriber of events that relate to COM+ transactions. The events are published to the subscriber using
///the COM+ Events service, a loosely coupled events system that stores event information from different publishers in
///an event store in the COM+ catalog.
@GUID("605CF82C-578E-4298-975D-82BABCD9E053")
interface IComLTxEvents : IUnknown
{
///Generated when a transaction is started. The event ID for this event is EID_LTXSTART.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidLtx = A GUID that identifies the transaction.
/// tsid = A GUID that identifies the COM+ transaction context.
/// fRoot = Indicates whether the COM+ transaction context is a root transaction context.
/// nIsolationLevel = The transaction isolation level of the root COM+ transactional context.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnLtxTransactionStart(COMSVCSEVENTINFO* pInfo, GUID guidLtx, GUID tsid, BOOL fRoot,
int nIsolationLevel);
///Generated when COM+ receives a prepare notification for a transaction. The event ID for this event is
///EID_LTXPREPARE.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidLtx = A GUID that identifies the transaction.
/// fVote = The COM+ vote for the prepare request.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnLtxTransactionPrepare(COMSVCSEVENTINFO* pInfo, GUID guidLtx, BOOL fVote);
///Generated when a transaction is aborted. The event ID for this event is EID_LTXABORT.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidLtx = A GUID that identifies the transaction.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnLtxTransactionAbort(COMSVCSEVENTINFO* pInfo, GUID guidLtx);
///Generated when a transaction is committed. The event ID for this event is EID_LTXCOMMIT.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidLtx = A GUID that identifies the transaction.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnLtxTransactionCommit(COMSVCSEVENTINFO* pInfo, GUID guidLtx);
///Generated when a transaction is promoted. The event ID for this event is EID_LTXPROMOTE.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidLtx = A GUID that identifies the original transaction.
/// txnId = A GUID that identifies the promoted transaction.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnLtxTransactionPromote(COMSVCSEVENTINFO* pInfo, GUID guidLtx, GUID txnId);
}
///Notifies the subscriber of the specified user-defined metrics. The events are published to the subscriber using the
///COM+ Events service, a loosely coupled events system that stores event information from different publishers in an
///event store in the COM+ catalog.
@GUID("683130A4-2E50-11D2-98A5-00C04F8EE1C4")
interface IComUserEvent : IUnknown
{
///Provided for user components to generate user-defined events.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// pvarEvent = The user-defined information.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnUserEvent(COMSVCSEVENTINFO* pInfo, VARIANT* pvarEvent);
}
///Notifies the subscriber if a single-threaded apartment (STA) is created or terminated, and when an apartment thread
///is allocated. The subscriber is also notified if an activity is assigned or unassigned to an apartment thread. The
///events are published to the subscriber using the COM+ Events service, a loosely coupled events system that stores
///event information from different publishers in an event store in the COM+ catalog.
@GUID("683130A5-2E50-11D2-98A5-00C04F8EE1C4")
interface IComThreadEvents : IUnknown
{
///Generated when a single-threaded apartment (STA) thread is started.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// ThreadID = The unique thread identifier.
/// dwThread = The Windows thread identifier.
/// dwTheadCnt = The number of threads in the STA thread pool.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnThreadStart(COMSVCSEVENTINFO* pInfo, ulong ThreadID, uint dwThread, uint dwTheadCnt);
///Generated when a single-threaded apartment (STA) thread is terminated.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// ThreadID = The unique thread identifier.
/// dwThread = The Windows thread identifier.
/// dwTheadCnt = The number of threads in the STA thread pool.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnThreadTerminate(COMSVCSEVENTINFO* pInfo, ulong ThreadID, uint dwThread, uint dwTheadCnt);
///Generated when an apartment thread is allocated for a single-thread apartment (STA) thread that does not have an
///apartment thread to run in. An apartment thread is created or allocated from the pool.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// ThreadID = The unique thread identifier.
/// AptID = The apartment identifier.
/// dwActCnt = The number of activities bound to this apartment.
/// dwLowCnt = This parameter is reserved.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnThreadBindToApartment(COMSVCSEVENTINFO* pInfo, ulong ThreadID, ulong AptID, uint dwActCnt,
uint dwLowCnt);
///Generated when the lifetime of the configured component is over and the activity count on the apartment thread
///can be decremented.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// ThreadID = The unique thread identifier.
/// AptID = The apartment identifier.
/// dwActCnt = The number of current activities on the apartment thread.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnThreadUnBind(COMSVCSEVENTINFO* pInfo, ulong ThreadID, ulong AptID, uint dwActCnt);
HRESULT OnThreadWorkEnque(COMSVCSEVENTINFO* pInfo, ulong ThreadID, ulong MsgWorkID, uint QueueLen);
HRESULT OnThreadWorkPrivate(COMSVCSEVENTINFO* pInfo, ulong ThreadID, ulong MsgWorkID);
HRESULT OnThreadWorkPublic(COMSVCSEVENTINFO* pInfo, ulong ThreadID, ulong MsgWorkID, uint QueueLen);
HRESULT OnThreadWorkRedirect(COMSVCSEVENTINFO* pInfo, ulong ThreadID, ulong MsgWorkID, uint QueueLen,
ulong ThreadNum);
HRESULT OnThreadWorkReject(COMSVCSEVENTINFO* pInfo, ulong ThreadID, ulong MsgWorkID, uint QueueLen);
///Generated when an activity is assigned to an apartment thread.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidActivity = The activity identifier for which the object is created.
/// AptID = The apartment identifier.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnThreadAssignApartment(COMSVCSEVENTINFO* pInfo, const(GUID)* guidActivity, ulong AptID);
///Generated when an activity is unassigned from an apartment thread.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// AptID = The apartment identifier.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnThreadUnassignApartment(COMSVCSEVENTINFO* pInfo, ulong AptID);
}
///Notifies the subscriber if a COM+ server application is started, shut down, or forced to shut down. The latter is
///initiated by the user calling a catalog method, such as ICOMAdminCatalog::ShutdownApplication, to shut down the
///server. The events are published to the subscriber using the COM+ Events service, a loosely coupled events (LCE)
///system that stores event information from different publishers in an event store in the COM+ catalog.
@GUID("683130A6-2E50-11D2-98A5-00C04F8EE1C4")
interface IComAppEvents : IUnknown
{
///Generated when an application server starts.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidApp = The globally unique identifier (GUID) of the application.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnAppActivation(COMSVCSEVENTINFO* pInfo, GUID guidApp);
///Generated when an application server shuts down.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidApp = The globally unique identifier (GUID) of the application.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnAppShutdown(COMSVCSEVENTINFO* pInfo, GUID guidApp);
///Generated when an application server is forced to shut down. This is usually initiated by the user calling a
///catalog method, such as ICOMAdminCatalog::ShutdownApplication, to shut down the server.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidApp = The globally unique identifier (GUID) of the application.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnAppForceShutdown(COMSVCSEVENTINFO* pInfo, GUID guidApp);
}
///Notifies the subscriber of an object's creation or release. The events are published to the subscriber using the COM+
///Events service, a loosely coupled events system that stores event information from different publishers in an event
///store in the COM+ catalog.
@GUID("683130A7-2E50-11D2-98A5-00C04F8EE1C4")
interface IComInstanceEvents : IUnknown
{
///Generated when an object is created by a client.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidActivity = The identifier of the activity in which the object is created.
/// clsid = The CLSID of the object being created.
/// tsid = The transaction stream identifier, which is unique for correlation to objects.
/// CtxtID = The context identifier for this object.
/// ObjectID = The initial just-in-time (JIT) activated object.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnObjectCreate(COMSVCSEVENTINFO* pInfo, const(GUID)* guidActivity, const(GUID)* clsid,
const(GUID)* tsid, ulong CtxtID, ulong ObjectID);
///Generated when an object is released by a client.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// CtxtID = The context identifier of the object.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnObjectDestroy(COMSVCSEVENTINFO* pInfo, ulong CtxtID);
}
///Notifies the subscriber if the Microsoft Distributed Transaction Coordinator (DTC) transaction starts, commits, or
///aborts. The subscriber is also notified when the resource manager retrieves prepare information from the transaction
///manager. The events are published to the subscriber using the COM+ Events service, a loosely coupled events system
///that stores event information from different publishers in an event store in the COM+ catalog.
@GUID("683130A8-2E50-11D2-98A5-00C04F8EE1C4")
interface IComTransactionEvents : IUnknown
{
///Generated when a Microsoft Distributed Transaction Coordinator (DTC) transaction starts.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidTx = The transaction identifier.
/// tsid = The transaction stream identifier; a unique identifier for correlation to objects.
/// fRoot = Indicates whether this is a root transaction.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnTransactionStart(COMSVCSEVENTINFO* pInfo, const(GUID)* guidTx, const(GUID)* tsid, BOOL fRoot);
///Generated when the prepare phase of the two-phase commit protocol of the transaction is completed.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidTx = The transaction identifier.
/// fVoteYes = The resource managers result concerning the outcome of the prepare phase.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnTransactionPrepare(COMSVCSEVENTINFO* pInfo, const(GUID)* guidTx, BOOL fVoteYes);
///Generated when a transaction aborts.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidTx = The transaction identifier.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnTransactionAbort(COMSVCSEVENTINFO* pInfo, const(GUID)* guidTx);
///Generated when a transaction commits.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidTx = The transaction identifier.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnTransactionCommit(COMSVCSEVENTINFO* pInfo, const(GUID)* guidTx);
}
///Notifies the subscriber if an object's method has been called, returned, or generated an exception. The events are
///published to the subscriber using the COM+ Events service, a loosely coupled events system that stores event
///information from different publishers in an event store in the COM+ catalog.
@GUID("683130A9-2E50-11D2-98A5-00C04F8EE1C4")
interface IComMethodEvents : IUnknown
{
///Generated when an object's method is called.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// oid = The just-in-time (JIT) activated object.
/// guidCid = The CLSID for the object being called.
/// guidRid = The identifier of the method being called.
/// iMeth = The v-table index of the method.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnMethodCall(COMSVCSEVENTINFO* pInfo, ulong oid, const(GUID)* guidCid, const(GUID)* guidRid,
uint iMeth);
///Generated when an object's method returns.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// oid = The just-in-time (JIT) activated object.
/// guidCid = The CLSID for the object being called.
/// guidRid = The identifier of the method.
/// iMeth = The v-table index of the method.
/// hresult = The result of the method call.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnMethodReturn(COMSVCSEVENTINFO* pInfo, ulong oid, const(GUID)* guidCid, const(GUID)* guidRid,
uint iMeth, HRESULT hresult);
///Generated when an object's method generates an exception.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// oid = The just-in-time (JIT) activated object.
/// guidCid = The CLSID for the object being called.
/// guidRid = The identifier of the method.
/// iMeth = The v-table index of the method.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnMethodException(COMSVCSEVENTINFO* pInfo, ulong oid, const(GUID)* guidCid, const(GUID)* guidRid,
uint iMeth);
}
///Notifies the subscriber if an instance of a just-in-time (JIT) activated object has been created or freed. The
///subscriber is notified if IObjectContext::DisableCommit, IObjectContext::EnableCommit, IObjectContext::SetComplete or
///IObjectContext::SetAbort is called. The events are published to the subscriber using the COM+ Events service, a
///loosely coupled events system that stores event information from different publishers in an event store in the COM+
///catalog.
@GUID("683130AA-2E50-11D2-98A5-00C04F8EE1C4")
interface IComObjectEvents : IUnknown
{
///Generated when an object gets an instance of a new JIT-activated object.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// CtxtID = The GUID of the current context.
/// ObjectID = The JIT-activated object.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnObjectActivate(COMSVCSEVENTINFO* pInfo, ulong CtxtID, ulong ObjectID);
///Generated when the JIT-activated object is freed by SetComplete or SetAbort.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// CtxtID = The GUID of the current context.
/// ObjectID = The JIT-activated object.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnObjectDeactivate(COMSVCSEVENTINFO* pInfo, ulong CtxtID, ulong ObjectID);
///Generated when the client calls DisableCommit on a context.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// CtxtID = The GUID of the current context.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnDisableCommit(COMSVCSEVENTINFO* pInfo, ulong CtxtID);
///Generated when the client calls EnableCommit on a context.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// CtxtID = The GUID of the current context.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnEnableCommit(COMSVCSEVENTINFO* pInfo, ulong CtxtID);
///Generated when the client calls SetComplete on a context.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// CtxtID = The GUID of the current context.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnSetComplete(COMSVCSEVENTINFO* pInfo, ulong CtxtID);
HRESULT OnSetAbort(COMSVCSEVENTINFO* pInfo, ulong CtxtID);
}
///Notifies the subscriber if a resource is created, allocated, tracked, or destroyed. The events are published to the
///subscriber using the COM+ Events service, a loosely coupled events system that stores event information from
///different publishers in an event store in the COM+ catalog.
@GUID("683130AB-2E50-11D2-98A5-00C04F8EE1C4")
interface IComResourceEvents : IUnknown
{
///Generated when a new resource is created and allocated.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// ObjectID = The just-in-time activated object.
/// pszType = A description of the resource.
/// resId = The unique identifier of the resource.
/// enlisted = Indicates whether the resource is enlisted in a transaction.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnResourceCreate(COMSVCSEVENTINFO* pInfo, ulong ObjectID, const(PWSTR) pszType, ulong resId,
BOOL enlisted);
///Generated when an existing resource is allocated.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// ObjectID = The just-in-time activated object.
/// pszType = A description of the resource.
/// resId = The unique identifier for the resource.
/// enlisted = Indicates whether the resource is enlisted in a transaction.
/// NumRated = The number of possible resources evaluated for a match.
/// Rating = The rating of the resource actually selected.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnResourceAllocate(COMSVCSEVENTINFO* pInfo, ulong ObjectID, const(PWSTR) pszType, ulong resId,
BOOL enlisted, uint NumRated, uint Rating);
///Generated when an object is finished with a resource.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// ObjectID = The just-in-time activated object.
/// pszType = A description of the resource.
/// resId = The unique identifier of the resource.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnResourceRecycle(COMSVCSEVENTINFO* pInfo, ulong ObjectID, const(PWSTR) pszType, ulong resId);
///Generated when a resource is destroyed.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// ObjectID = The just-in-time activated object.
/// hr = The result from resource dispensers destroy call.
/// pszType = A description of the resource.
/// resId = The unique identifier of the resource.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnResourceDestroy(COMSVCSEVENTINFO* pInfo, ulong ObjectID, HRESULT hr, const(PWSTR) pszType,
ulong resId);
///Generated when a resource is tracked.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// ObjectID = The just-in-time activated object.
/// pszType = A description of the resource.
/// resId = The unique identifier of the resource.
/// enlisted = Indicates whether the resource is enlisted in a transaction.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnResourceTrack(COMSVCSEVENTINFO* pInfo, ulong ObjectID, const(PWSTR) pszType, ulong resId,
BOOL enlisted);
}
///Notifies the subscriber if the authentication of a method call succeeded or failed. The events are published to the
///subscriber using the COM+ Events service, a loosely coupled events system that stores event information from
///different publishers in an event store in the COM+ catalog.
@GUID("683130AC-2E50-11D2-98A5-00C04F8EE1C4")
interface IComSecurityEvents : IUnknown
{
///Generated when a method call level authentication succeeds. When you set an authentication level for an
///application, you determine what degree of authentication is performed when clients call into the application.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidActivity = The identifier of the activity in which the object is created.
/// ObjectID = The just-in-time activated object.
/// guidIID = The IID of the method.
/// iMeth = The v-table index of the method.
/// cbByteOrig = The number of bytes in the security identifier for the original caller.
/// pSidOriginalUser = The security identifier for the original caller.
/// cbByteCur = The number of bytes in the security identifier for the current caller.
/// pSidCurrentUser = The security identifier for the current caller.
/// bCurrentUserInpersonatingInProc = Indicates whether the current user is impersonating.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnAuthenticate(COMSVCSEVENTINFO* pInfo, const(GUID)* guidActivity, ulong ObjectID,
const(GUID)* guidIID, uint iMeth, uint cbByteOrig, ubyte* pSidOriginalUser,
uint cbByteCur, ubyte* pSidCurrentUser, BOOL bCurrentUserInpersonatingInProc);
///Generated when a method call level authentication fails.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidActivity = The identifier of the activity in which the object is created.
/// ObjectID = The just-in-time activated object.
/// guidIID = The IID of the method.
/// iMeth = The v-table index of the method.
/// cbByteOrig = The number of bytes in the security identifier for the original caller.
/// pSidOriginalUser = The security identifier for the original caller.
/// cbByteCur = The number of bytes in the security identifier for the current caller.
/// pSidCurrentUser = The security identifier for the current caller.
/// bCurrentUserInpersonatingInProc = Indicates whether the current user is impersonating.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnAuthenticateFail(COMSVCSEVENTINFO* pInfo, const(GUID)* guidActivity, ulong ObjectID,
const(GUID)* guidIID, uint iMeth, uint cbByteOrig, ubyte* pSidOriginalUser,
uint cbByteCur, ubyte* pSidCurrentUser, BOOL bCurrentUserInpersonatingInProc);
}
///Notifies the subscriber when a new object is added to the pool. The subscriber is also notified when a transactional
///or non-transactional object is obtained or returned to the pool. The events are published to the subscriber using the
///COM+ Events service, a loosely coupled events system that stores event information from different publishers in an
///event store in the COM+ catalog.
@GUID("683130AD-2E50-11D2-98A5-00C04F8EE1C4")
interface IComObjectPoolEvents : IUnknown
{
///Generated when a new object is added to the pool.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidObject = The CLSID for the objects in the pool.
/// nReason = This parameter is always 0.
/// dwAvailable = The number of objects in the pool.
/// oid = The unique identifier for this object.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnObjPoolPutObject(COMSVCSEVENTINFO* pInfo, const(GUID)* guidObject, int nReason, uint dwAvailable,
ulong oid);
///Generated when a non-transactional object is obtained from the pool.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidActivity = The activity ID for which the object is created.
/// guidObject = The CLSID for the objects in the pool.
/// dwAvailable = The number of objects in the pool.
/// oid = The unique identifier for this object.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnObjPoolGetObject(COMSVCSEVENTINFO* pInfo, const(GUID)* guidActivity, const(GUID)* guidObject,
uint dwAvailable, ulong oid);
///Generated when a transactional object is returned to the pool.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidActivity = The activity ID for which the object is created.
/// guidObject = The CLSID for the objects in the pool.
/// guidTx = The GUID representing the transaction identifier.
/// objid = The unique identifier for this object.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnObjPoolRecycleToTx(COMSVCSEVENTINFO* pInfo, const(GUID)* guidActivity, const(GUID)* guidObject,
const(GUID)* guidTx, ulong objid);
///Generated when a transactional object is obtained from the pool.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidActivity = The activity ID for which the object is created.
/// guidObject = The CLSID for the objects in the pool.
/// guidTx = The transaction identifier.
/// objid = The unique identifier for this object.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnObjPoolGetFromTx(COMSVCSEVENTINFO* pInfo, const(GUID)* guidActivity, const(GUID)* guidObject,
const(GUID)* guidTx, ulong objid);
}
///Notifies the subscriber when a new object is created for or removed from the pool. The subscriber is also notified
///when a new object pool is created or when the request for a pooled object times out. The events are published to the
///subscriber using the COM+ Events service, a loosely coupled events system that stores event information from
///different publishers in an event store in the COM+ catalog.
@GUID("683130AE-2E50-11D2-98A5-00C04F8EE1C4")
interface IComObjectPoolEvents2 : IUnknown
{
///Generated when an object is created for the pool.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidObject = The CLSID for the objects in the pool.
/// dwObjsCreated = The number of objects in the pool.
/// oid = The unique pooled object identifier.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnObjPoolCreateObject(COMSVCSEVENTINFO* pInfo, const(GUID)* guidObject, uint dwObjsCreated, ulong oid);
///Generated when an object is permanently removed from the pool.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidObject = The CLSID for the objects in the pool.
/// dwObjsCreated = The number of objects in the pool.
/// oid = The unique pooled object identifier.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnObjPoolDestroyObject(COMSVCSEVENTINFO* pInfo, const(GUID)* guidObject, uint dwObjsCreated, ulong oid);
///Generated when a pool provides a requesting client with an existing object or creates a new one.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// dwThreadsWaiting = The number of threads waiting for an object.
/// dwAvail = The number of free objects in the pool.
/// dwCreated = The number of total objects in the pool.
/// dwMin = The pool's minimum object value.
/// dwMax = The pool's maximum object value.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnObjPoolCreateDecision(COMSVCSEVENTINFO* pInfo, uint dwThreadsWaiting, uint dwAvail, uint dwCreated,
uint dwMin, uint dwMax);
///Generated when the request for a pooled object times out.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidObject = The CLSID for the objects in the pool.
/// guidActivity = The identifier of the activity in which the object is created.
/// dwTimeout = The pool's time-out value.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnObjPoolTimeout(COMSVCSEVENTINFO* pInfo, const(GUID)* guidObject, const(GUID)* guidActivity,
uint dwTimeout);
///Generated when a new pool is created.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidObject = The CLSID for the objects in the pool.
/// dwMin = The pool's minimum object value.
/// dwMax = The pool's maximum object value.
/// dwTimeout = The pool's time-out value.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnObjPoolCreatePool(COMSVCSEVENTINFO* pInfo, const(GUID)* guidObject, uint dwMin, uint dwMax,
uint dwTimeout);
}
///Notifies the subscriber if a constructed object is created in an object pool. The events are published to the
///subscriber using the COM+ Events service, a loosely coupled events system that stores event information from
///different publishers in an event store in the COM+ catalog. A constructed object is derived from the IObjectConstruct
///interface. Constructed objects can inherit parameter names from within other objects or libraries.
@GUID("683130AF-2E50-11D2-98A5-00C04F8EE1C4")
interface IComObjectConstructionEvents : IUnknown
{
///Generated when a constructed object is created.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidObject = The CLSID for the objects in the pool.
/// sConstructString = The object construction string.
/// oid = The unique constructed object identifier.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnObjectConstruct(COMSVCSEVENTINFO* pInfo, const(GUID)* guidObject, const(PWSTR) sConstructString,
ulong oid);
}
///Notifies the subscriber if an activity is created, destroyed, or timed out. The activity event is published to the
///subscriber using the COM+ Events service, a loosely coupled events system that stores event information from
///different publishers in an event store in the COM+ catalog.
@GUID("683130B0-2E50-11D2-98A5-00C04F8EE1C4")
interface IComActivityEvents : IUnknown
{
///Generated when an activity starts.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidActivity = The GUID associated with the current activity.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnActivityCreate(COMSVCSEVENTINFO* pInfo, const(GUID)* guidActivity);
///Generated when an activity is finished.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidActivity = The GUID associated with the current activity.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnActivityDestroy(COMSVCSEVENTINFO* pInfo, const(GUID)* guidActivity);
///Generated when an activity thread is entered.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidCurrent = The GUID associated with the caller.
/// guidEntered = The GUID associated with the activity thread entered.
/// dwThread = The identifier of the activity thread.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnActivityEnter(COMSVCSEVENTINFO* pInfo, const(GUID)* guidCurrent, const(GUID)* guidEntered,
uint dwThread);
///Generated when a call into an activity times out.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidCurrent = The GUID associated with the current activity.
/// guidEntered = The causality identifier for the caller.
/// dwThread = The identifier of the thread executing the call.
/// dwTimeout = The time-out period.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnActivityTimeout(COMSVCSEVENTINFO* pInfo, const(GUID)* guidCurrent, const(GUID)* guidEntered,
uint dwThread, uint dwTimeout);
///Generated when an activity thread is reentered recursively.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidCurrent = The GUID associated with the caller.
/// dwThread = The identifier of the activity thread.
/// dwCallDepth = The recursion depth.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnActivityReenter(COMSVCSEVENTINFO* pInfo, const(GUID)* guidCurrent, uint dwThread, uint dwCallDepth);
///Generated when an activity thread is left.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidCurrent = The GUID associated with the caller.
/// guidLeft = The GUID associated with the activity thread left.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnActivityLeave(COMSVCSEVENTINFO* pInfo, const(GUID)* guidCurrent, const(GUID)* guidLeft);
///Generated when an activity thread is left after being entered recursively.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidCurrent = The GUID associated with the caller.
/// dwCallDepth = The recursion depth.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnActivityLeaveSame(COMSVCSEVENTINFO* pInfo, const(GUID)* guidCurrent, uint dwCallDepth);
}
///Notifies the subscriber about an activity that is part of an Internet Information Services (IIS) Active Server Pages
///(ASP) page. For example, if a COM+ object is invoked in an ASP page, the user would be notified of this activity. The
///events are published to the subscriber using the COM+ Events service, a loosely coupled events system that stores
///event information from different publishers in an event store in the COM+ catalog.
@GUID("683130B1-2E50-11D2-98A5-00C04F8EE1C4")
interface IComIdentityEvents : IUnknown
{
///Generated when an activity is part of an ASP page.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// ObjId = The unique identifier for this object.
/// pszClientIP = The Internet Protocol (IP) address of the IIS client.
/// pszServerIP = The IP address of the IIS server.
/// pszURL = The URL on IIS server generating object reference.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnIISRequestInfo(COMSVCSEVENTINFO* pInfo, ulong ObjId, const(PWSTR) pszClientIP,
const(PWSTR) pszServerIP, const(PWSTR) pszURL);
}
///Notifies the subscriber if a queued message is created, de-queued, or moved to a retry or dead letter queue. The
///events are published to the subscriber using the COM+ Events service, a loosely coupled events system that stores
///event information from different publishers in an event store in the COM+ catalog.
@GUID("683130B2-2E50-11D2-98A5-00C04F8EE1C4")
interface IComQCEvents : IUnknown
{
///Generated when the queued components recorder creates the queued message.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// objid = The just-in-time activated object.
/// szQueue = The name of the queue.
/// guidMsgId = The unique identifier for the queued message.
/// guidWorkFlowId = This parameter is reserved.
/// msmqhr = The Message Queuing return status for the queued message.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnQCRecord(COMSVCSEVENTINFO* pInfo, ulong objid, ushort* szQueue, const(GUID)* guidMsgId,
const(GUID)* guidWorkFlowId, HRESULT msmqhr);
///Generated when a queued components queue is opened. This method is used to generate the <i>QueueID</i> parameter.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// szQueue = The name of the queue.
/// QueueID = The unique identifier for the queue.
/// hr = The status from Message Queuing queue open.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnQCQueueOpen(COMSVCSEVENTINFO* pInfo, ushort* szQueue, ulong QueueID, HRESULT hr);
///Generated when a message is successfully de-queued even though the queued components service might find something
///wrong with the contents.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// QueueID = The unique identifier for the queue.
/// guidMsgId = The unique identifier for the queued message.
/// guidWorkFlowId = This parameter is reserved.
/// hr = The status from Queued Components processing of the received message.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnQCReceive(COMSVCSEVENTINFO* pInfo, ulong QueueID, const(GUID)* guidMsgId,
const(GUID)* guidWorkFlowId, HRESULT hr);
///Generated when the receive message fails.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// QueueID = The unique identifier for the queue.
/// msmqhr = The status from Queued Components processing of the received message.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnQCReceiveFail(COMSVCSEVENTINFO* pInfo, ulong QueueID, HRESULT msmqhr);
///Generated when a message is moved to a queued components retry queue.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidMsgId = The unique identifier for the message.
/// guidWorkFlowId = This parameter is reserved.
/// RetryIndex = The index number of the retry queue where the message moved.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnQCMoveToReTryQueue(COMSVCSEVENTINFO* pInfo, const(GUID)* guidMsgId, const(GUID)* guidWorkFlowId,
uint RetryIndex);
///Generated when a message is moved to the dead letter queue and cannot be delivered.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidMsgId = The unique identifier for the message.
/// guidWorkFlowId = This parameter is reserved.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnQCMoveToDeadQueue(COMSVCSEVENTINFO* pInfo, const(GUID)* guidMsgId, const(GUID)* guidWorkFlowId);
///Generated when a messages contents are replayed.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// objid = The just-in-time activated object.
/// guidMsgId = The unique identifier for the queue.
/// guidWorkFlowId = This parameter is reserved.
/// hr = The status from Message Queuing receive message.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnQCPlayback(COMSVCSEVENTINFO* pInfo, ulong objid, const(GUID)* guidMsgId, const(GUID)* guidWorkFlowId,
HRESULT hr);
}
///Notifies the subscriber when an unhandled exception occurs in the user's code. The events are published to the
///subscriber using the COM+ Events service, a loosely coupled events system that stores event information from
///different publishers in an event store in the COM+ catalog.
@GUID("683130B3-2E50-11D2-98A5-00C04F8EE1C4")
interface IComExceptionEvents : IUnknown
{
///Generated for transactional components when an unhandled exception occurs in the user's code.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// code = The exception code.
/// address = The address of the exception.
/// pszStackTrace = The stack trace.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnExceptionUser(COMSVCSEVENTINFO* pInfo, uint code, ulong address, const(PWSTR) pszStackTrace);
}
@GUID("683130B4-2E50-11D2-98A5-00C04F8EE1C4")
interface ILBEvents : IUnknown
{
HRESULT TargetUp(BSTR bstrServerName, BSTR bstrClsidEng);
HRESULT TargetDown(BSTR bstrServerName, BSTR bstrClsidEng);
HRESULT EngineDefined(BSTR bstrPropName, VARIANT* varPropValue, BSTR bstrClsidEng);
}
///Notifies the subscriber about activities of the Compensating Resource Manager (CRM) feature of Component Services.
///The events are published to the subscriber using the COM+ Events service, a loosely coupled events system that stores
///event information from different publishers in an event store in the COM+ catalog.
@GUID("683130B5-2E50-11D2-98A5-00C04F8EE1C4")
interface IComCRMEvents : IUnknown
{
///Generated when CRM recovery has started.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidApp = The globally unique identifier (GUID) of the application.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnCRMRecoveryStart(COMSVCSEVENTINFO* pInfo, GUID guidApp);
///Generated when CRM recovery is done.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidApp = The globally unique identifier (GUID) of the application.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnCRMRecoveryDone(COMSVCSEVENTINFO* pInfo, GUID guidApp);
///Generated when a CRM checkpoint occurs.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidApp = The globally unique identifier (GUID) of the application.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnCRMCheckpoint(COMSVCSEVENTINFO* pInfo, GUID guidApp);
///Generated when a CRM clerk is starting, either due to a client registering a compensator or during recovery.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidClerkCLSID = The identifier of the CRM clerk.
/// guidActivity = The activity identifier (NULL if recovery).
/// guidTx = The identifier of the Transaction Unit Of Work (UOW).
/// szProgIdCompensator = The ProgID of the CRM compensator.
/// szDescription = The description (blank if recovery).
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnCRMBegin(COMSVCSEVENTINFO* pInfo, GUID guidClerkCLSID, GUID guidActivity, GUID guidTx,
ushort* szProgIdCompensator, ushort* szDescription);
///Generated when CRM clerk receives a prepare notification to pass on to the CRM compensator.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidClerkCLSID = The identifier of the CRM clerk.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnCRMPrepare(COMSVCSEVENTINFO* pInfo, GUID guidClerkCLSID);
///Generated when CRM clerk receives a commit notification to pass on to the CRM compensator.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidClerkCLSID = The identifier of the CRM clerk.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnCRMCommit(COMSVCSEVENTINFO* pInfo, GUID guidClerkCLSID);
///Generated when CRM clerk receives an abort notification to pass on to the CRM compensator.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidClerkCLSID = The identifier of the CRM clerk.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnCRMAbort(COMSVCSEVENTINFO* pInfo, GUID guidClerkCLSID);
///Generated when CRM clerk receives an in-doubt notification to pass on to the CRM compensator.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidClerkCLSID = The identifier of the CRM clerk.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnCRMIndoubt(COMSVCSEVENTINFO* pInfo, GUID guidClerkCLSID);
///Generated when CRM clerk is done processing transaction outcome notifications.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidClerkCLSID = The identifier of the CRM clerk.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnCRMDone(COMSVCSEVENTINFO* pInfo, GUID guidClerkCLSID);
///Generated when the CRM clerk is finished and releases its resource locks.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidClerkCLSID = The identifier of the CRM clerk.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnCRMRelease(COMSVCSEVENTINFO* pInfo, GUID guidClerkCLSID);
///Generated when a CRM clerk receives a record during the analysis phase of recovery.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidClerkCLSID = The identifier of the CRM clerk.
/// dwCrmRecordType = The CRM log record type (internal).
/// dwRecordSize = The log record size (approximate).
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnCRMAnalyze(COMSVCSEVENTINFO* pInfo, GUID guidClerkCLSID, uint dwCrmRecordType, uint dwRecordSize);
///Generated when a CRM clerk receives a request to write a log record, either from the CRM worker or CRM
///compensator.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidClerkCLSID = The identifier of the CRM clerk.
/// fVariants = Indicates whether the log record is being written as a <b>Variant</b> array.
/// dwRecordSize = The log record size (approximate).
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnCRMWrite(COMSVCSEVENTINFO* pInfo, GUID guidClerkCLSID, BOOL fVariants, uint dwRecordSize);
///Generated when a CRM clerk receives a request to forget a log record, either from the CRM worker or from the CRM
///compensator.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidClerkCLSID = The identifier of the CRM clerk.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnCRMForget(COMSVCSEVENTINFO* pInfo, GUID guidClerkCLSID);
///Generated when a CRM clerk receives a request to force log records to disk, either from the CRM worker or from
///the CRM compensator.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidClerkCLSID = The identifier of the CRM clerk.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnCRMForce(COMSVCSEVENTINFO* pInfo, GUID guidClerkCLSID);
///Generated when a CRM clerk delivers a record to a CRM compensator.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidClerkCLSID = The identifier of the CRM clerk.
/// fVariants = Indicates whether the log record is being written as a <b>Variant</b> array.
/// dwRecordSize = The log record size (approximate).
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnCRMDeliver(COMSVCSEVENTINFO* pInfo, GUID guidClerkCLSID, BOOL fVariants, uint dwRecordSize);
}
///Notifies the subscriber if an object's method has been called, returned, or generated an exception. This interface
///extends the IComMethodEvents interface to provide thread information. The events are published to the subscriber
///using the COM+ Events service, a loosely coupled events system that stores event information from different
///publishers in an event store in the COM+ catalog.
@GUID("FB388AAA-567D-4024-AF8E-6E93EE748573")
interface IComMethod2Events : IUnknown
{
///Generated when an object's method is called.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// oid = The just-in-time (JIT) activated object.
/// guidCid = The CLSID for the object being called.
/// guidRid = The identifier of the method being called.
/// dwThread = The identifier of the thread executing the call.
/// iMeth = The v-table index of the method.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnMethodCall2(COMSVCSEVENTINFO* pInfo, ulong oid, const(GUID)* guidCid, const(GUID)* guidRid,
uint dwThread, uint iMeth);
///Generated when an object's method returns.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// oid = The just-in-time (JIT) activated object.
/// guidCid = The CLSID for the object being called.
/// guidRid = The identifier of the method being called.
/// dwThread = The identifier of the thread executing the call.
/// iMeth = The v-table index of the method.
/// hresult = The result of the method call.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnMethodReturn2(COMSVCSEVENTINFO* pInfo, ulong oid, const(GUID)* guidCid, const(GUID)* guidRid,
uint dwThread, uint iMeth, HRESULT hresult);
///Generated when an object's method generates an exception.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// oid = The just-in-time (JIT) activated object.
/// guidCid = The CLSID for the object being called.
/// guidRid = The identifier of the method being called.
/// dwThread = The identifier of the thread executing the call.
/// iMeth = The v-table index of the method.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnMethodException2(COMSVCSEVENTINFO* pInfo, ulong oid, const(GUID)* guidCid, const(GUID)* guidRid,
uint dwThread, uint iMeth);
}
///Notifies the subscriber when the tracking information for a collection changes. The events are published to the
///subscriber using the COM+ Events service, a loosely coupled events system that stores event information from
///different publishers in an event store in the COM+ catalog.
@GUID("4E6CDCC9-FB25-4FD5-9CC5-C9F4B6559CEC")
interface IComTrackingInfoEvents : IUnknown
{
///Generated when the tracking information for a collection changes.
///Params:
/// pToplevelCollection = A pointer to the IUnknown interface of the collection for which the tracking information has changed.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnNewTrackingInfo(IUnknown pToplevelCollection);
}
///Retrieves information about a tracking information collection.
@GUID("C266C677-C9AD-49AB-9FD9-D9661078588A")
interface IComTrackingInfoCollection : IUnknown
{
///Retrieves the type of a tracking information collection.
///Params:
/// pType = The type of tracking information. For a list of values, see the TRACKING_COLL_TYPE enumeration.
///Returns:
/// If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it
/// returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.
///
HRESULT Type(TRACKING_COLL_TYPE* pType);
///Retrieves the number of objects in a tracking information collection.
///Params:
/// pCount = The number of objects in the tracking information collection.
///Returns:
/// If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it
/// returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.
///
HRESULT Count(uint* pCount);
///Retrieves the specified interface from a specified member of a tracking information collection.
///Params:
/// ulIndex = The index of the object in the collection.
/// riid = The identifier of the interface to be requested.
/// ppv = A pointer to the requested interface.
///Returns:
/// If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it
/// returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.
///
HRESULT Item(uint ulIndex, const(GUID)* riid, void** ppv);
}
///Retrieves the properties of a tracking information object.
@GUID("116E42C5-D8B1-47BF-AB1E-C895ED3E2372")
interface IComTrackingInfoObject : IUnknown
{
///Retrieves the value of the specified property.
///Params:
/// szPropertyName = The name of the property.
/// pvarOut = The value of the property.
///Returns:
/// If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it
/// returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.
///
HRESULT GetValue(PWSTR szPropertyName, VARIANT* pvarOut);
}
///Retrieves the total number of properties associated with a tracking information object and their names.
@GUID("789B42BE-6F6B-443A-898E-67ABF390AA14")
interface IComTrackingInfoProperties : IUnknown
{
///Retrieves the number of properties defined for a tracking information object.
///Params:
/// pCount = The number of properties defined for the object.
///Returns:
/// If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it
/// returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.
///
HRESULT PropCount(uint* pCount);
///Retrieves the name of the property corresponding to the specified index number.
///Params:
/// ulIndex = The index of the property.
/// ppszPropName = The name of the property.
///Returns:
/// If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it
/// returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.
///
HRESULT GetPropName(uint ulIndex, PWSTR* ppszPropName);
}
///Notifies the subscriber if a COM+ server application is loaded, shut down, or paused. The subscriber is also notified
///if the application is marked for recycling. The events are published to the subscriber using the COM+ Events service,
///a loosely coupled events system that stores event information from different publishers in an event store in the COM+
///catalog.
@GUID("1290BC1A-B219-418D-B078-5934DED08242")
interface IComApp2Events : IUnknown
{
///Generated when the server application process is loaded.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidApp = The GUID of the application.
/// guidProcess = The process ID.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnAppActivation2(COMSVCSEVENTINFO* pInfo, GUID guidApp, GUID guidProcess);
///Generated when the server application shuts down.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidApp = The GUID of the application.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnAppShutdown2(COMSVCSEVENTINFO* pInfo, GUID guidApp);
///Generated when the server application is forced to shut down.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidApp = The GUID of the application.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnAppForceShutdown2(COMSVCSEVENTINFO* pInfo, GUID guidApp);
///Generated when the server application is paused or resumed to its initial state.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidApp = The GUID of the application.
/// bPaused = <b>TRUE</b> if the server application is paused. <b>FALSE</b> if the application has resumed to its original
/// state.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnAppPaused2(COMSVCSEVENTINFO* pInfo, GUID guidApp, BOOL bPaused);
///Generated when the server application process is marked for recycling termination.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidApp = The application ID.
/// guidProcess = The process ID.
/// lReason = The reason code that explains why a process was recycled. The following codes are defined. <table> <tr>
/// <th>Value</th> <th>Meaning</th> </tr> <tr> <td width="40%"><a id="CRR_NO_REASON_SUPPLIED"></a><a
/// id="crr_no_reason_supplied"></a><dl> <dt><b>CRR_NO_REASON_SUPPLIED</b></dt> <dt>0x00000000</dt> </dl> </td>
/// <td width="60%"> The reason is not specified. </td> </tr> <tr> <td width="40%"><a
/// id="CRR_LIFETIME_LIMIT"></a><a id="crr_lifetime_limit"></a><dl> <dt><b>CRR_LIFETIME_LIMIT</b></dt>
/// <dt>xFFFFFFFF</dt> </dl> </td> <td width="60%"> The specified number of minutes that an application runs
/// before recycling was reached. </td> </tr> <tr> <td width="40%"><a id="CRR_ACTIVATION_LIMIT"></a><a
/// id="crr_activation_limit"></a><dl> <dt><b>CRR_ACTIVATION_LIMIT</b></dt> <dt>0xFFFFFFFE</dt> </dl> </td> <td
/// width="60%"> The specified number of activations was reached. </td> </tr> <tr> <td width="40%"><a
/// id="CRR_CALL_LIMIT"></a><a id="crr_call_limit"></a><dl> <dt><b>CRR_CALL_LIMIT</b></dt> <dt>0xFFFFFFFD</dt>
/// </dl> </td> <td width="60%"> The specified number of calls to configured objects in the application was
/// reached. </td> </tr> <tr> <td width="40%"><a id="CRR_MEMORY_LIMIT"></a><a id="crr_memory_limit"></a><dl>
/// <dt><b>CRR_MEMORY_LIMIT</b></dt> <dt>0xFFFFFFFC</dt> </dl> </td> <td width="60%"> The specified memory usage
/// that a process cannot exceed was reached. </td> </tr> <tr> <td width="40%"><a
/// id="CRR_RECYCLED_FROM_UI"></a><a id="crr_recycled_from_ui"></a><dl> <dt><b>CRR_RECYCLED_FROM_UI</b></dt>
/// <dt>xFFFFFFFB</dt> </dl> </td> <td width="60%"> An administrator decided to recycle the process through the
/// Component Services administration tool. </td> </tr> </table>
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnAppRecycle2(COMSVCSEVENTINFO* pInfo, GUID guidApp, GUID guidProcess, int lReason);
}
///Notifies the subscriber if a Microsoft Distributed Transaction Coordinator (DTC) transaction starts, commits, or
///aborts. The subscriber is also notified when the transaction is in the prepare phase of the two-phase commit
///protocol. The events are published to the subscriber using the COM+ Events service, a loosely coupled events system
///that stores event information from different publishers in an event store in the COM+ catalog.
@GUID("A136F62A-2F94-4288-86E0-D8A1FA4C0299")
interface IComTransaction2Events : IUnknown
{
///Generated when a Microsoft Distributed Transaction Coordinator (DTC) transaction starts.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidTx = The transaction identifier.
/// tsid = The transaction stream identifier for the correlation to objects.
/// fRoot = Indicates whether the transaction is a root transaction.
/// nIsolationLevel = The isolation level of the transaction.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnTransactionStart2(COMSVCSEVENTINFO* pInfo, const(GUID)* guidTx, const(GUID)* tsid, BOOL fRoot,
int nIsolationLevel);
///Generated when the transaction is in the prepare phase of the commit protocol.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidTx = The transaction identifier.
/// fVoteYes = The resource manager's result concerning the outcome of the prepare phase.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnTransactionPrepare2(COMSVCSEVENTINFO* pInfo, const(GUID)* guidTx, BOOL fVoteYes);
///Generated when a transaction aborts.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidTx = The transaction identifier.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnTransactionAbort2(COMSVCSEVENTINFO* pInfo, const(GUID)* guidTx);
///Generated when a transaction commits.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidTx = The transaction identifier.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnTransactionCommit2(COMSVCSEVENTINFO* pInfo, const(GUID)* guidTx);
}
///Notifies the subscriber if an object is created or released by a client. The events are published to the subscriber
///using the COM+ Events service, a loosely coupled events system that stores event information from different
///publishers in an event store in the COM+ catalog.
@GUID("20E3BF07-B506-4AD5-A50C-D2CA5B9C158E")
interface IComInstance2Events : IUnknown
{
///Generated when a client creates an object.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidActivity = The identifier of the activity in which the object is created.
/// clsid = The CLSID of the object being created.
/// tsid = The transaction stream identifier, which is unique for correlation to objects.
/// CtxtID = The context identifier for this object.
/// ObjectID = The initial JIT-activated object.
/// guidPartition = The partition identifier for which this instance is created.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnObjectCreate2(COMSVCSEVENTINFO* pInfo, const(GUID)* guidActivity, const(GUID)* clsid,
const(GUID)* tsid, ulong CtxtID, ulong ObjectID, const(GUID)* guidPartition);
///Generated when a client releases an object.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// CtxtID = The context identifier of the object.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnObjectDestroy2(COMSVCSEVENTINFO* pInfo, ulong CtxtID);
}
///Notifies the subscriber if a transactional or non-transactional object is added to or obtained from the object pool.
///The events are published to the subscriber using the COM+ Events service, a loosely coupled events system that stores
///event information from different publishers in an event store in the COM+ catalog.
@GUID("65BF6534-85EA-4F64-8CF4-3D974B2AB1CF")
interface IComObjectPool2Events : IUnknown
{
///Generated when an object is added to the pool.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidObject = The CLSID for the objects in the pool.
/// nReason = This parameter is reserved.
/// dwAvailable = The number of objects in the pool.
/// oid = The unique identifier for this object.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnObjPoolPutObject2(COMSVCSEVENTINFO* pInfo, const(GUID)* guidObject, int nReason, uint dwAvailable,
ulong oid);
///Generated when a non-transactional object is obtained from the pool.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidActivity = The activity ID for which the object is created.
/// guidObject = The CLSID for the objects in the pool.
/// dwAvailable = The number of objects in the pool.
/// oid = The unique identifier for this object.
/// guidPartition = The partition identifier for this instance.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnObjPoolGetObject2(COMSVCSEVENTINFO* pInfo, const(GUID)* guidActivity, const(GUID)* guidObject,
uint dwAvailable, ulong oid, const(GUID)* guidPartition);
///Generated when a transactional object is returned to the pool.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidActivity = The activity ID for which the object is created.
/// guidObject = The CLSID for the objects in the pool.
/// guidTx = The transaction identifier.
/// objid = The unique identifier for this object.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnObjPoolRecycleToTx2(COMSVCSEVENTINFO* pInfo, const(GUID)* guidActivity, const(GUID)* guidObject,
const(GUID)* guidTx, ulong objid);
///Generated when a transactional object is obtained from the pool.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidActivity = The activity ID for which the object is created.
/// guidObject = The CLSID for the objects in the pool.
/// guidTx = The GUID representing the transaction identifier.
/// objid = The unique identifier for this object.
/// guidPartition = The partition identifier for this instance.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnObjPoolGetFromTx2(COMSVCSEVENTINFO* pInfo, const(GUID)* guidActivity, const(GUID)* guidObject,
const(GUID)* guidTx, ulong objid, const(GUID)* guidPartition);
}
///Notifies the subscriber if a constructed object is created. The events are published to the subscriber using the COM+
///Events service, a loosely coupled events system that stores event information from different publishers in an event
///store in the COM+ catalog. A constructed object is derived from the IObjectConstruct interface. Constructed objects
///can inherit parameter names from within other objects or libraries.
@GUID("4B5A7827-8DF2-45C0-8F6F-57EA1F856A9F")
interface IComObjectConstruction2Events : IUnknown
{
///Generated when a constructed object is created.
///Params:
/// pInfo = A pointer to a COMSVCSEVENTINFO structure.
/// guidObject = The CLSID for the objects in the pool.
/// sConstructString = The object construction string.
/// oid = The unique constructed object identifier.
/// guidPartition = The partition identifier for which this instance is created.
///Returns:
/// The user verifies the return values from this method.
///
HRESULT OnObjectConstruct2(COMSVCSEVENTINFO* pInfo, const(GUID)* guidObject, const(PWSTR) sConstructString,
ulong oid, const(GUID)* guidPartition);
}
///Notifies the subscriber when a COM+ application instance is created or reconfigured. The application event is
///published to the subscriber by using the COM+ Events service, a loosely coupled events system that stores event
///information from different publishers in an event store in the COM+ catalog.
@GUID("D6D48A3C-D5C5-49E7-8C74-99E4889ED52F")
interface ISystemAppEventData : IUnknown
{
///Invoked when a COM+ application instance is created.
///Returns:
/// If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it
/// returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.
///
HRESULT Startup();
///Generated when the configuration of a COM+ application instance is changed.
///Params:
/// dwPID = The process identifier of the application instance for which the configuration was changed.
/// dwMask = The event mask used to determine which tracing event fires.
/// dwNumberSinks = Always set equal to SinkType::NUMBER_SINKS.
/// bstrDwMethodMask = The event mask used to determine to which events the user has subscribed.
/// dwReason = Always set equal to INFO_MASKCHANGED.
/// u64TraceHandle = A handle to the relevant tracing session.
///Returns:
/// If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it
/// returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.
///
HRESULT OnDataChanged(uint dwPID, uint dwMask, uint dwNumberSinks, BSTR bstrDwMethodMask, uint dwReason,
ulong u64TraceHandle);
}
///Provides methods for obtaining information about the running package and establishing event sinks. The events are
///published to the subscriber using the COM+ Events service, a loosely coupled events system that stores event
///information from different publishers in an event store in the COM+ catalog.
@GUID("BACEDF4D-74AB-11D0-B162-00AA00BA3258")
interface IMtsEvents : IDispatch
{
///Retrieves the name of the package in which the instance of the object that implements the IMtsEvents interface is
///running.
///Params:
/// pVal = A pointer to the package name string.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT get_PackageName(BSTR* pVal);
///Retrieves the globally unique identifier (GUID) for the package in which the event occurred.
///Params:
/// pVal = A pointer to the package GUID.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT get_PackageGuid(BSTR* pVal);
///Posts a user-defined event to an event sink.
///Params:
/// vEvent = A pointer to the name of the event.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT PostEvent(VARIANT* vEvent);
///Retrieves whether events are enabled or disabled for an event sink.
///Params:
/// pVal = Indicates whether events are enabled or disabled for an event sink.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT get_FireEvents(short* pVal);
///Retrieves the identifier of the process in which the event occurred.
///Params:
/// id = A pointer to the process identification for the event.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT GetProcessID(int* id);
}
///Describes user-defined events. The events are published to the subscriber using the COM+ Events service, a loosely
///coupled events system that stores event information from different publishers in an event store in the COM+ catalog.
@GUID("D56C3DC1-8482-11D0-B170-00AA00BA3258")
interface IMtsEventInfo : IDispatch
{
///Retrieves an enumerator for the names of the data values.
///Params:
/// pUnk = An interface pointer to the enumerator.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT get_Names(IUnknown* pUnk);
///Retrieves the display name of the object.
///Params:
/// sDisplayName = The display name of the object.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT get_DisplayName(BSTR* sDisplayName);
///Retrieves the event identifier of the object.
///Params:
/// sGuidEventID = The event identifier of the object. This is a GUID converted to a string.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT get_EventID(BSTR* sGuidEventID);
///Retrieves the number of data values from the object.
///Params:
/// lCount = The number of data values from the object.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT get_Count(int* lCount);
///Retrieves the value of the specified user-defined event.
///Params:
/// sKey = The name or ordinal of the value.
/// pVal = The value of the user-defined event.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT get_Value(BSTR sKey, VARIANT* pVal);
}
///Describes a single event that provides access to the IMtsEvents interface of the event dispatcher for the current
///process. The events are published to the subscriber using the COM+ Events service, a loosely coupled events system
///that stores event information from different publishers in an event store in the COM+ catalog.
@GUID("D19B8BFD-7F88-11D0-B16E-00AA00BA3258")
interface IMTSLocator : IDispatch
{
///Retrieves a pointer to the event dispatcher for the current process.
///Params:
/// pUnk = A pointer to the IUnknown interface of the event dispatcher for the current process.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT GetEventDispatcher(IUnknown* pUnk);
}
///Provides methods for enumerating through running packages. The events are published to the subscriber using the COM+
///Events service, a loosely coupled events system that stores event information from different publishers in an event
///store in the COM+ catalog.
@GUID("4B2E958C-0393-11D1-B1AB-00AA00BA3258")
interface IMtsGrp : IDispatch
{
///Retrieves the number of running packages in the catalog.
///Params:
/// pVal = The number of running packages.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT get_Count(int* pVal);
///Retrieves the IUnknown pointer for the specified package.
///Params:
/// lIndex = The index containing running packages.
/// ppUnkDispatcher = A pointer to an IUnknown interface pointer, which can be used to access IMtsEvents.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT Item(int lIndex, IUnknown* ppUnkDispatcher);
///Updates the list of IUnknown pointers that was populated upon the creation of the object.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT Refresh();
}
///Moves messages from one queue to another queue.
@GUID("588A085A-B795-11D1-8054-00C04FC340EE")
interface IMessageMover : IDispatch
{
///Retrieves the current path of the source (input) queue.
///Params:
/// pVal = The path.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT get_SourcePath(BSTR* pVal);
///Sets the path of the source (input) queue.
///Params:
/// newVal = The path.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT put_SourcePath(BSTR newVal);
///Retrieves the path of the destination (output) queue.
///Params:
/// pVal = The path.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT get_DestPath(BSTR* pVal);
///Sets the path of the destination (output) queue.
///Params:
/// newVal = The path.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT put_DestPath(BSTR newVal);
///Retrieves the commit batch size.
///Params:
/// pVal = The commit batch size.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT get_CommitBatchSize(int* pVal);
///Sets the commit batch size. This is the number of messages that should be moved from source to destination queue
///between commit operations.
///Params:
/// newVal = The commit batch size.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT put_CommitBatchSize(int newVal);
///Moves all messages from the source queue to the destination queue.
///Params:
/// plMessagesMoved = The number of messages that were moved from the source to the destination queue.
///Returns:
/// If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it
/// returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.
///
HRESULT MoveMessages(int* plMessagesMoved);
}
@GUID("9A9F12B8-80AF-47AB-A579-35EA57725370")
interface IEventServerTrace : IDispatch
{
HRESULT StartTraceGuid(BSTR bstrguidEvent, BSTR bstrguidFilter, int lPidFilter);
HRESULT StopTraceGuid(BSTR bstrguidEvent, BSTR bstrguidFilter, int lPidFilter);
HRESULT EnumTraceGuid(int* plCntGuids, BSTR* pbstrGuidList);
}
///Enables administrative applications to retrieve statistical information about running COM+ applications.
@GUID("507C3AC8-3E12-4CB0-9366-653D3E050638")
interface IGetAppTrackerData : IUnknown
{
///Retrieves summary information for all processes that are hosting COM+ applications, or for a specified subset of
///these processes.
///Params:
/// PartitionId = A partition ID to filter results, or GUID_NULL for all partitions.
/// ApplicationId = An application ID to filter results, or GUID_NULL for all applications.
/// Flags = A combination of flags from the GetAppTrackerDataFlags enumeration to filter results and to select which data
/// is returned. The following flags are supported: GATD_INCLUDE_PROCESS_EXE_NAME, GATD_INCLUDE_LIBRARY_APPS,
/// GATD_INCLUDE_SWC. See remarks below for more information.
/// NumApplicationProcesses = On return, the number of processes that match the filter criteria specified by <i>PartitionId</i>,
/// <i>ApplicationId</i>, and <i>Flags</i>.
/// ApplicationProcesses = On return, an array of ApplicationProcessSummary structures for the matching processes.
///Returns:
/// This method can return the standard return values E_INVALIDARG and E_OUTOFMEMORY, as well as the following
/// values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully and the results are in
/// the <i>ApplicationProcesses</i> parameter. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>S_FALSE</b></dt>
/// </dl> </td> <td width="60%"> The method completed successfully, but there were no processes the matched the
/// filter criteria. </td> </tr> </table>
///
HRESULT GetApplicationProcesses(const(GUID)* PartitionId, const(GUID)* ApplicationId, uint Flags,
uint* NumApplicationProcesses, ApplicationProcessSummary** ApplicationProcesses);
///Retrieves detailed information about a single process hosting COM+ applications.
///Params:
/// ApplicationInstanceId = The application instance GUID that uniquely identifies the tracked process to select, or GUID_NULL if the
/// <i>ProcessId</i> parameter will be used for selection instead.
/// ProcessId = The process ID that identifies the process to select, or 0 if the <i>ApplicationInstanceId</i> parameter will
/// be used for selection instead.
/// Flags = A combination of flags from the GetAppTrackerDataFlags enumeration that specify which data is to be returned.
/// The following flags are supported: GATD_INCLUDE_PROCESS_EXE_NAME (if retrieving a summary).
/// Summary = On return, a ApplicationProcessSummary structure with summary information for the process. This parameter can
/// be <b>NULL</b>.
/// Statistics = On return, a ApplicationProcessStatistics structure with statistics for the process. This parameter can be
/// <b>NULL</b>.
/// RecycleInfo = On return, a ApplicationProcessRecycleInfo structure with recycling details for the process. This parameter
/// can be <b>NULL</b>.
/// AnyComponentsHangMonitored = On return, indicates whether any components in the process are configured for hang monitoring. This parameter
/// can be <b>NULL</b>.
///Returns:
/// This method can return the standard return values E_INVALIDARG and E_OUTOFMEMORY, as well as the following
/// values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>COMADMIN_E_APP_NOT_RUNNING</b></dt> </dl> </td> <td width="60%"> The specified
/// process does not exist, or is not hosting any tracked COM+ applications. </td> </tr> </table>
///
HRESULT GetApplicationProcessDetails(const(GUID)* ApplicationInstanceId, uint ProcessId, uint Flags,
ApplicationProcessSummary* Summary,
ApplicationProcessStatistics* Statistics,
ApplicationProcessRecycleInfo* RecycleInfo,
BOOL* AnyComponentsHangMonitored);
///Retrieves summary information for all COM+ applications hosted in a single process, or for a specified subset of
///these applications.
///Params:
/// ApplicationInstanceId = The application instance GUID that uniquely identifies the tracked process to select, or GUID_NULL if the
/// <i>ProcessId</i> parameter will be used for selection instead.
/// ProcessId = The process ID that identifies the process to select, or 0 if <i>ApplicationInstanceId</i> will be used for
/// selection instead.
/// PartitionId = A partition ID to filter results, or GUID_NULL for all partitions.
/// Flags = A combination of flags from the GetAppTrackerDataFlags enumeration to filter results and to select which data
/// is returned. The following flags are supported: GATD_INCLUDE_LIBRARY_APPS, GATD_INCLUDE_SWC,
/// GATD_INCLUDE_APPLICATION_NAME. See Remarks below for more information.
/// NumApplicationsInProcess = On return, the number of applications in the process that match the filter criteria specified by
/// <i>PartitionId</i> and <i>Flags</i>.
/// Applications = On return, an array of ApplicationSummary structures for the matching applications.
///Returns:
/// This method can return the standard return values E_INVALIDARG and E_OUTOFMEMORY, as well as the following
/// values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully and the results are in
/// the <i>Applications</i> parameter. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>S_FALSE</b></dt> </dl> </td>
/// <td width="60%"> The method completed successfully, but there were no processes the matched the filter
/// criteria. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>COMADMIN_E_APP_NOT_RUNNING</b></dt> </dl> </td> <td
/// width="60%"> The specified process does not exist, or is not hosting any tracked COM+ applications. </td>
/// </tr> </table>
///
HRESULT GetApplicationsInProcess(const(GUID)* ApplicationInstanceId, uint ProcessId, const(GUID)* PartitionId,
uint Flags, uint* NumApplicationsInProcess, ApplicationSummary** Applications);
///Retrieves summary information for all COM+ components hosted in a single process, or for a specified subset of
///these components.
///Params:
/// ApplicationInstanceId = The application instance GUID that uniquely identifies the tracked process to select, or GUID_NULL if the
/// <i>ProcessId</i> parameter will be used for selection instead.
/// ProcessId = The process ID that identifies the process to select, or 0 if the <i>ApplicationInstanceId</i> parameter will
/// be used for selection instead.
/// PartitionId = A partition ID to filter results, or GUID_NULL for all partitions.
/// ApplicationId = An application ID to filter results, or GUID_NULL for all applications.
/// Flags = A combination of flags from the GetAppTrackerDataFlags enumeration to filter results and to select which data
/// is returned. The following flags are supported: GATD_INCLUDE_LIBRARY_APPS, GATD_INCLUDE_SWC,
/// GATD_INCLUDE_CLASS_NAME, GATD_INCLUDE_APPLICATION_NAME. See Remarks below for more information.
/// NumComponentsInProcess = On return, the number of components in the process that match the filter criteria specified by
/// <i>PartitionId</i>, <i>ApplicationId</i>, and <i>Flags</i>.
/// Components = On return, an array of ComponentSummary structures for the matching components.
///Returns:
/// This method can return the standard return values E_INVALIDARG and E_OUTOFMEMORY, as well as the following
/// values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully and the results are in
/// the <i>Components</i> parameter. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>S_FALSE</b></dt> </dl> </td>
/// <td width="60%"> The method completed successfully, but there were no components the matched the filter
/// criteria. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>COMADMIN_E_APP_NOT_RUNNING</b></dt> </dl> </td> <td
/// width="60%"> The specified process does not exist, or is not hosting any tracked COM+ applications. </td>
/// </tr> </table>
///
HRESULT GetComponentsInProcess(const(GUID)* ApplicationInstanceId, uint ProcessId, const(GUID)* PartitionId,
const(GUID)* ApplicationId, uint Flags, uint* NumComponentsInProcess,
ComponentSummary** Components);
///Retrieves detailed information about a single COM+ component hosted in a process.
///Params:
/// ApplicationInstanceId = The application instance GUID that uniquely identifies the tracked process to select, or GUID_NULL if the
/// <i>ProcessId</i> parameter will be used for selection instead.
/// ProcessId = The process ID that identifies the process to select, or 0 if <i>ApplicationInstanceId</i> will be used for
/// selection instead.
/// Clsid = The CLSID of the component.
/// Flags = A combination of flags from the GetAppTrackerDataFlags enumeration to select which data is returned. The
/// following flags are supported: GATD_INCLUDE_CLASS_NAME (if retrieving a summary),
/// GATD_INCLUDE_APPLICATION_NAME (if retrieving a summary).
/// Summary = On return, a ComponentSummary structure with summary information for the component. This parameter can be
/// <b>NULL</b>.
/// Statistics = On return, a ComponentStatistics structure with statistics for the component. This parameter can be
/// <b>NULL</b>.
/// HangMonitorInfo = On return, a ComponentHangMonitorInfo structure with hang monitoring configuration for the component. This
/// parameter can be <b>NULL</b>.
///Returns:
/// This method can return the standard return values E_INVALIDARG and E_OUTOFMEMORY, as well as the following
/// values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>COMADMIN_E_APP_NOT_RUNNING</b></dt> </dl> </td> <td width="60%"> The specified
/// process does not exist, or is not hosting any tracked COM+ applications. </td> </tr> <tr> <td width="40%">
/// <dl> <dt><b>COMADMIN_E_OBJECT_DOES_NOT_EXIST</b></dt> </dl> </td> <td width="60%"> The specified component
/// does not exist in the specified process. </td> </tr> </table>
///
HRESULT GetComponentDetails(const(GUID)* ApplicationInstanceId, uint ProcessId, const(GUID)* Clsid, uint Flags,
ComponentSummary* Summary, ComponentStatistics* Statistics,
ComponentHangMonitorInfo* HangMonitorInfo);
///Retrieves tracking data for all COM+ applications in the form of a collection object.
///Params:
/// TopLevelCollection = On return, the IUnknown interface for a collection of tracker data.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, and S_OK.
///
HRESULT GetTrackerDataAsCollectionObject(IUnknown* TopLevelCollection);
///Retrieves the minimum interval for polling suggested by the Tracker Server.
///Params:
/// PollingIntervalInSeconds = The Tracker Server's suggested polling interval, in seconds.
///Returns:
/// This method can return the standard return values E_INVALIDARG and S_OK.
///
HRESULT GetSuggestedPollingInterval(uint* PollingIntervalInSeconds);
}
///Connects to the dispenser manager.
@GUID("5CB31E10-2B5F-11CF-BE10-00AA00A2FA25")
interface IDispenserManager : IUnknown
{
///Registers the resource dispenser with the dispenser manager.
///Params:
/// __MIDL__IDispenserManager0000 = The IDispenserDriver interface the Resource Dispenser offers to the Dispenser Manager to use later to notify
/// the Resource Dispenser.
/// szDispenserName = A friendly name of the Resource Dispenser for administrator display.
/// __MIDL__IDispenserManager0001 = The IHolder interface that has been instantiated for the resource dispenser.
///Returns:
/// If the method succeeds, the return value is S_OK. Otherwise, it is E_FAIL.
///
HRESULT RegisterDispenser(IDispenserDriver __MIDL__IDispenserManager0000, const(PWSTR) szDispenserName,
IHolder* __MIDL__IDispenserManager0001);
///Determines the current context.
///Params:
/// __MIDL__IDispenserManager0002 = An internal unique identifier of the current object, or 0 if no current object. This may not be interpreted
/// as an IUnknown pointer to the current object.
/// __MIDL__IDispenserManager0003 = The transaction that the current object is running in, or 0 if none. This value may be cast to
/// <b>ITransaction *</b>.
///Returns:
/// If the method succeeds, the return value is S_OK. Otherwise, it is E_FAIL.
///
HRESULT GetContext(size_t* __MIDL__IDispenserManager0002, size_t* __MIDL__IDispenserManager0003);
}
///Allocates or frees resources for an installed Resource Dispenser. The Dispenser Manager exposes a different
///<b>IHolder</b> interface to each installed Resource Dispenser.
@GUID("BF6A1850-2B45-11CF-BE10-00AA00A2FA25")
interface IHolder : IUnknown
{
///Allocates a resource from the inventory.
///Params:
/// __MIDL__IHolder0000 = The type of resource to be allocated.
/// __MIDL__IHolder0001 = A pointer to the location where the handle of the allocated resource is returned.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_INVALIDARG</b></dt> </dl> </td> <td
/// width="60%"> <i>ResTypId</i> is <b>NULL</b> or an empty string, or the Resource Dispenser's
/// IDispenserDriver::CreateResource method generated an empty or duplicate RESID. </td> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>E_FAIL </b></dt> </dl> </td> <td width="60%"> The method failed. The <i>pResId</i>
/// parameter has not been set. The likely cause is that the caller's transaction is aborting. </td> </tr>
/// </table>
///
HRESULT AllocResource(const(size_t) __MIDL__IHolder0000, size_t* __MIDL__IHolder0001);
///Returns a resource to the inventory.
///Params:
/// __MIDL__IHolder0002 = The handle of the resource to be freed.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_INVALIDARG</b></dt> </dl> </td> <td
/// width="60%"> <i>ResTypId</i> is not a valid resource handle. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>E_FAIL </b></dt> </dl> </td> <td width="60%"> The method failed. The resource has not been freed.
/// </td> </tr> </table>
///
HRESULT FreeResource(const(size_t) __MIDL__IHolder0002);
///Tracks the resource.
///Params:
/// __MIDL__IHolder0003 = The handle of the resource to be tracked. The Resource Dispenser has already created this resource before
/// calling <b>TrackResource</b>.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_INVALIDARG</b></dt> </dl> </td> <td
/// width="60%"> <i>ResId</i> is not a valid resource handle. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>E_FAIL </b></dt> </dl> </td> <td width="60%"> The method failed. The resource has not been tracked.
/// The likely cause is that the caller's transaction is aborting. </td> </tr> </table>
///
HRESULT TrackResource(const(size_t) __MIDL__IHolder0003);
///Tracks the resource (string version).
///Params:
/// __MIDL__IHolder0004 = The handle of the resource to be tracked. The Resource Dispenser has already created this resource before
/// calling <b>TrackResourceS</b>.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_INVALIDARG</b></dt> </dl> </td> <td
/// width="60%"> <i>SResId</i> is not a valid resource handle. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>E_FAIL </b></dt> </dl> </td> <td width="60%"> The method failed. The resource has not been tracked.
/// The likely cause is that the caller's transaction is aborting. </td> </tr> </table>
///
HRESULT TrackResourceS(ushort* __MIDL__IHolder0004);
///Stops tracking a resource.
///Params:
/// __MIDL__IHolder0005 = The handle of the resource to stop tracking.
/// __MIDL__IHolder0006 = If <b>TRUE</b>, caller is requesting that the resource be destroyed, by calling
/// IDispenserDriver::DestroyResource. If <b>FALSE</b>, caller destroys the resource.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_INVALIDARG</b></dt> </dl> </td> <td
/// width="60%"> <i>ResId</i> is not a valid resource handle. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>E_FAIL </b></dt> </dl> </td> <td width="60%"> The method failed. </td> </tr> </table>
///
HRESULT UntrackResource(const(size_t) __MIDL__IHolder0005, const(BOOL) __MIDL__IHolder0006);
///Stops tracking a resource (string version).
///Params:
/// __MIDL__IHolder0007 = The handle of the resource to stop tracking.
/// __MIDL__IHolder0008 = If <b>TRUE</b>, caller is requesting that the resource be destroyed, by calling
/// IDispenserDriver::DestroyResource. If <b>FALSE</b>, caller destroys the resource.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_INVALIDARG</b></dt> </dl> </td> <td
/// width="60%"> <i>SResId</i> is not a valid resource handle. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>E_FAIL </b></dt> </dl> </td> <td width="60%"> The method failed. </td> </tr> </table>
///
HRESULT UntrackResourceS(ushort* __MIDL__IHolder0007, const(BOOL) __MIDL__IHolder0008);
///Closes the Holder.
///Returns:
/// If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it
/// returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.
///
HRESULT Close();
///Deletes a resource, calling its destructor to free memory and other associated system resources.
///Params:
/// __MIDL__IHolder0009 = The resource to be destroyed.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_INVALIDARG</b></dt> </dl> </td> <td
/// width="60%"> <i>ResId</i> is not a valid resource handle. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>E_FAIL </b></dt> </dl> </td> <td width="60%"> The method failed. The resource has not been destroyed.
/// </td> </tr> </table>
///
HRESULT RequestDestroyResource(const(size_t) __MIDL__IHolder0009);
}
///Is called by the holder of the COM+ Resource Dispenser to create, enlist, evaluate, prepare, and destroy a resource.
@GUID("208B3651-2B48-11CF-BE10-00AA00A2FA25")
interface IDispenserDriver : IUnknown
{
///Creates a resource.
///Params:
/// ResTypId = The type of resource to be created.
/// pResId = A handle to the newly created resource.
/// pSecsFreeBeforeDestroy = The time-out of the new resource. This is the number of seconds that this resource is allowed to remain idle
/// in the pool before it is destroyed.
///Returns:
/// If the method succeeds, the return value is S_OK. Otherwise, it is E_FAIL.
///
HRESULT CreateResource(const(size_t) ResTypId, size_t* pResId, int* pSecsFreeBeforeDestroy);
///Evaluates how well a candidate resource matches.
///Params:
/// ResTypId = The type of resource that the Dispenser Manager is looking to match.
/// ResId = The candidate resource that the Dispenser Manager is considering.
/// fRequiresTransactionEnlistment = If <b>TRUE</b>, the candidate resource (<i>ResId</i>), if chosen, requires transaction enlistment. If
/// enlistment is expensive, <b>RateResource</b> might rate such a resource lower than a resource that is already
/// enlisted in the correct transaction.
/// pRating = The Dispenser's rating of this candidate. This parameter can be one of the following values. <table> <tr>
/// <th>Value</th> <th>Meaning</th> </tr> <tr> <td width="40%"> <dl> <dt>0</dt> </dl> </td> <td width="60%"> The
/// candidate resource is unusable for this request. The resource is not or cannot be changed to be of type
/// <i>ResTypId</i>. </td> </tr> <tr> <td width="40%"> <dl> <dt>1</dt> </dl> </td> <td width="60%"> The candidate
/// is a bad fit, but usable. The Dispenser Manager will continue to suggest candidates. </td> </tr> <tr> <td
/// width="40%"> <dl> <dt>2</dt> </dl> </td> <td width="60%"> The candidate is better than candidates rated as 1.
/// The Dispenser Manager will continue to suggest candidates. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt>100</dt> </dl> </td> <td width="60%"> The candidate is a perfect fit. The Dispenser Manager will stop
/// suggesting candidates. </td> </tr> </table>
///Returns:
/// If the method succeeds, the return value is S_OK. Otherwise, it is E_FAIL.
///
HRESULT RateResource(const(size_t) ResTypId, const(size_t) ResId, const(BOOL) fRequiresTransactionEnlistment,
uint* pRating);
///Enlists a resource in a transaction.
///Params:
/// ResId = The resource that the Dispenser Manager is asking to be enlisted in transaction <i>TransId</i>.
/// TransId = The transaction that the Dispenser Manager wants the Resource Dispenser to enlist resource <i>ResId</i> in.
/// The Dispenser Manager passes 0 to indicate that the Resource Dispenser should ensure that the resource is not
/// enlisted in any transaction.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>S_FALSE</b></dt> </dl> </td> <td width="60%"> The
/// resource is not enlistable (not transaction capable). </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>E_INVALIDARG</b></dt> </dl> </td> <td width="60%"> One of the arguments is not valid. </td> </tr> <tr>
/// <td width="40%"> <dl> <dt><b>E_FAIL</b></dt> </dl> </td> <td width="60%"> The method failed. </td> </tr>
/// </table>
///
HRESULT EnlistResource(const(size_t) ResId, const(size_t) TransId);
///Prepares the resource to be put back into general or enlisted inventory.
///Params:
/// ResId = The resource to be reset.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_INVALIDARG</b></dt> </dl> </td> <td
/// width="60%"> <i>ResId</i> is not a valid resource handle. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>E_FAIL</b></dt> </dl> </td> <td width="60%"> The method failed. </td> </tr> </table>
///
HRESULT ResetResource(const(size_t) ResId);
///Destroys a resource.
///Params:
/// ResId = The resource that the Dispenser Manager is asking the Resource Dispenser to destroy.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_NOTIMPL</b></dt> </dl> </td> <td width="60%">
/// The Resource Dispenser does not support numeric RESIDs. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>E_FAIL</b></dt> </dl> </td> <td width="60%"> The method failed. </td> </tr> </table>
///
HRESULT DestroyResource(const(size_t) ResId);
///Destroys a resource (string resource version).
///Params:
/// ResId = The resource that the Dispenser Manager is asking the Resource Dispenser to destroy.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_NOTIMPL</b></dt> </dl> </td> <td width="60%">
/// The Resource Dispenser does not support numeric SRESIDs. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>E_FAIL</b></dt> </dl> </td> <td width="60%"> The method failed. </td> </tr> </table>
///
HRESULT DestroyResourceS(ushort* ResId);
}
///Provides a way for a COM+ transaction context to work with a non-DTC transaction.
@GUID("02558374-DF2E-4DAE-BD6B-1D5C994F9BDC")
interface ITransactionProxy : IUnknown
{
///Commits the transaction.
///Params:
/// guid = A GUID that identifies the transaction to commit.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_UNEXPECTED, as well as
/// the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The transaction was committed. </td> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>CONTEXT_E_ABORTED</b></dt> </dl> </td> <td width="60%"> The transaction was aborted.
/// </td> </tr> </table>
///
HRESULT Commit(GUID guid);
///Aborts the transaction.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and S_OK.
///
HRESULT Abort();
///Promotes a non-DTC transaction to a DTC transaction.
///Params:
/// pTransaction = An implementation of <b>ITransaction</b> that represents the DTC transaction.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and S_OK.
///
HRESULT Promote(ITransaction* pTransaction);
///Provides a ballot so that a COM+ transaction context can vote on the transaction.
///Params:
/// pTxAsync = An implementation of <b>ITransactionVoterNotifyAsync2</b> that notifies the voter of a vote request.
/// ppBallot = An implementation of <b>ITransactionVoterBallotAsync2</b> that allows the voter to approve or veto the
/// non-DTC transaction.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and S_OK.
///
HRESULT CreateVoter(ITransactionVoterNotifyAsync2 pTxAsync, ITransactionVoterBallotAsync2* ppBallot);
///Retrieves the isolation level of the non-DTC transaction.
///Params:
/// __MIDL__ITransactionProxy0000 = A pointer to an ISOLATIONLEVEL value that specifies the isolation level of the non-DTC transaction.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and S_OK.
///
HRESULT GetIsolationLevel(int* __MIDL__ITransactionProxy0000);
///Retrieves the identifier of the non-DTC transaction.
///Params:
/// pbstrIdentifier = The GUID that identifies the non-DTC transaction.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and S_OK.
///
HRESULT GetIdentifier(GUID* pbstrIdentifier);
///Indicates whether the non-DTC transaction context can be reused for multiple transactions.
///Params:
/// pfIsReusable = <b>TRUE</b> if the non-DTC transaction context can be reused for multiple transactions; otherwise,
/// <b>FALSE</b>.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and S_OK.
///
HRESULT IsReusable(BOOL* pfIsReusable);
}
@GUID("A7549A29-A7C4-42E1-8DC1-7E3D748DC24A")
interface IContextSecurityPerimeter : IUnknown
{
HRESULT GetPerimeterFlag(BOOL* pFlag);
HRESULT SetPerimeterFlag(BOOL fFlag);
}
@GUID("13D86F31-0139-41AF-BCAD-C7D50435FE9F")
interface ITxProxyHolder : IUnknown
{
void GetIdentifier(GUID* pGuidLtx);
}
///Provides access to the current object's context. An object's context is primarily used when working with transactions
///or dealing with the security of an object.
@GUID("51372AE0-CAE7-11CF-BE81-00AA00A2FA25")
interface IObjectContext : IUnknown
{
///Creates an object using current object's context.
///Params:
/// rclsid = The CLSID of the type of object to instantiate.
/// riid = Any interface that's implemented by the object you want to instantiate.
/// ppv = A reference to the requested interface on the new object. If instantiation fails, this parameter is set to
/// <b>NULL</b>.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>REGDB_E_CLASSNOTREG</b></dt> </dl> </td> <td
/// width="60%"> The component specified by clsid is not registered as a COM component. </td> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>E_OUTOFMEMORY</b></dt> </dl> </td> <td width="60%"> There's not enough memory
/// available to instantiate the object. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_INVALIDARG</b></dt>
/// </dl> </td> <td width="60%"> The argument passed in the <i>ppvObj</i> parameter is invalid. </td> </tr> <tr>
/// <td width="40%"> <dl> <dt><b>E_UNEXPECTED</b></dt> </dl> </td> <td width="60%"> An unexpected error occurred.
/// This can happen if one object passes its IObjectContext pointer to another object and the other object calls
/// CreateInstance using this pointer. An <b>IObjectContext</b> pointer is not valid outside the context of the
/// object that originally obtained it. </td> </tr> </table>
///
HRESULT CreateInstance(const(GUID)* rclsid, const(GUID)* riid, void** ppv);
///Declares that the transaction in which the object is executing can be committed and that the object should be
///deactivated when it returns from the currently executing method call.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_UNEXPECTED</b></dt> </dl> </td> <td
/// width="60%"> An unexpected error occurred. This can happen if one object passes its IObjectContext pointer to
/// another object and the other object calls SetComplete using this pointer. An <b>IObjectContext</b> pointer is
/// not valid outside the context of the object that originally obtained it. </td> </tr> </table>
///
HRESULT SetComplete();
///Declares that the transaction in which the object is executing must be aborted and that the object should be
///deactivated when it returns from the currently executing method call.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_UNEXPECTED</b></dt> </dl> </td> <td
/// width="60%"> An unexpected error occurred. This can happen if one object passes its IObjectContext pointer to
/// another object and the other object calls SetAbort using this pointer. An <b>IObjectContext</b> pointer is
/// not valid outside the context of the object that originally obtained it. </td> </tr> </table>
///
HRESULT SetAbort();
///Declares that the object's work is not necessarily finished but that its transactional updates are in a
///consistent state and could be committed in their present form.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully and the object's transactional updates can now be committed. </td> </tr> <tr> <td width="40%">
/// <dl> <dt><b>E_UNEXPECTED</b></dt> </dl> </td> <td width="60%"> An unexpected error occurred. This can happen
/// if one object passes its IObjectContext pointer to another object and the other object calls EnableCommit
/// using this pointer. An <b>IObjectContext</b> pointer is not valid outside the context of the object that
/// originally obtained it. </td> </tr> </table>
///
HRESULT EnableCommit();
///Declares that the object's transactional updates are in an inconsistent state and cannot be committed in their
///present state.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. The object's transactional updates cannot be committed until the object calls either
/// EnableCommit or SetComplete. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_UNEXPECTED</b></dt> </dl> </td>
/// <td width="60%"> An unexpected error occurred. This can happen if one object passes its IObjectContext
/// pointer to another object and the other object calls DisableCommit using this pointer. An
/// <b>IObjectContext</b> pointer is not valid outside the context of the object that originally obtained it.
/// </td> </tr> <tr> <td width="40%"> <dl> <dt><b>CONTEXT_E_NOCONTEXT</b></dt> </dl> </td> <td width="60%"> The
/// current object does not have a context associated with it. This is probably because it was not created with
/// one of the COM+ CreateInstance methods. </td> </tr> </table>
///
HRESULT DisableCommit();
///Indicates whether the object is executing within a transaction.
///Returns:
/// If the current object is executing within a transaction, the return value is <b>TRUE</b>. Otherwise, it is
/// <b>FALSE</b>.
///
BOOL IsInTransaction();
///Indicates whether security is enabled for the current object. COM+ security is enabled unless the object is
///running in the client's process.
///Returns:
/// If security is enabled for this object, the return value is <b>TRUE</b>. Otherwise, it is <b>FALSE</b>.
///
BOOL IsSecurityEnabled();
///Indicates whether the object's direct caller is in a specified role (either directly or as part of a group).
///Params:
/// bstrRole = The name of the role.
/// pfIsInRole = <b>TRUE</b> if the caller is in the specified role; <b>FALSE</b> if not. This parameter is also set to
/// <b>TRUE</b> if security is not enabled.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The role specified in the
/// <i>bstrRole</i> parameter is a recognized role, and the Boolean result returned in the <i>pbIsInRole</i>
/// parameter indicates whether the caller is in that role. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>CONTEXT_E_ROLENOTFOUND</b></dt> </dl> </td> <td width="60%"> The role specified in the <i>bstrRole</i>
/// parameter does not exist. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_INVALIDARG</b></dt> </dl> </td> <td
/// width="60%"> One or more of the arguments passed in is not valid. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>E_UNEXPECTED</b></dt> </dl> </td> <td width="60%"> An unexpected error occurred. This can happen if
/// one object passes its IObjectContext pointer to another object and the other object calls IsCallerInRole
/// using this pointer. An <b>IObjectContext</b> pointer is not valid outside the context of the object that
/// originally obtained it. </td> </tr> </table>
///
HRESULT IsCallerInRole(BSTR bstrRole, BOOL* pfIsInRole);
}
///Defines context-specific initialization and cleanup procedures for your COM+ objects, and specifies whether the
///objects can be recycled.
@GUID("51372AEC-CAE7-11CF-BE81-00AA00A2FA25")
interface IObjectControl : IUnknown
{
///Enables a COM+ object to perform context-specific initialization whenever it is activated. This method is called
///by the COM+ run-time environment before any other methods are called on the object.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT Activate();
///Enables a COM+ object to perform required cleanup before it is recycled or destroyed. This method is called by
///the COM+ run-time environment whenever an object is deactivated. Do not make any method calls on objects in the
///same activity from this method.
void Deactivate();
///Notifies the COM+ run-time environment whether the object can be pooled for reuse when it is deactivated.
///Returns:
/// If the object can be pooled for reuse, the return value is <b>TRUE</b>. Otherwise, it is <b>FALSE</b>.
///
BOOL CanBePooled();
}
///Enumerates names.
@GUID("51372AF2-CAE7-11CF-BE81-00AA00A2FA25")
interface IEnumNames : IUnknown
{
///Retrieves the specified number of items in the enumeration sequence.
///Params:
/// celt = The number of name values being requested.
/// rgname = An array in which the name values are to be returned and which must be of at least the size defined in the
/// <i>celt</i> parameter.
/// pceltFetched = The number of elements returned in <i>rgname</i>, or <b>NULL</b>.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_POINTER, E_OUTOFMEMORY, E_UNEXPECTED, and
/// E_FAIL, as well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr>
/// <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> All elements requested were obtained
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>S_FALSE</b></dt> </dl> </td> <td width="60%"> The
/// number of elements returned is less than the number specified in the <i>celt</i> parameter. </td> </tr>
/// </table>
///
HRESULT Next(uint celt, BSTR* rgname, uint* pceltFetched);
///Skips over the specified number of items in the enumeration sequence.
///Params:
/// celt = The number of elements to be skipped.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The requested number of elements was
/// skipped. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>S_FALSE</b></dt> </dl> </td> <td width="60%"> The
/// number of elements skipped was not the same as the number requested. </td> </tr> </table>
///
HRESULT Skip(uint celt);
///Resets the enumeration sequence to the beginning.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The enumeration sequence was reset. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>S_FALSE</b></dt> </dl> </td> <td width="60%"> The enumeration
/// sequence was reset, but there are no items in the enumerator. </td> </tr> </table>
///
HRESULT Reset();
///Creates an enumerator that contains the same enumeration state as the current one.
///Params:
/// ppenum = Address of a pointer to the IEnumNames interface on the enumeration object.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT Clone(IEnumNames* ppenum);
}
///Determines the security identifier of the current object's original caller or direct caller. However, the preferred
///way to get information about an object's callers is to use the ISecurityCallContext interface.
@GUID("51372AEA-CAE7-11CF-BE81-00AA00A2FA25")
interface ISecurityProperty : IUnknown
{
///In MTS 2.0, this method retrieves the security identifier of the external process that directly created the
///current object. Do not use this method in COM+.
///Params:
/// pSID = A reference to the security ID of the process that directly created the current object.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The security ID of the process that
/// directly created the current object is returned in the parameter <i>pSid</i>. </td> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>CONTEXT_E_NOCONTEXT</b></dt> </dl> </td> <td width="60%"> The current object does
/// not have a context associated with it because either the component was not imported into an application or
/// the object was not created with one of the COM+ CreateInstance methods. </td> </tr> </table>
///
HRESULT GetDirectCreatorSID(void** pSID);
///In MTS 2.0, this method retrieves the security identifier of the base process that initiated the activity in
///which the current object is executing. Do not use this method in COM+.
///Params:
/// pSID = A reference to the security ID of the base process that initiated the activity in which the current object is
/// executing.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The security ID of the original created
/// is returned in the parameter <i>pSid</i>. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>CONTEXT_E_NOCONTEXT</b></dt> </dl> </td> <td width="60%"> The current object does not have a context
/// associated with it because either the component was not imported into an application or the object was not
/// created with one of the COM+ CreateInstance methods. </td> </tr> </table>
///
HRESULT GetOriginalCreatorSID(void** pSID);
///Retrieves the security identifier of the external process that called the currently executing method. You can
///also obtain this information using ISecurityCallContext.
///Params:
/// pSID = A reference to the security ID of the process from which the current method was invoked.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The security ID of the process that
/// called the current method is returned in the parameter <i>pSid</i>. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>CONTEXT_E_NOCONTEXT</b></dt> </dl> </td> <td width="60%"> The current object does not have a context
/// associated with it because either the component was not imported into an application or the object was not
/// created with one of the COM+ CreateInstance methods. </td> </tr> </table>
///
HRESULT GetDirectCallerSID(void** pSID);
///Retrieves the security identifier of the base process that initiated the call sequence from which the current
///method was called. The preferred way to obtain information about the original caller is to use the
///ISecurityCallContext interface.
///Params:
/// pSID = A reference to the security ID of the base process that initiated the call sequence from which the current
/// method was called.
///Returns:
/// This method can return the standard return values <b>E_INVALIDARG</b>, <b>E_OUTOFMEMORY</b>,
/// <b>E_UNEXPECTED</b>, and <b>E_FAIL</b>, as well as the following values. <table> <tr> <th>Return code</th>
/// <th>Description</th> </tr> <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The
/// security ID of the base process that originated the call into the current object is returned in the parameter
/// <i>pSid</i>. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>CONTEXT_E_NOCONTEXT</b></dt> </dl> </td> <td
/// width="60%"> The current object does not have a context associated with it because either the component was
/// not imported into an application or the object was not created with one of the COM+ <b>CreateInstance</b>
/// methods. </td> </tr> </table>
///
HRESULT GetOriginalCallerSID(void** pSID);
///Releases the security identifier returned by one of the other ISecurityProperty methods.
///Params:
/// pSID = A reference to a security ID.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_INVALIDARG</b></dt> </dl> </td> <td
/// width="60%"> The argument passed in the pSid parameter is not a reference to a security ID. </td> </tr>
/// </table>
///
HRESULT ReleaseSID(void* pSID);
}
///If you implement this interface in your component, the COM+ run-time environment automatically calls its methods on
///your objects at the appropriate times. Only the COM+ run-time environment can invoke the <b>ObjectControl</b>
///methods; they are not accessible to an object's clients or to the object itself. If a client queries for the
///<b>ObjectControl</b> interface, QueryInterface returns E_NOINTERFACE. <b>ObjectControl</b> and IObjectControl provide
///the same functionality, but unlike <b>IObjectControl</b>, <b>ObjectControl</b> is compatible with Automation.
@GUID("7DC41850-0C31-11D0-8B79-00AA00B8A790")
interface ObjectControl : IUnknown
{
///Enables a COM+ object to perform context-specific initialization whenever it is activated. This method is called
///by the COM+ run-time environment before any other methods are called on the object.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT Activate();
///Enables a COM+ object to perform cleanup required before it is recycled or destroyed. This method is called by
///the COM+ run-time environment whenever an object is deactivated. Do not make any method calls on objects in the
///same activity from this method.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT Deactivate();
///Indicates whether the object can be pooled for reuse when it is deactivated.
///Params:
/// pbPoolable = Indicates whether the COM+ run-time environment can pool this object on deactivation for later reuse.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT CanBePooled(short* pbPoolable);
}
///Exposes property methods that you can use to set or retrieve the value of a shared property. A shared property can
///contain any data type that can be represented by a <b>Variant</b>.
@GUID("2A005C01-A5DE-11CF-9E66-00AA00A3F464")
interface ISharedProperty : IDispatch
{
///Retrieves the value of a shared property.
///Params:
/// pVal = The value of this shared property.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT get_Value(VARIANT* pVal);
///Sets the value of a shared property.
///Params:
/// val = The new value that is to be set for this shared property.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>DISP_E_ARRAYISLOCKED</b></dt> </dl> </td> <td width="60%"> The
/// argument passed in the parameter contains an array that is locked. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>DISP_E_BADVARTYPE</b></dt> </dl> </td> <td width="60%"> The argument passed in the parameter is not a
/// valid Variant type. </td> </tr> </table>
///
HRESULT put_Value(VARIANT val);
}
///Used to create and access the shared properties in a shared property group.
@GUID("2A005C07-A5DE-11CF-9E66-00AA00A3F464")
interface ISharedPropertyGroup : IDispatch
{
///Creates a new shared property with the specified index. If a shared property with the specified index already
///exists, <b>CreatePropertyByPosition</b> returns a reference to the existing one.
///Params:
/// Index = The numeric index within the SharedPropertyGroup object by which the new property is referenced. You can use
/// this index later to retrieve the shared property with the get_PropertyByPosition method.
/// fExists = A reference to a Boolean value. If <i>fExists</i> is set to VARIANT_TRUE on return from this method, the
/// shared property specified by <i>Index</i> existed prior to this call. If it is set to VARIANT_FALSE, the
/// property was created by this call.
/// ppProp = A reference to a shared property object identified by the numeric index passed in the <i>Index</i> parameter,
/// or <b>NULL</b> if an error is encountered.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT CreatePropertyByPosition(int Index, short* fExists, ISharedProperty* ppProp);
///Retrieves a reference to an existing shared property with the specified index.
///Params:
/// Index = The numeric index that was used to create the shared property that is retrieved.
/// ppProperty = A reference to the shared property specified in the <i>Index</i> parameter, or <b>NULL</b> if the property
/// does not exist.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_FAIL, as well as the
/// following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The shared property exists, and a reference to it is
/// returned in the <i>ppProperty</i> parameter. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>E_INVALIDARG</b></dt> </dl> </td> <td width="60%"> The shared property with the index specified in the
/// <i>Index</i> parameter does not exist. </td> </tr> </table>
///
HRESULT get_PropertyByPosition(int Index, ISharedProperty* ppProperty);
///Creates a new shared property with the specified name. If a shared property by that name already exists,
///<b>CreateProperty</b> returns a reference to the existing property.
///Params:
/// Name = The name of the property to create. You can use this name later to obtain a reference to this property by
/// using the get_Property method.
/// fExists = A reference to a Boolean value that is set to VARIANT_TRUE on return from this method if the shared property
/// specified in the <i>Name</i> parameter existed prior to this call, and VARIANT_FALSE if the property was
/// created by this call.
/// ppProp = A reference to a SharedProperty object with the name specified in the <i>Name</i> parameter, or <b>NULL</b>
/// if an error is encountered.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT CreateProperty(BSTR Name, short* fExists, ISharedProperty* ppProp);
///Retrieves a reference to an existing shared property with the specified name.
///Params:
/// Name = The name that was used to create the shared property that is retrieved.
/// ppProperty = A reference to the shared property specified in the <i>Name</i> parameter, or <b>NULL</b> if the property
/// does not exist.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_FAIL, as well as the
/// following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The shared property exists, and a reference to it is
/// returned in the <i>ppProperty</i> parameter. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>E_INVALIDARG</b></dt> </dl> </td> <td width="60%"> The shared property with the name specified in the
/// <i>Name</i> parameter does not exist. </td> </tr> </table>
///
HRESULT get_Property(BSTR Name, ISharedProperty* ppProperty);
}
///Used to create shared property groups and to obtain access to existing shared property groups.
@GUID("2A005C0D-A5DE-11CF-9E66-00AA00A3F464")
interface ISharedPropertyGroupManager : IDispatch
{
///Creates a new shared property group. If a property group with the specified name already exists,
///<b>CreatePropertyGroup</b> returns a reference to the existing group.
///Params:
/// Name = The name of the shared property group to be created.
/// dwIsoMode = The isolation mode for the properties in the new shared property group. See the table of constants in Remarks
/// below. If the value of the <i>fExists</i> parameter is set to VARIANT_TRUE on return from this method, the
/// input value is ignored and the value returned in this parameter is the isolation mode that was assigned when
/// the property group was created.
/// dwRelMode = The release mode for the properties in the new shared property group. See the table of constants in Remarks
/// below. If the value of the <i>fExists</i> parameter is set to VARIANT_TRUE on return from this method, the
/// input value is ignored and the value returned in this parameter is the release mode that was assigned when
/// the property group was created.
/// fExists = VARIANT_TRUE on return from this method if the shared property group specified in the name parameter existed
/// prior to this call, and VARIANT_FALSE if the property group was created by this call.
/// ppGroup = A reference to ISharedPropertyGroup, which is a shared property group identified by the <i>Name</i>
/// parameter, or <b>NULL</b> if an error is encountered.
///Returns:
/// This method can return the standard return values E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the
/// following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> A reference to the shared property group specified in the
/// <i>Name</i> parameter is returned in the <i>ppGroup</i> parameter. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>CONTEXT_E_NOCONTEXT </b></dt> </dl> </td> <td width="60%"> The caller is not executing under COM+. A
/// caller must be executing under COM+ to use the Shared Property Manager. </td> </tr> <tr> <td width="40%">
/// <dl> <dt><b>E_INVALIDARG </b></dt> </dl> </td> <td width="60%"> At least one of the parameters is not valid,
/// or the same object is attempting to create the same property group more than once. </td> </tr> </table>
///
HRESULT CreatePropertyGroup(BSTR Name, int* dwIsoMode, int* dwRelMode, short* fExists,
ISharedPropertyGroup* ppGroup);
///Retrieves a reference to an existing shared property group.
///Params:
/// Name = The name of the shared property group to be retrieved.
/// ppGroup = A reference to the shared property group specified in the <i>Name</i> parameter, or <b>NULL</b> if the
/// property group does not exist.
///Returns:
/// This method can return the standard return values E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the
/// following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The shared property group exists, and a reference to it is
/// returned in the <i>ppGroup</i> parameter. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_INVALIDARG</b></dt>
/// </dl> </td> <td width="60%"> The shared property group with the name specified in the <i>Name</i> parameter
/// does not exist. </td> </tr> </table>
///
HRESULT get_Group(BSTR Name, ISharedPropertyGroup* ppGroup);
///Retrieves an enumerator for the named security call context properties. This property is restricted in Microsoft
///Visual Basic and cannot be used.
///Params:
/// retval = A reference to the returned IEnumVARIANT interface.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT get__NewEnum(IUnknown* retval);
}
///Controls the object construction process by passing in parameters from other methods or objects.
@GUID("41C4F8B3-7439-11D2-98CB-00C04F8EE1C4")
interface IObjectConstruct : IUnknown
{
///Constructs an object using the specified parameters.
///Params:
/// pCtorObj = A reference to an implementation of the IObjectConstructString interface.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT Construct(IDispatch pCtorObj);
}
///Provides access to a constructor string. Use it when you want to specify the parameters during the construction of
///your object. Object constructor strings should not be used to store security-sensitive information.
@GUID("41C4F8B2-7439-11D2-98CB-00C04F8EE1C4")
interface IObjectConstructString : IDispatch
{
///Retrieves the constructor string for the object. Object constructor strings should not be used to store
///security-sensitive information.
///Params:
/// pVal = A reference to an administratively supplied object constructor string.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT get_ConstructString(BSTR* pVal);
}
///Retrieves the activity identifier associated with the current object context.
@GUID("51372AFC-CAE7-11CF-BE81-00AA00A2FA25")
interface IObjectContextActivity : IUnknown
{
///Retrieves the GUID associated with the current activity.
///Params:
/// pGUID = A reference to the GUID associated with the current activity.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT GetActivityId(GUID* pGUID);
}
///Retrieves transaction, activity, and context information on the current context object. Using the methods of this
///interface, you can retrieve relevant information contained within an object context. This interface has been
///superseded by the IObjectContextInfo2 interface.
@GUID("75B52DDB-E8ED-11D1-93AD-00AA00BA3258")
interface IObjectContextInfo : IUnknown
{
///Indicates whether the current object is executing in a transaction.
///Returns:
/// If the current object is executing within a transaction, the return value is <b>TRUE</b>. Otherwise, it is
/// <b>FALSE</b>.
///
BOOL IsInTransaction();
///Retrieves a reference to the current transaction. You can use this reference to manually enlist a resource
///manager that does not support automatic transactions.
///Params:
/// pptrans = A reference to the IUnknown interface of the transaction that is currently executing. You can then
/// QueryInterface to get the <b>ITransaction</b> interface for the current transaction.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The object is executing in a transaction.
/// </td> </tr> <tr> <td width="40%"> <dl> <dt><b>S_FALSE</b></dt> </dl> </td> <td width="60%"> The object is not
/// executing in a transaction. The <i>pptrans</i> parameter is <b>NULL</b>. </td> </tr> </table>
///
HRESULT GetTransaction(IUnknown* pptrans);
///Retrieves the identifier of the current transaction.
///Params:
/// pGuid = A GUID that identifies the current transaction.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed succesfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>S_FALSE</b></dt> </dl> </td> <td width="60%"> The object is not
/// executing in a transaction. </td> </tr> </table>
///
HRESULT GetTransactionId(GUID* pGuid);
///Retrieves the identifier of the current activity.
///Params:
/// pGUID = A GUID that identifies the current activity.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT GetActivityId(GUID* pGUID);
///Retrieves the identifier of the current context.
///Params:
/// pGuid = A GUID that identifies the current context.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT GetContextId(GUID* pGuid);
}
///Provides additional information about an object's context. This interface extends the IObjectContextInfo interface.
@GUID("594BE71A-4BC4-438B-9197-CFD176248B09")
interface IObjectContextInfo2 : IObjectContextInfo
{
///Retrieves the identifier of the partition of the current object context.
///Params:
/// pGuid = A GUID that identifies the COM+ partition.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>COMADMIN_E_PARTITIONS_DISABLED </b></dt> </dl> </td> <td width="60%">
/// COM+ partitions are not enabled. </td> </tr> </table>
///
HRESULT GetPartitionId(GUID* pGuid);
///Retrieves the identifier of the application of the current object context.
///Params:
/// pGuid = A GUID that identifies the application.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT GetApplicationId(GUID* pGuid);
///Retrieves the identifier of the application instance of the current object context. This information is useful
///when using COM+ Application Recycling, for example.
///Params:
/// pGuid = A GUID that identifies the application instance.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT GetApplicationInstanceId(GUID* pGuid);
}
///Used to discover the status of the transaction that is completed by the call to CoLeaveServiceDomain when
///CServiceConfig is configured to use transactions in the call to CoEnterServiceDomain.
@GUID("61F589E8-3724-4898-A0A4-664AE9E1D1B4")
interface ITransactionStatus : IUnknown
{
///Sets the transaction status to either committed or aborted. Do not use this method. It is used only internally by
///COM+.
///Params:
/// hrStatus = The status of the transaction.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT SetTransactionStatus(HRESULT hrStatus);
///Retrieves the transaction status.
///Params:
/// pHrStatus = he status of the transaction. See Remarks section for more information.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT GetTransactionStatus(HRESULT* pHrStatus);
}
///Retrieves properties describing the Transaction Internet Protocol (TIP) transaction context.
@GUID("92FD41CA-BAD9-11D2-9A2D-00C04F797BC9")
interface IObjectContextTip : IUnknown
{
///Retrieves the URL of the TIP context.
///Params:
/// pTipUrl = The URL of the TIP transaction context, or <b>NULL</b> if the transaction context does not exist.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT GetTipUrl(BSTR* pTipUrl);
}
///Enables participation in the abnormal handling of server-side playback errors and client-side failures of the Message
///Queuing delivery mechanism.
@GUID("51372AFD-CAE7-11CF-BE81-00AA00A2FA25")
interface IPlaybackControl : IUnknown
{
///Informs the client-side exception handling component that all Message Queuing attempts to deliver the message to
///the server were rejected. The message ended up on the client-side Xact dead letter queue.
///Returns:
/// If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it
/// returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.
///
HRESULT FinalClientRetry();
///Informs the server-side Exception_CLSID implementation that all attempts to play back the deferred activation
///have failed. The message is about to be moved to the final resting queue.
///Returns:
/// If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it
/// returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.
///
HRESULT FinalServerRetry();
}
///Enables the caller to obtain the properties associated with the current object's context.
@GUID("51372AF4-CAE7-11CF-BE81-00AA00A2FA25")
interface IGetContextProperties : IUnknown
{
///Counts the number of context properties.
///Params:
/// plCount = The number of current context properties.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT Count(int* plCount);
///Retrieves the value of the specified context property.
///Params:
/// name = The name of a current context property.
/// pProperty = The value(s) of the property.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT GetProperty(BSTR name, VARIANT* pProperty);
///Retrieves a list of the names of the current context properties.
///Params:
/// ppenum = An IEnumNames interface providing access to a list of the names of the current context properties.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT EnumNames(IEnumNames* ppenum);
}
///Controls object deactivation and transaction voting by manipulating context state flags. By calling the methods of
///this interface, you can set consistent and done flags independently of each other and get the current status of each
///flag. Also, the methods of this interface return errors that indicate the absence of just-in-time (JIT) activation or
///the absence of a transaction.
@GUID("3C05E54B-A42A-11D2-AFC4-00C04F8EE1C4")
interface IContextState : IUnknown
{
///Sets the done flag, which controls whether the object deactivates on method return.
///Params:
/// bDeactivate = The done flag.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>CONTEXT_E_NOJIT</b></dt> </dl> </td> <td width="60%"> Just-in-Time
/// Activation is not available to this context. </td> </tr> </table>
///
HRESULT SetDeactivateOnReturn(short bDeactivate);
///Retrieves the value of the done flag.
///Params:
/// pbDeactivate = The done flag.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>CONTEXT_E_NOJIT</b></dt> </dl> </td> <td width="60%"> Just-in-Time
/// Activation is not available to this context. </td> </tr> </table>
///
HRESULT GetDeactivateOnReturn(short* pbDeactivate);
///Sets the consistent flag.
///Params:
/// txVote = The consistent flag. For a list of values, see the TransactionVote enumeration. Set this parameter to
/// TxCommit if the consistent flag is true;set it to TxAbort if the consistent flag is false.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>CONTEXT_E_NOJIT</b></dt> </dl> </td> <td width="60%"> Just-in-Time
/// Activation is not available to this context. </td> </tr> </table>
///
HRESULT SetMyTransactionVote(TransactionVote txVote);
///Retrieves the value of the consistent flag. Retrieving this value before deactivating the object allows the
///object to confirm its vote.
///Params:
/// ptxVote = The consistent flag. For a list of values, see the TransactionVote enumeration. This parameter is set to
/// TxCommit if the consistent flag is true; it is set to TxAbort if the consistent flag is false.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>CONTEXT_E_NOTRANSACTION</b></dt> </dl> </td> <td width="60%"> The
/// object is not running in a transaction. </td> </tr> </table>
///
HRESULT GetMyTransactionVote(TransactionVote* ptxVote);
}
///Enables the caller to control an object pool.
@GUID("0A469861-5A91-43A0-99B6-D5E179BB0631")
interface IPoolManager : IDispatch
{
///Shuts down the object pool.
///Params:
/// CLSIDOrProgID = A string containing the CLSID or ProgID of the pool to be shut down.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT ShutdownPool(BSTR CLSIDOrProgID);
}
///Activates the COM+ component load balancing service.
@GUID("DCF443F4-3F8A-4872-B9F0-369A796D12D6")
interface ISelectCOMLBServer : IUnknown
{
///Initializes the load balancing server object.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT Init();
///Retrieves the name of the load balancing server.
///Params:
/// pUnk = A pointer to the load balancing server's name.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT GetLBServer(IUnknown pUnk);
}
///Used to activate the COM+ component load balancing service.
@GUID("3A0F150F-8EE5-4B94-B40E-AEF2F9E42ED2")
interface ICOMLBArguments : IUnknown
{
///Retrieves the object's CLSID.
///Params:
/// pCLSID = A pointer to the object's CLSID.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT GetCLSID(GUID* pCLSID);
///Sets the object's CLSID.
///Params:
/// pCLSID = The object's CLSID.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT SetCLSID(GUID* pCLSID);
///Retrieves the computer name for the load balancing server.
///Params:
/// cchSvr = The object's machine name.
/// szServerName = The object's server name.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT GetMachineName(uint cchSvr, ushort* szServerName);
///Sets the computer name for the load balancing server.
///Params:
/// cchSvr = The object's machine name.
/// szServerName = The object's server name.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT SetMachineName(uint cchSvr, ushort* szServerName);
}
///Is the means by which the CRM Worker and CRM Compensator write records to the log and make them durable.
@GUID("A0E174B3-D26E-11D2-8F84-00805FC7BCD9")
interface ICrmLogControl : IUnknown
{
///Retrieves the transaction unit of work (UOW) without having to log the transaction UOW in the log record.
///Params:
/// pVal = The UOW of the transaction.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_POINTER</b></dt> </dl> </td> <td width="60%"> A
/// <b>NULL</b> pointer was provided as an argument. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>XACT_E_WRONGSTATE</b></dt> </dl> </td> <td width="60%"> This method was called in the wrong state;
/// either before RegisterCompensator or when the transaction is completing (CRM Worker). </td> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>E_OUTOFMEMORY</b></dt> </dl> </td> <td width="60%"> An out of memory error has
/// occurred. </td> </tr> </table>
///
HRESULT get_TransactionUOW(BSTR* pVal);
///The CRM Worker uses this method to register the CRM Compensator with the CRM infrastructure. It must be the first
///method called by the CRM Worker, and it can be called successfully only once. If the CRM Worker receives a
///"recovery in progress" error code on calling this method, it should call this method again until it receives
///success.
///Params:
/// lpcwstrProgIdCompensator = The ProgId of the CRM Compensator. The CLSID of the CRM Compensator in string form is also accepted.
/// lpcwstrDescription = The description string to be used by the monitoring interfaces.
/// lCrmRegFlags = Flags from the CRMREGFLAGS enumeration that control which phases of transaction completion should be received
/// by the CRM Compensator and whether recovery should fail if in-doubt transactions remain after recovery has
/// been attempted.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_POINTER</b></dt> </dl> </td> <td width="60%"> A
/// <b>NULL</b> pointer was provided as an argument. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>E_UNEXPECTED</b></dt> </dl> </td> <td width="60%"> An unexpected error has occurred. </td> </tr> <tr>
/// <td width="40%"> <dl> <dt><b>XACT_E_NOTRANSACTION</b></dt> </dl> </td> <td width="60%"> The component
/// creating the CRM clerk does not have a transaction. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>XACT_E_RECOVERYINPROGRESS</b></dt> </dl> </td> <td width="60%"> Recovery of the CRM log file is still
/// in progress. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>XACT_E_RECOVERY_FAILED</b></dt> </dl> </td> <td
/// width="60%"> Recovery of the CRM log file failed because in-doubt transactions remain. </td> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>XACT_E_WRONGSTATE</b></dt> </dl> </td> <td width="60%"> This method was called in
/// the wrong state; either before RegisterCompensator or when the transaction is completing (CRM Worker). </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>E_OUTOFMEMORY</b></dt> </dl> </td> <td width="60%"> An out of memory
/// error has occurred. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_NOINTERFACE</b></dt> </dl> </td> <td
/// width="60%"> The CRM Compensator does not support at least one of the required interfaces (ICrmCompensator or
/// ICrmCompensatorVariants). </td> </tr> </table>
///
HRESULT RegisterCompensator(const(PWSTR) lpcwstrProgIdCompensator, const(PWSTR) lpcwstrDescription,
int lCrmRegFlags);
///The CRM Worker and CRM Compensator use this method to write structured log records to the log.
///Params:
/// pLogRecord = A pointer to a <b>Variant</b> array of <b>Variants</b>. This must be a single-dimension array whose lower
/// bound is zero.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_INVALIDARG</b></dt> </dl> </td> <td
/// width="60%"> One of the arguments is incorrect. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>E_POINTER</b></dt> </dl> </td> <td width="60%"> A <b>NULL</b> pointer was provided as an argument.
/// </td> </tr> <tr> <td width="40%"> <dl> <dt><b>XACT_E_WRONGSTATE</b></dt> </dl> </td> <td width="60%"> This
/// method was called in the wrong state; either before RegisterCompensator or when the transaction is completing
/// (CRM Worker). </td> </tr> <tr> <td width="40%"> <dl> <dt><b>XACT_E_ABORTED</b></dt> </dl> </td> <td
/// width="60%"> The transaction has aborted, most likely because of a transaction time-out. </td> </tr> </table>
///
HRESULT WriteLogRecordVariants(VARIANT* pLogRecord);
///Forces all log records to be durable on disk.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>XACT_E_WRONGSTATE</b></dt> </dl> </td> <td
/// width="60%"> This method was called in the wrong state; either before RegisterCompensator or when the
/// transaction is completing (CRM Worker). </td> </tr> <tr> <td width="40%"> <dl> <dt><b>XACT_E_ABORTED</b></dt>
/// </dl> </td> <td width="60%"> The transaction has aborted, most likely because of a transaction time-out.
/// </td> </tr> </table>
///
HRESULT ForceLog();
///Forgets the last log record written by this instance of the interface.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_FAIL</b></dt> </dl> </td> <td width="60%">
/// There is no valid log record to forget. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>XACT_E_WRONGSTATE</b></dt> </dl> </td> <td width="60%"> This method was called in the wrong state;
/// either before RegisterCompensator or when the transaction is completing (CRM Worker). </td> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>XACT_E_ABORTED</b></dt> </dl> </td> <td width="60%"> The transaction has aborted,
/// most likely because of a transaction time-out. </td> </tr> </table>
///
HRESULT ForgetLogRecord();
///Performs an immediate abort call on the transaction.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>XACT_E_WRONGSTATE</b></dt> </dl> </td> <td
/// width="60%"> This method was called in the wrong state; either before RegisterCompensator or when the
/// transaction is completing (CRM Worker). </td> </tr> <tr> <td width="40%"> <dl> <dt><b>XACT_E_ABORTED</b></dt>
/// </dl> </td> <td width="60%"> The transaction has aborted, most likely because of a transaction time-out.
/// </td> </tr> </table>
///
HRESULT ForceTransactionToAbort();
///The CRM Worker and CRM Compensator use this method to write unstructured log records to the log. This method
///would typically be used by CRM components written in C++. Records are written lazily to the log and must be
///forced before they become durable. (See ICrmLogControl::ForceLog.)
///Params:
/// rgBlob = An array of BLOBs that form the log record. A BLOB is a Windows data type that is used to store an arbitrary
/// amount of binary data.
/// cBlob = The number of BLOBs in the array.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_INVALIDARG</b></dt> </dl> </td> <td
/// width="60%"> The count of the number of BLOBs is zero. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>E_POINTER</b></dt> </dl> </td> <td width="60%"> A <b>NULL</b> pointer was provided as an argument.
/// </td> </tr> <tr> <td width="40%"> <dl> <dt><b>XACT_E_WRONGSTATE</b></dt> </dl> </td> <td width="60%"> This
/// method was called in the wrong state; either before RegisterCompensator or when the transaction is completing
/// (CRM Worker). </td> </tr> <tr> <td width="40%"> <dl> <dt><b>XACT_E_ABORTED</b></dt> </dl> </td> <td
/// width="60%"> The transaction has aborted, most likely because of a transaction time-out. </td> </tr> </table>
///
HRESULT WriteLogRecord(BLOB* rgBlob, uint cBlob);
}
///Delivers structured log records to the CRM Compensator when using Microsoft Visual Basic.
@GUID("F0BAF8E4-7804-11D1-82E9-00A0C91EEDE9")
interface ICrmCompensatorVariants : IUnknown
{
///Delivers an ICrmLogControl interface to the CRM Compensator. This method is the first method called on the CRM
///Compensator after it has been created.
///Params:
/// pLogControl = A pointer to the ICrmLogControl interface of the CRM clerk.
///Returns:
/// If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it
/// returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.
///
HRESULT SetLogControlVariants(ICrmLogControl pLogControl);
///Notifies the CRM Compensator of the prepare phase of the transaction completion and that records are about to be
///delivered. Prepare notifications are never received during recovery, only during normal processing.
///Returns:
/// If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it
/// returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.
///
HRESULT BeginPrepareVariants();
///Delivers a log record to the CRM Compensator during the prepare phase. Log records are delivered in the order in
///which they were written.
///Params:
/// pLogRecord = The log record (as a <b>Variant</b> array of <b>Variants</b>).
/// pbForget = Indicates whether the delivered record should be forgotten.
///Returns:
/// If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it
/// returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.
///
HRESULT PrepareRecordVariants(VARIANT* pLogRecord, short* pbForget);
///Notifies the CRM Compensator that it has had all the log records available during the prepare phase.
///Params:
/// pbOkToPrepare = Indicates whether the prepare phase succeeded, in which case it is OK to commit this transaction.
///Returns:
/// If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it
/// returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.
///
HRESULT EndPrepareVariants(short* pbOkToPrepare);
///Notifies the CRM Compensator of the commit phase (phase two) of the transaction completion and that records are
///about to be delivered.
///Params:
/// bRecovery = Indicates whether this method is being called during recovery.
///Returns:
/// If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it
/// returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.
///
HRESULT BeginCommitVariants(short bRecovery);
///Delivers a log record to the CRM Compensator during the commit phase. Log records are delivered in the order in
///which they were written.
///Params:
/// pLogRecord = The log record (as a Variant array of Variants).
/// pbForget = Indicates whether the delivered record should be forgotten.
///Returns:
/// If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it
/// returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.
///
HRESULT CommitRecordVariants(VARIANT* pLogRecord, short* pbForget);
///Notifies the CRM Compensator that it has delivered all the log records available during the commit phase. All log
///records for this transaction can be discarded from the log after this method has completed.
///Returns:
/// If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it
/// returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.
///
HRESULT EndCommitVariants();
///Notifies the CRM Compensator of the abort phase of the transaction completion and that records are about to be
///delivered. The abort phase can be received during normal processing without a prepare phase if the client decides
///to initiate abort.
///Params:
/// bRecovery = Indicates whether this method is being called during recovery.
///Returns:
/// If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it
/// returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.
///
HRESULT BeginAbortVariants(short bRecovery);
///Delivers a log record to the CRM Compensator during the abort phase.
///Params:
/// pLogRecord = The log record (as a <b>Variant</b> array of <b>Variants</b>).
/// pbForget = Indicates whether the delivered record should be forgotten.
///Returns:
/// If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it
/// returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.
///
HRESULT AbortRecordVariants(VARIANT* pLogRecord, short* pbForget);
///Notifies the CRM Compensator that it has received all the log records available during the abort phase. All log
///records for this transaction can be discarded from the log after this method has completed.
///Returns:
/// If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it
/// returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.
///
HRESULT EndAbortVariants();
}
///Delivers unstructured log records to the CRM Compensator when using Microsoft Visual C++.
@GUID("BBC01830-8D3B-11D1-82EC-00A0C91EEDE9")
interface ICrmCompensator : IUnknown
{
///Delivers an ICrmLogControl interface to the CRM Compensator so that it can write further log records during
///transaction completion. This method is the first method called on the CRM Compensator after it has been created.
///Params:
/// pLogControl = A pointer to the ICrmLogControl interface of the CRM clerk.
///Returns:
/// If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it
/// returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.
///
HRESULT SetLogControl(ICrmLogControl pLogControl);
///Notifies the CRM Compensator of the prepare phase of the transaction completion and that records are about to be
///delivered. Prepare notifications are never received during recovery, only during normal processing.
///Returns:
/// If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it
/// returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.
///
HRESULT BeginPrepare();
///Delivers a log record in forward order during the prepare phase. This method can be received by the CRM
///Compensator multiple times, once for each log record that is written.
///Params:
/// crmLogRec = The log record, as a CrmLogRecordRead structure.
/// pfForget = Indicates whether the delivered record should be forgotten.
///Returns:
/// If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it
/// returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.
///
HRESULT PrepareRecord(CrmLogRecordRead crmLogRec, BOOL* pfForget);
///Notifies the CRM Compensator that it has had all the log records available during the prepare phase. The CRM
///Compensator votes on the transaction outcome by using the return parameter of this method.
///Params:
/// pfOkToPrepare = Indicates whether the prepare phase succeeded, in which case it is OK to commit this transaction.
///Returns:
/// If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it
/// returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.
///
HRESULT EndPrepare(BOOL* pfOkToPrepare);
///Notifies the CRM Compensator of the commit phase of the transaction completion and that records are about to be
///delivered.
///Params:
/// fRecovery = Indicates whether this method is being called during recovery (TRUE) or normal processing (FALSE).
///Returns:
/// If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it
/// returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.
///
HRESULT BeginCommit(BOOL fRecovery);
///Delivers a log record in forward order during the commit phase.
///Params:
/// crmLogRec = The log record, as a CrmLogRecordRead structure.
/// pfForget = Indicates whether the delivered record should be forgotten.
///Returns:
/// If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it
/// returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.
///
HRESULT CommitRecord(CrmLogRecordRead crmLogRec, BOOL* pfForget);
///Notifies the CRM Compensator that it has delivered all the log records available during the commit phase. All log
///records for this transaction can be discarded from the log after this method has completed.
///Returns:
/// If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it
/// returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.
///
HRESULT EndCommit();
///Notifies the CRM Compensator of the abort phase of the transaction completion and that records are about to be
///delivered.
///Params:
/// fRecovery = Indicates whether this method is being called during recovery.
///Returns:
/// If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it
/// returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.
///
HRESULT BeginAbort(BOOL fRecovery);
///Delivers a log record to the CRM Compensator during the abort phase.
///Params:
/// crmLogRec = The log record, as a CrmLogRecordRead structure.
/// pfForget = Indicates whether the delivered record should be forgotten.
///Returns:
/// If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it
/// returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.
///
HRESULT AbortRecord(CrmLogRecordRead crmLogRec, BOOL* pfForget);
///Notifies the CRM Compensator that it has received all the log records available during the abort phase. All log
///records for this transaction can be discarded from the log after this method has completed.
///Returns:
/// If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it
/// returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.
///
HRESULT EndAbort();
}
///Monitors the individual log records maintained by a specific CRM clerk for a given transaction.
@GUID("70C8E441-C7ED-11D1-82FB-00A0C91EEDE9")
interface ICrmMonitorLogRecords : IUnknown
{
///Retrieves the number of log records written by this CRM clerk.
///Params:
/// pVal = The number of log records written by this CRM clerk.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_POINTER</b></dt> </dl> </td> <td width="60%"> A
/// <b>NULL</b> pointer was provided as an argument. </td> </tr> </table>
///
HRESULT get_Count(int* pVal);
///Retrieves the current state of the transaction.
///Params:
/// pVal = The current transaction state, represented by an CrmTransactionState enumeration value.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_POINTER</b></dt> </dl> </td> <td width="60%"> A
/// <b>NULL</b> pointer was provided as an argument. </td> </tr> </table>
///
HRESULT get_TransactionState(CrmTransactionState* pVal);
///Retrieves a flag indicating whether the log records written by this CRM clerk were structured.
///Params:
/// pVal = Indicates whether the log records are structured. If this method is called before any log records have been
/// written, this parameter is <b>TRUE</b>.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_POINTER</b></dt> </dl> </td> <td width="60%"> A
/// <b>NULL</b> pointer was provided as an argument. </td> </tr> </table>
///
HRESULT get_StructuredRecords(short* pVal);
///Retrieves an unstructured log record given its numeric index.
///Params:
/// dwIndex = The index of the required log record.
/// pCrmLogRec = The log record, as a CrmLogRecordRead structure.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_POINTER</b></dt> </dl> </td> <td width="60%"> A
/// <b>NULL</b> pointer was provided as an argument. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>E_INVALIDARG</b></dt> </dl> </td> <td width="60%"> The index is out of range. </td> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>XACT_E_WRONGSTATE</b></dt> </dl> </td> <td width="60%"> Attempting to read
/// unstructured records but written records are structured. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>XACT_E_TRANSACTIONCLOSED</b></dt> </dl> </td> <td width="60%"> The transaction has completed, and the
/// log records have been discarded from the log file. They are no longer available. </td> </tr> </table>
///
HRESULT GetLogRecord(uint dwIndex, CrmLogRecordRead* pCrmLogRec);
///Retrieves a structured log record given its numeric index.
///Params:
/// IndexNumber = The index of the required log record.
/// pLogRecord = The log record. See ICrmCompensatorVariants::PrepareRecordVariants for the format.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_POINTER</b></dt> </dl> </td> <td width="60%"> A
/// <b>NULL</b> pointer was provided as an argument. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>E_INVALIDARG</b></dt> </dl> </td> <td width="60%"> The index is out of range. </td> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>XACT_E_WRONGSTATE</b></dt> </dl> </td> <td width="60%"> Attempting to read
/// unstructured records but written records are structured. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>XACT_E_TRANSACTIONCLOSED</b></dt> </dl> </td> <td width="60%"> The transaction has completed, and the
/// log records have been discarded from the log file. They are no longer available. </td> </tr> </table>
///
HRESULT GetLogRecordVariants(VARIANT IndexNumber, VARIANT* pLogRecord);
}
///Retrieves information about the state of clerks.
@GUID("70C8E442-C7ED-11D1-82FB-00A0C91EEDE9")
interface ICrmMonitorClerks : IDispatch
{
///Retrieves the instance CLSID of the CRM clerk for the specified index.
///Params:
/// Index = The index of the required CRM clerk as a numeric <b>Variant</b>.
/// pItem = A pointer to <b>Variant</b> string returning the instance CLSID corresponding to this numeric index.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_POINTER</b></dt> </dl> </td> <td width="60%"> A
/// <b>NULL</b> pointer was provided as an argument. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>E_INVALIDARG</b></dt> </dl> </td> <td width="60%"> One of the arguments is incorrect. </td> </tr>
/// </table>
///
HRESULT Item(VARIANT Index, VARIANT* pItem);
///Retrieves an enumerator for the instance CLSIDs of the CRM clerks.
///Params:
/// pVal = A reference to the returned IEnumVARIANT interface.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT get__NewEnum(IUnknown* pVal);
///Retrieves the count of CRM clerks in the collection.
///Params:
/// pVal = The number of CRM clerks.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_POINTER</b></dt> </dl> </td> <td width="60%"> A
/// <b>NULL</b> pointer was provided as an argument. </td> </tr> </table>
///
HRESULT get_Count(int* pVal);
///Retrieves the ProgId of the CRM Compensator for the specified index.
///Params:
/// Index = The index of the required CRM clerk as a numeric <b>Variant</b>, or the instance CLSID as a <b>Variant</b>
/// string.
/// pItem = The ProgId of the CRM Compensator.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_POINTER</b></dt> </dl> </td> <td width="60%"> A
/// <b>NULL</b> pointer was provided as an argument. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>E_INVALIDARG</b></dt> </dl> </td> <td width="60%"> One of the arguments is incorrect. </td> </tr>
/// </table>
///
HRESULT ProgIdCompensator(VARIANT Index, VARIANT* pItem);
///Retrieves the description of the CRM Compensator for the specified index.
///Params:
/// Index = The index of the required CRM clerk as a numeric <b>Variant</b>, or the instance CLSID as a <b>Variant</b>
/// string.
/// pItem = The description string originally provided by ICrmLogControl::RegisterCompensator.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_POINTER</b></dt> </dl> </td> <td width="60%"> A
/// <b>NULL</b> pointer was provided as an argument. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>E_INVALIDARG</b></dt> </dl> </td> <td width="60%"> One of the arguments is incorrect. </td> </tr>
/// </table>
///
HRESULT Description(VARIANT Index, VARIANT* pItem);
///Retrieves the unit of work (UOW) of the transaction for the specified index.
///Params:
/// Index = The index of the required CRM clerk as a numeric <b>Variant</b>, or the instance CLSID as a <b>Variant</b>
/// string.
/// pItem = The transaction UOW.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_POINTER</b></dt> </dl> </td> <td width="60%"> A
/// <b>NULL</b> pointer was provided as an argument. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>E_INVALIDARG</b></dt> </dl> </td> <td width="60%"> One of the arguments is incorrect. </td> </tr>
/// </table>
///
HRESULT TransactionUOW(VARIANT Index, VARIANT* pItem);
///Retrieves the activity ID of the CRM Worker for the specified index.
///Params:
/// Index = The index of the required CRM clerk as a numeric <b>Variant</b>, or the instance CLSID as a <b>Variant</b>
/// string.
/// pItem = The activity ID of the CRM Worker.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_POINTER</b></dt> </dl> </td> <td width="60%"> A
/// <b>NULL</b> pointer was provided as an argument. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>E_INVALIDARG</b></dt> </dl> </td> <td width="60%"> One of the arguments is incorrect. </td> </tr>
/// </table>
///
HRESULT ActivityId(VARIANT Index, VARIANT* pItem);
}
///Captures a snapshot of the current state of the CRM and holds a specific CRM clerk.
@GUID("70C8E443-C7ED-11D1-82FB-00A0C91EEDE9")
interface ICrmMonitor : IUnknown
{
///Retrieves a clerk collection object, which is a snapshot of the current state of the clerks.
///Params:
/// pClerks = An ICrmMonitorClerks pointer to a clerks collection object.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_POINTER</b></dt> </dl> </td> <td width="60%"> A
/// <b>NULL</b> pointer was provided as an argument. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>XACT_E_RECOVERYINPROGRESS</b></dt> </dl> </td> <td width="60%"> Recovery of the CRM log file is still
/// in progress. </td> </tr> </table>
///
HRESULT GetClerks(ICrmMonitorClerks* pClerks);
///Retrieves a pointer on the specified clerk.
///Params:
/// Index = A <b>VARIANT</b> string containing the instance CLSID of the required CRM clerk.
/// pItem = A <b>VARIANT</b> IUnknown pointer returning the interface to the specified CRM clerk.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_INVALIDARG</b></dt> </dl> </td> <td
/// width="60%"> One of the arguments is incorrect. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>XACT_E_CLERKNOTFOUND</b></dt> </dl> </td> <td width="60%"> The specified CRM clerk was not found. It
/// may have completed before it could be held. </td> </tr> </table>
///
HRESULT HoldClerk(VARIANT Index, VARIANT* pItem);
}
///Converts the log records to viewable format so that they can be presented using a generic monitoring tool.
@GUID("9C51D821-C98B-11D1-82FB-00A0C91EEDE9")
interface ICrmFormatLogRecords : IUnknown
{
///Retrieves the number of fields (columns) in a log record of the type used by this CRM Compensator.
///Params:
/// plColumnCount = The number of fields (columns) in the log record.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_POINTER</b></dt> </dl> </td> <td width="60%"> A
/// <b>NULL</b> pointer was provided as an argument. </td> </tr> </table>
///
HRESULT GetColumnCount(int* plColumnCount);
///Retrieves the names of the fields (columns) so that they can be used as column headings when the information is
///presented.
///Params:
/// pHeaders = A <b>Variant</b> array containing the field names as <b>Variant</b> strings.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_POINTER</b></dt> </dl> </td> <td width="60%"> A
/// <b>NULL</b> pointer was provided as an argument. </td> </tr> </table>
///
HRESULT GetColumnHeaders(VARIANT* pHeaders);
///Formats one unstructured log record into an array of viewable fields.
///Params:
/// CrmLogRec = The unstructured log record to be formatted, as a CrmLogRecordRead structure.
/// pFormattedLogRecord = The formatted log record, as a <b>Variant</b> array of the fields in this log record as <b>Variant</b>
/// strings.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_POINTER</b></dt> </dl> </td> <td width="60%"> A
/// <b>NULL</b> pointer was provided as an argument. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>E_FAIL</b></dt> </dl> </td> <td width="60%"> The log record could not be formatted. </td> </tr>
/// </table>
///
HRESULT GetColumn(CrmLogRecordRead CrmLogRec, VARIANT* pFormattedLogRecord);
///Formats one structured log record into an array of viewable fields.
///Params:
/// LogRecord = The structured log record to be formatted.
/// pFormattedLogRecord = A <b>Variant</b> array of the fields in this log record as <b>Variant</b> strings.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_POINTER</b></dt> </dl> </td> <td width="60%"> A
/// <b>NULL</b> pointer was provided as an argument. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>E_FAIL</b></dt> </dl> </td> <td width="60%"> The log record could not be formatted. </td> </tr>
/// </table>
///
HRESULT GetColumnVariants(VARIANT LogRecord, VARIANT* pFormattedLogRecord);
}
///Configures the IIS intrinsics for the work that is done when calling the CoCreateActivity or CoEnterServiceDomain
///function.
@GUID("1A0CF920-D452-46F4-BC36-48118D54EA52")
interface IServiceIISIntrinsicsConfig : IUnknown
{
///Configures the IIS intrinsics for the enclosed work.
///Params:
/// iisIntrinsicsConfig = A value from the CSC_IISIntrinsicsConfig enumeration.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT IISIntrinsicsConfig(CSC_IISIntrinsicsConfig iisIntrinsicsConfig);
}
///Configures the COM Transaction Integrator (COMTI) intrinsics for the work that is done when calling the
///CoCreateActivity or CoEnterServiceDomain function. The COMTI eases the task of wrapping mainframe transactions and
///business logic as COM components.
@GUID("09E6831E-04E1-4ED4-9D0F-E8B168BAFEAF")
interface IServiceComTIIntrinsicsConfig : IUnknown
{
///Configures the COMTI intrinsics for the enclosed work.
///Params:
/// comtiIntrinsicsConfig = A value from the CSC_COMTIIntrinsicsConfig enumeration.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT ComTIIntrinsicsConfig(CSC_COMTIIntrinsicsConfig comtiIntrinsicsConfig);
}
///Configures side-by-side assemblies for the work that is done when calling either CoCreateActivity or
///CoEnterServiceDomain.
@GUID("C7CD7379-F3F2-4634-811B-703281D73E08")
interface IServiceSxsConfig : IUnknown
{
///Configures the side-by-side assembly for the enclosed work.
///Params:
/// scsConfig = A value from the CSC_SxsConfig enumeration.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT SxsConfig(CSC_SxsConfig scsConfig);
///Sets the file name of the side-by-side assembly for the enclosed work.
///Params:
/// szSxsName = The file name for the side-by-side assembly.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT SxsName(const(PWSTR) szSxsName);
///Sets the directory for the side-by-side assembly for the enclosed work.
///Params:
/// szSxsDirectory = The name of the directory for the side-by-side assembly that is to be used for the enclosed work.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT SxsDirectory(const(PWSTR) szSxsDirectory);
}
///Used to check the configuration of the current side-by-side assembly.
@GUID("0FF5A96F-11FC-47D1-BAA6-25DD347E7242")
interface ICheckSxsConfig : IUnknown
{
///Determines whether the side-by-side assembly has the specified configuration.
///Params:
/// wszSxsName = A text string that contains the file name of the side-by-side assembly. The proper extension is added
/// automatically.
/// wszSxsDirectory = A text string that contains the directory of the side-by-side assembly.
/// wszSxsAppName = A text string that contains the name of the application domain.
///Returns:
/// This method can return the standard return values E_INVALIDARG and E_OUTOFMEMORY, as well as the following
/// values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The current side-by-side assembly has the specified
/// configuration. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>E_FAIL</b></dt> </dl> </td> <td width="60%"> The
/// current side-by-side assembly does not have the specified configuration. </td> </tr> </table>
///
HRESULT IsSameSxsConfig(const(PWSTR) wszSxsName, const(PWSTR) wszSxsDirectory, const(PWSTR) wszSxsAppName);
}
///Determines whether to construct a new context based on the current context or to create a new context based solely on
///the information in CServiceConfig. A new context that is based on the current context can be modified by calls to the
///other interfaces of CServiceConfig.
@GUID("92186771-D3B4-4D77-A8EA-EE842D586F35")
interface IServiceInheritanceConfig : IUnknown
{
///Determines whether the containing context is based on the current context.
///Params:
/// inheritanceConfig = A value from the CSC_InheritanceConfig enumeration.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT ContainingContextTreatment(CSC_InheritanceConfig inheritanceConfig);
}
///Configures the thread pool of the activity object that is returned by calling CoCreateActivity.
@GUID("186D89BC-F277-4BCC-80D5-4DF7B836EF4A")
interface IServiceThreadPoolConfig : IUnknown
{
///Selects the thread pool in which the work submitted through the activity is to run.
///Params:
/// threadPool = A value from the CSC_ThreadPool enumeration.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT SelectThreadPool(CSC_ThreadPool threadPool);
///Binds all work submitted by the activity to a single single-threaded apartment.
///Params:
/// binding = A value from the CSC_Binding enumeration.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT SetBindingInfo(CSC_Binding binding);
}
///Configures the transaction services for the work that is done when calling either CoCreateActivity or
///CoEnterServiceDomain.
@GUID("772B3FBE-6FFD-42FB-B5F8-8F9B260F3810")
interface IServiceTransactionConfigBase : IUnknown
{
///Configures how transactions are used in the enclosed work.
///Params:
/// transactionConfig = A value from the CSC_TransactionConfig enumeration.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT ConfigureTransaction(CSC_TransactionConfig transactionConfig);
///Sets the isolation level of the transactions.
///Params:
/// option = A value from the COMAdminTxIsolationLevelOptions enumeration.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT IsolationLevel(COMAdminTxIsolationLevelOptions option);
///Sets the transaction time-out for a new transaction.
///Params:
/// ulTimeoutSec = The transaction time-out, in seconds.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT TransactionTimeout(uint ulTimeoutSec);
///Enables you to run the enclosed code in an existing transaction that you provide.
///Params:
/// szTipURL = The Transaction Internet Protocol (TIP) URL of the existing transaction in which you want to run the enclosed
/// code.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT BringYourOwnTransaction(const(PWSTR) szTipURL);
///Sets the name that is used when transaction statistics are displayed.
///Params:
/// szTxDesc = The description of the transaction.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT NewTransactionDescription(const(PWSTR) szTxDesc);
}
///Configures the transaction services for the work that is done when calling either CoCreateActivity or
///CoEnterServiceDomain.
@GUID("59F4C2A3-D3D7-4A31-B6E4-6AB3177C50B9")
interface IServiceTransactionConfig : IServiceTransactionConfigBase
{
///Enables you to configure the transaction that you use when you bring your own transaction.
///Params:
/// pITxByot = A pointer to the <b>ITransaction</b> interface of the existing transaction in which you want to run the
/// enclosed code.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT ConfigureBYOT(ITransaction pITxByot);
}
///Enables you to run a set of code in the scope of an existing transaction that you specify with a transaction proxy.
@GUID("33CAF1A1-FCB8-472B-B45E-967448DED6D8")
interface IServiceSysTxnConfig : IServiceTransactionConfig
{
///Enables you to run the enclosed code in the scope of an existing transaction that you specify with a transaction
///proxy.
///Params:
/// pTxProxy = The ITransactionProxy interface of the existing transaction in which you will run the enclosed code.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT ConfigureBYOTSysTxn(ITransactionProxy pTxProxy);
}
///Configures the synchronization for the work that is done when calling either CoCreateActivity or
///CoEnterServiceDomain.
@GUID("FD880E81-6DCE-4C58-AF83-A208846C0030")
interface IServiceSynchronizationConfig : IUnknown
{
///Configures the synchronization for the enclosed work.
///Params:
/// synchConfig = A value from the CSC_SynchronizationConfig enumeration.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT ConfigureSynchronization(CSC_SynchronizationConfig synchConfig);
}
///Configures the tracker property for the work that is done when calling either CoCreateActivity or
///CoEnterServiceDomain.
@GUID("6C3A3E1D-0BA6-4036-B76F-D0404DB816C9")
interface IServiceTrackerConfig : IUnknown
{
///Configures the tracker property for the enclosed work.
///Params:
/// trackerConfig = A value from the CSC_TrackerConfig enumeration.
/// szTrackerAppName = The application identifier under which tracker information is reported.
/// szTrackerCtxName = The context name under which tracker information is reported.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT TrackerConfig(CSC_TrackerConfig trackerConfig, const(PWSTR) szTrackerAppName,
const(PWSTR) szTrackerCtxName);
}
///Configures how partitions are used for the work that is done when calling either CoCreateActivity or
///CoEnterServiceDomain.
@GUID("80182D03-5EA4-4831-AE97-55BEFFC2E590")
interface IServicePartitionConfig : IUnknown
{
///Configures how partitions are used for the enclosed work.
///Params:
/// partitionConfig = A value from the CSC_PartitionConfig enumeration.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT PartitionConfig(CSC_PartitionConfig partitionConfig);
///Sets the GUID for the partition that is used for the enclosed work.
///Params:
/// guidPartitionID = A GUID that is used to specify the partition that is to be used to run the enclosed work.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT PartitionID(const(GUID)* guidPartitionID);
}
///Used to implement the batch work that is submitted through the activity created by CoCreateActivity.
@GUID("BD3E2E12-42DD-40F4-A09A-95A50C58304B")
interface IServiceCall : IUnknown
{
///Triggers the execution of the batch work implemented in this method.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT OnCall();
}
///Used to implement error trapping on the asynchronous batch work that is submitted through the activity created by
///CoCreateActivity.
@GUID("FE6777FB-A674-4177-8F32-6D707E113484")
interface IAsyncErrorNotify : IUnknown
{
///Called by COM+ when an error occurs in your asynchronous batch work.
///Params:
/// hr = The <b>HRESULT</b> value of the error that occurred while your batch work was running asynchronously.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT OnError(HRESULT hr);
}
///Used to call the batch work that is submitted through the activity created by CoCreateActivity.
@GUID("67532E0C-9E2F-4450-A354-035633944E17")
interface IServiceActivity : IUnknown
{
///Performs the user-defined work synchronously.
///Params:
/// pIServiceCall = A pointer to the IServiceCall interface that is used to implement the batch work.
///Returns:
/// This method always returns the <b>HRESULT</b> value returned by the OnCall method of the IServiceCall
/// interface.
///
HRESULT SynchronousCall(IServiceCall pIServiceCall);
///Performs the user-defined work asynchronously.
///Params:
/// pIServiceCall = A pointer to the IServiceCall interface that is used to implement the batch work.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_FAIL, as well as the
/// following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The batch work was accepted by the activity to run
/// asynchronously. This return value does not necessarily mean that the batch work successfully completed. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>CO_E_ASYNC_WORK_REJECTED</b></dt> </dl> </td> <td width="60%"> The
/// batch work cannot be added to the asynchronous work queue of the activity. </td> </tr> </table>
///
HRESULT AsynchronousCall(IServiceCall pIServiceCall);
///Binds the user-defined batch work to the current thread.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT BindToCurrentThread();
///Unbinds the user-defined batch work from the thread on which it is running.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_FAIL, and S_OK.
///
HRESULT UnbindFromThread();
}
///Used to control the behavior of thread pools.
@GUID("51372AF7-CAE7-11CF-BE81-00AA00A2FA25")
interface IThreadPoolKnobs : IUnknown
{
///Retrieves the maximum number of threads that are allowed in the pool.
///Params:
/// plcMaxThreads = The maximum number of threads allowed in the pool. A zero value indicates that the pool can grow without
/// limit.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT GetMaxThreads(int* plcMaxThreads);
///Retrieves the number of threads currently in the pool.
///Params:
/// plcCurrentThreads = The number of threads currently in the pool.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT GetCurrentThreads(int* plcCurrentThreads);
///Sets the maximum number of threads to be allowed in the pool.
///Params:
/// lcMaxThreads = The maximum number of threads allowed in the pool. A zero value indicates that the pool can grow without
/// limit.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT SetMaxThreads(int lcMaxThreads);
///Retrieves the number of milliseconds a pooled thread can idle before being destroyed.
///Params:
/// pmsecDeleteDelay = The number of milliseconds a pooled thread can idle before being destroyed. A zero value indicates that
/// threads are never automatically deleted.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT GetDeleteDelay(int* pmsecDeleteDelay);
///Sets the number of milliseconds a pooled thread can idle before being destroyed.
///Params:
/// msecDeleteDelay = The number of milliseconds a pooled thread can idle before being destroyed. A zero value indicates that
/// threads are never automatically deleted.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT SetDeleteDelay(int msecDeleteDelay);
///Retrieves the maximum number of asynchronous execution requests that can be simultaneously queued.
///Params:
/// plcMaxQueuedRequests = The maximum number of asynchronous execution requests that can be simultaneously queued. A zero value
/// indicates that the queue can grow without limit.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT GetMaxQueuedRequests(int* plcMaxQueuedRequests);
///Retrieves the number of asynchronous execution requests that are currently queued.
///Params:
/// plcCurrentQueuedRequests = The number of asynchronous execution requests currently queued.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT GetCurrentQueuedRequests(int* plcCurrentQueuedRequests);
///Sets the maximum number of asynchronous execution requests that can be simultaneously queued.
///Params:
/// lcMaxQueuedRequests = The maximum number of asynchronous execution requests that can be simultaneously queued. A zero value
/// indicates that the queue can grow without limit.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT SetMaxQueuedRequests(int lcMaxQueuedRequests);
///Sets the minimum number of threads to be maintained in the pool.
///Params:
/// lcMinThreads = The minimum number of threads to be maintained in the pool.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT SetMinThreads(int lcMinThreads);
///Sets the threshold number of execution requests above which a new thread is added to the pool.
///Params:
/// lcQueueDepth = The threshold number of execution requests above which a new thread is added to the pool.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT SetQueueDepth(int lcQueueDepth);
}
@GUID("324B64FA-33B6-11D2-98B7-00C04F8EE1C4")
interface IComStaThreadPoolKnobs : IUnknown
{
HRESULT SetMinThreadCount(uint minThreads);
HRESULT GetMinThreadCount(uint* minThreads);
HRESULT SetMaxThreadCount(uint maxThreads);
HRESULT GetMaxThreadCount(uint* maxThreads);
HRESULT SetActivityPerThread(uint activitiesPerThread);
HRESULT GetActivityPerThread(uint* activitiesPerThread);
HRESULT SetActivityRatio(double activityRatio);
HRESULT GetActivityRatio(double* activityRatio);
HRESULT GetThreadCount(uint* pdwThreads);
HRESULT GetQueueDepth(uint* pdwQDepth);
HRESULT SetQueueDepth(int dwQDepth);
}
@GUID("F9A76D2E-76A5-43EB-A0C4-49BEC8E48480")
interface IComMtaThreadPoolKnobs : IUnknown
{
HRESULT MTASetMaxThreadCount(uint dwMaxThreads);
HRESULT MTAGetMaxThreadCount(uint* pdwMaxThreads);
HRESULT MTASetThrottleValue(uint dwThrottle);
HRESULT MTAGetThrottleValue(uint* pdwThrottle);
}
@GUID("73707523-FF9A-4974-BF84-2108DC213740")
interface IComStaThreadPoolKnobs2 : IComStaThreadPoolKnobs
{
HRESULT GetMaxCPULoad(uint* pdwLoad);
HRESULT SetMaxCPULoad(int pdwLoad);
HRESULT GetCPUMetricEnabled(BOOL* pbMetricEnabled);
HRESULT SetCPUMetricEnabled(BOOL bMetricEnabled);
HRESULT GetCreateThreadsAggressively(BOOL* pbMetricEnabled);
HRESULT SetCreateThreadsAggressively(BOOL bMetricEnabled);
HRESULT GetMaxCSR(uint* pdwCSR);
HRESULT SetMaxCSR(int dwCSR);
HRESULT GetWaitTimeForThreadCleanup(uint* pdwThreadCleanupWaitTime);
HRESULT SetWaitTimeForThreadCleanup(int dwThreadCleanupWaitTime);
}
///Provides methods that can be called whenever Dllhost.exe starts up or shuts down.
@GUID("1113F52D-DC7F-4943-AED6-88D04027E32A")
interface IProcessInitializer : IUnknown
{
///Called when Dllhost.exe starts.
///Params:
/// punkProcessControl = A pointer to the IUnknown interface of the COM component starting up. <b>Windows XP/2000: </b>This parameter
/// is always <b>NULL</b>.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT Startup(IUnknown punkProcessControl);
///Called when Dllhost.exe shuts down.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT Shutdown();
}
///Used to configure an object pool.
@GUID("A9690656-5BCA-470C-8451-250C1F43A33E")
interface IServicePoolConfig : IUnknown
{
///Sets the maximum number of objects in the pool.
///Params:
/// dwMaxPool = The maximum number of objects.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT put_MaxPoolSize(uint dwMaxPool);
///Retrieves the maximum number of objects in the pool.
///Params:
/// pdwMaxPool = The maximum number of objects.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT get_MaxPoolSize(uint* pdwMaxPool);
///Sets the minimum number of objects in the pool.
///Params:
/// dwMinPool = The minimum number of objects.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT put_MinPoolSize(uint dwMinPool);
///Retrieves the minimum number of objects in the pool.
///Params:
/// pdwMinPool = The minimum number of objects.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT get_MinPoolSize(uint* pdwMinPool);
///Sets the time-out interval for activating a pooled object.
///Params:
/// dwCreationTimeout = The time-out interval.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT put_CreationTimeout(uint dwCreationTimeout);
///Retrieves the time-out interval for activating a pooled object.
///Params:
/// pdwCreationTimeout = The time-out interval.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT get_CreationTimeout(uint* pdwCreationTimeout);
///Sets whether objects involved in transactions are held until the transaction completes.
///Params:
/// fTxAffinity = <b>TRUE</b> if the objects are to be held and <b>FALSE</b> otherwise.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT put_TransactionAffinity(BOOL fTxAffinity);
///Determines whether objects involved in transactions are held until the transaction completes.
///Params:
/// pfTxAffinity = <b>TRUE</b> if the objects are held and <b>FALSE</b> otherwise.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT get_TransactionAffinity(BOOL* pfTxAffinity);
///Sets a class factory for the pooled objects.
///Params:
/// pFactory = An IClassFactory interface pointer.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT put_ClassFactory(IClassFactory pFactory);
///Retrieves a class factory for the pooled objects.
///Params:
/// pFactory = A pointer to the IClassFactory interface pointer.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT get_ClassFactory(IClassFactory* pFactory);
}
///Used to manage a COM+ object pool.
@GUID("B302DF81-EA45-451E-99A2-09F9FD1B1E13")
interface IServicePool : IUnknown
{
///Initializes an object pool.
///Params:
/// pPoolConfig = An object supporting the IServicePoolConfig interface that describes the configuration of the object pool.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed
/// successfully. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>CO_E_ALREADYINITIALIZED</b></dt> </dl> </td> <td
/// width="60%"> Initialize has already been called. </td> </tr> </table>
///
HRESULT Initialize(IUnknown pPoolConfig);
HRESULT GetObjectA(const(GUID)* riid, void** ppv);
///Shuts down an object pool.
///Returns:
/// This method returns S_OK.
///
HRESULT Shutdown();
}
///Describes how a managed object is used in the COM+ object pool.
@GUID("C5DA4BEA-1B42-4437-8926-B6A38860A770")
interface IManagedPooledObj : IUnknown
{
///Sets whether the managed object should go back into the COM+ object pool.
///Params:
/// m_bHeld = Indicates whether the managed object should go back into the COM+ object pool.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT SetHeld(BOOL m_bHeld);
}
///Enables an object to be notified before it is released from a COM+ object pool.
@GUID("DA91B74E-5388-4783-949D-C1CD5FB00506")
interface IManagedPoolAction : IUnknown
{
///Called when a COM+ object pool drops the last reference to the object that implements it.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT LastRelease();
}
///Describes the stub for a managed object.
@GUID("1427C51A-4584-49D8-90A0-C50D8086CBE9")
interface IManagedObjectInfo : IUnknown
{
///Retrieves the IUnknown interface that is associated with the managed object.
///Params:
/// pUnk = A reference to the IUnknown interface.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT GetIUnknown(IUnknown* pUnk);
///Retrieves the IObjectControl interface that is associated with the managed object.
///Params:
/// pCtrl = A reference to the IObjectControl interface.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT GetIObjectControl(IObjectControl* pCtrl);
///Sets whether the managed object belongs to the COM+ object pool.
///Params:
/// bInPool = Indicates whether the managed object belongs to the COM+ object pool.
/// pPooledObj = A reference to IManagedPooledObj that describes how this managed object is used in the COM+ object pool.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT SetInPool(BOOL bInPool, IManagedPooledObj pPooledObj);
///Sets whether the managed object holds a strong or a weak reference to the COM+ context.
///Params:
/// bStrong = Indicates whether the managed object holds a strong or a weak reference to the COM+ context. A strong
/// reference keeps the object alive and prevents it from being destroyed during garbage collection.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT SetWrapperStrength(BOOL bStrong);
}
///Binds a managed object to an application domain, which is an isolated environment where applications execute. It
///provides callbacks to enter an application domain and for shutdown of the application domain.
@GUID("C7B67079-8255-42C6-9EC0-6994A3548780")
interface IAppDomainHelper : IDispatch
{
///Binds the calling object to the current application domain and provides a callback function for shutdown that is
///executed when the application domain is unloaded.
///Params:
/// pUnkAD = Pointer to the IUnknown of the current application domain.
/// __MIDL__IAppDomainHelper0000 = Reference to the shutdown function that is executed when the application domain is unloaded. The parameter of
/// this function, <i>pv</i>, comes from the <i>pPool</i> parameter, which is defined next.
/// pPool = This parameter is used to provide any data that the shutdown function might need.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT Initialize(IUnknown pUnkAD, HRESULT***** __MIDL__IAppDomainHelper0000, void* pPool);
///Switches into a given application domain (which the calling object must be bound to), executes the supplied
///callback function in that application domain, and then returns to the original application domain.
///Params:
/// pUnkAD = Reference to the IUnknown of the application domain that you want to switch to. The object calling
/// <b>DoCallback</b> must be bound to that application domain.
/// __MIDL__IAppDomainHelper0001 = Reference to the callback function. This function is executed in the application domain that you switched to.
/// The parameter of this function, <i>pv</i>, comes from the <i>pPool</i> parameter, which is defined next.
/// pPool = This parameter is used to provide any data that the callback function might need.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT DoCallback(IUnknown pUnkAD, HRESULT***** __MIDL__IAppDomainHelper0001, void* pPool);
}
///Retrieves information about an assembly when using managed code in the .NET Framework common language runtime.
@GUID("391FFBB9-A8EE-432A-ABC8-BAA238DAB90F")
interface IAssemblyLocator : IDispatch
{
///Used to get the names of the modules that are contained in an assembly.
///Params:
/// applicationDir = The directory containing the application.
/// applicationName = The name of the application domain.
/// assemblyName = The name of the assembly.
/// pModules = An array listing the names of the modules in the assembly.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT GetModules(BSTR applicationDir, BSTR applicationName, BSTR assemblyName, SAFEARRAY** pModules);
}
///Used to create and destroy stubs for managed objects within the current COM+ context.
@GUID("A5F325AF-572F-46DA-B8AB-827C3D95D99E")
interface IManagedActivationEvents : IUnknown
{
///Creates a stub for a managed object within the current COM+ context.
///Params:
/// pInfo = A pointer to IManagedObjectInfo that describes the stub for a managed object.
/// fDist = Indicates whether the created stub is the distinguished stub. A distinguished stub is the stub that controls
/// the lifetime of the current COM+ context.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT CreateManagedStub(IManagedObjectInfo pInfo, BOOL fDist);
///Destroys a stub that was created by CreateManagedStub.
///Params:
/// pInfo = A pointer to IManagedObjectInfo that describes the stub for a managed object.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT DestroyManagedStub(IManagedObjectInfo pInfo);
}
///Describes an event class that notifies subscribers whenever a method on the object that implements it either is
///called or returns from a call. The events are published to the subscriber using the COM+ Events service, a loosely
///coupled events system that stores event information from different publishers in an event store in the COM+ catalog.
@GUID("2732FD59-B2B4-4D44-878C-8B8F09626008")
interface ISendMethodEvents : IUnknown
{
///Generated when a method is called through a component interface.
///Params:
/// pIdentity = A pointer to the interface used to call the method.
/// riid = The ID of the interface used to call the method.
/// dwMeth = The method called.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT SendMethodCall(const(void)* pIdentity, const(GUID)* riid, uint dwMeth);
///Generated when a method called through a component interface returns control to the caller.
///Params:
/// pIdentity = A pointer to the interface used to call the method.
/// riid = The ID of the interface used to call the method.
/// dwMeth = The method called.
/// hrCall = The result returned by the method call.
/// hrServer = The result returned by the DCOM call to the server on which the component lives.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT SendMethodReturn(const(void)* pIdentity, const(GUID)* riid, uint dwMeth, HRESULT hrCall,
HRESULT hrServer);
}
///Maintains a list of pooled objects, keyed by IObjPool, that are used until the transaction completes.
@GUID("C5FEB7C1-346A-11D1-B1CC-00AA00BA3258")
interface ITransactionResourcePool : IUnknown
{
///Adds an object to the list of pooled objects.
///Params:
/// pPool = The key to each object in the transaction resource pool. It determines the type of pooled object to add to
/// the list.
/// pUnk = A reference to the IUnknown of the pooled object.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT PutResource(IObjPool pPool, IUnknown pUnk);
///Retrieves an object from the list of pooled objects.
///Params:
/// pPool = The key to each object in the transaction resource pool. It determines the type of pooled object to retrieve
/// from the list.
/// ppUnk = A reference to the IUnknown of the pooled object. The object that is retrieved must have the same IObjPool
/// pointer as an object that was put on the list by using PutResource.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_UNEXPECTED, as well as
/// the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>E_FAILED </b></dt> </dl> </td> <td width="60%"> The <i>pPool</i> parameter did not
/// match any object on the list of pooled objects. </td> </tr> </table>
///
HRESULT GetResource(IObjPool pPool, IUnknown* ppUnk);
}
///<p class="CCE_Message">[<b>IMTSCall</b> is available for use in the operating systems specified in the Requirements
///section. It may be altered of unavailable in subsequent versions. Instead, use IServiceCall.] Implements the batch
///work that is submitted through the activity created by the MTSCreateActivity function.
@GUID("51372AEF-CAE7-11CF-BE81-00AA00A2FA25")
interface IMTSCall : IUnknown
{
///<p class="CCE_Message">[IMTSCall is available for use in the operating systems specified in the Requirements
///section. It may be altered of unavailable in subsequent versions. Instead, use IServiceCall.] Triggers the
///execution of the batch work implemented in this method.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT OnCall();
}
///Provides access to context object properties. Each object context can have a user context property, which implements
///<b>IContextProperties</b>.
@GUID("D396DA85-BF8F-11D1-BBAE-00C04FC2FA5F")
interface IContextProperties : IUnknown
{
///Retrieves the number of context object properties.
///Params:
/// plCount = The number of context object properties.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT Count(int* plCount);
///Retrieves a context object property.
///Params:
/// name = The name of the context object property to be retrieved. The following are IIS intrinsic properties. <ul>
/// <li>Application</li> <li>Request</li> <li>Response</li> <li>Server</li> <li>Session</li> </ul> The following
/// is the COMTI instrinsic property: <ul> <li>host-security-callback.cedar.microsoft.com</li> </ul>
/// pProperty = A pointer to the property.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT GetProperty(BSTR name, VARIANT* pProperty);
///Retrieves a reference to an enumerator for the context object properties.
///Params:
/// ppenum = A reference to the IEnumNames interface on a new enumerator object that you can use to iterate through all
/// the context object properties.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT EnumNames(IEnumNames* ppenum);
///Sets a context object property.
///Params:
/// name = The name of the context object property to be set. See GetProperty for a list of valid property names.
/// property = The context object property value.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT SetProperty(BSTR name, VARIANT property);
///Removes a context object property.
///Params:
/// name = The name of the context object property to be removed. See GetProperty for a list of valid property names.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT RemoveProperty(BSTR name);
}
///Represents the key to each object in the transaction resource pool.
@GUID("7D8805A0-2EA7-11D1-B1CC-00AA00BA3258")
interface IObjPool : IUnknown
{
void Reserved1();
void Reserved2();
void Reserved3();
void Reserved4();
///Destroys the pooled object when the transaction ends.
///Params:
/// pObj = A reference to the IUnknown of the pooled object.
void PutEndTx(IUnknown pObj);
void Reserved5();
void Reserved6();
}
///Used to get the transaction resource pool.
@GUID("788EA814-87B1-11D1-BBA6-00C04FC2FA5F")
interface ITransactionProperty : IUnknown
{
void Reserved1();
void Reserved2();
void Reserved3();
void Reserved4();
void Reserved5();
void Reserved6();
void Reserved7();
void Reserved8();
void Reserved9();
///Retrieves the resource pool that is associated with this context's transaction.
///Params:
/// ppTxPool = A reference to the transaction resource pool.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT GetTransactionResourcePool(ITransactionResourcePool* ppTxPool);
void Reserved10();
void Reserved11();
void Reserved12();
void Reserved13();
void Reserved14();
void Reserved15();
void Reserved16();
void Reserved17();
}
///<p class="CCE_Message">[<b>IMTSActivity</b> is available for use in the operating systems specified in the
///Requirements section. It may be altered of unavailable in subsequent versions. Instead, use IServiceActivity.]
///Submits batch work through the activity created by the MTSCreateActivity function.
@GUID("51372AF0-CAE7-11CF-BE81-00AA00A2FA25")
interface IMTSActivity : IUnknown
{
///Performs the user-defined work synchronously.
///Params:
/// pCall = A pointer to the IMTSCall interface that is used to implement the batch work.
///Returns:
/// This method always returns the <b>HRESULT</b> returned by the OnCall method of the IMTSCall interface.
///
HRESULT SynchronousCall(IMTSCall pCall);
///Performs the user-defined work asynchronously.
///Params:
/// pCall = A pointer to the IMTSCall interface that is used to implement the batch work.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT AsyncCall(IMTSCall pCall);
void Reserved1();
///Binds the batch work that is submitted using IMTSActivity::AsyncCall or IMTSActivity::SynchronousCall to the
///current single-threaded apartment (STA). This method is designed to be called from the implementation of the
///IMTSCall::OnCall method.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT BindToCurrentThread();
///Unbinds the batch work that is submitted using IMTSActivity::AsyncCall or IMTSActivity::SynchronousCall from the
///thread on which it is running. It has no effect if the batch work was not previously bound to a thread. This
///method is designed to be called from the implementation of the IMTSCall::OnCall method.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT UnbindFromThread();
}
///Provides access to the event data store.
@GUID("4E14FB9F-2E22-11D1-9964-00C04FBBB345")
interface IEventSystem : IDispatch
{
///Retrieves a collection of subscription or event objects from the event data store.
///Params:
/// progID = The ProgID of the object class to be queried. This must be a valid event object class identifier. This
/// parameter can be one of the following values: <ul> <li>PROGID_EventClass</li>
/// <li>PROGID_EventClassCollection</li> <li>PROGID_EventSubscription</li>
/// <li>PROGID_EventSubscriptionCollection</li> </ul>
/// queryCriteria = The query criteria. For details on forming a valid expression for this parameter, see the Remarks section
/// below.
/// errorIndex = The location, expressed as an offset, of an error in the <i>queryCriteria</i> parameter.
/// ppInterface = Address of a pointer to the object obtained as a result of the query. This parameter cannot be <b>NULL</b>.
/// Depending on the object specified by the <i>progID</i> parameter, this is a pointer to one of the following
/// interfaces: <ul> <li> IEventClass </li> <li> IEventObjectCollection </li> <li> IEventSubscription </li> </ul>
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_POINTER, E_OUTOFMEMORY, E_UNEXPECTED, and
/// E_FAIL, as well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr>
/// <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully.
/// </td> </tr> <tr> <td width="40%"> <dl> <dt><b>EVENT_E_QUERYSYNTAX</b></dt> </dl> </td> <td width="60%"> A
/// syntax error occurred while trying to evaluate a query string. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>EVENT_E_QUERYFIELD</b></dt> </dl> </td> <td width="60%"> An invalid field name was used in a query
/// string. </td> </tr> </table>
///
HRESULT Query(BSTR progID, BSTR queryCriteria, int* errorIndex, IUnknown* ppInterface);
///Creates or modifies an event or subscription object within the event system.
///Params:
/// ProgID = The ProgID of the event object to be added. This must be a valid event object class identifier. The possible
/// values are PROGID_EventSubscription and PROGID_EventClass.
/// pInterface = A pointer to the object to be added. Depending on the object specified by the <i>ProgID</i> parameter, this
/// is a pointer to the IEventSubscription or IEventClass interface.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>EVENT_E_INVALID_PER_USER_SID</b></dt> </dl> </td> <td width="60%">
/// The owner SID on a per-user subscription does not exist. </td> </tr> </table>
///
HRESULT Store(BSTR ProgID, IUnknown pInterface);
///Removes one or more subscription or event objects from the event data store.
///Params:
/// progID = The ProgID of the object class to be removed. This must be a valid event object class identifier. This
/// parameter can be one of the following values: <ul> <li>PROGID_EventClass</li>
/// <li>PROGID_EventClassCollection</li> <li>PROGID_EventSubscription</li>
/// <li>PROGID_EventSubscriptionCollection</li> </ul>
/// queryCriteria = The query criteria. For details on forming a valid expression for this parameter, see the Remarks section
/// below.
/// errorIndex = The location, expressed as an offset, of an error in the <i>queryCriteria</i> parameter.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>EVENT_E_QUERYSYNTAX</b></dt> </dl> </td> <td width="60%"> A syntax
/// error occurred while trying to evaluate a query string. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>EVENT_E_QUERYFIELD</b></dt> </dl> </td> <td width="60%"> An invalid field name was used in a query
/// string. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>EVENT_E_NOT_ALL_REMOVED</b></dt> </dl> </td> <td
/// width="60%"> Not all of the requested objects could be removed. </td> </tr> </table>
///
HRESULT Remove(BSTR progID, BSTR queryCriteria, int* errorIndex);
///Retrieves the CLSID of an event class object that notifies the caller of changes to the event store. This
///property is read-only.
HRESULT get_EventObjectChangeEventClassID(BSTR* pbstrEventClassID);
///Retrieves a collection of subscription or event objects from the event data store.
///Params:
/// progID = The ProgID of the object class to be queried. This must be a valid event object class identifier. This
/// parameter can be one of the following values: <ul> <li>PROGID_EventClass</li>
/// <li>PROGID_EventClassCollection</li> <li>PROGID_EventSubscription</li>
/// <li>PROGID_EventSubscriptionCollection</li> </ul>
/// queryCriteria = The query criteria. For details on forming a valid expression for this parameter, see the Remarks section
/// below.
/// ppInterface = Address of a pointer to the object obtained as a result of the query. This parameter cannot be <b>NULL</b>.
/// Depending on the object specified by the <i>progID</i> parameter, this is a pointer to one of the following
/// interfaces: <ul> <li> IEventClass </li> <li> IEventObjectCollection </li> <li> IEventSubscription </li> </ul>
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_POINTER, E_OUTOFMEMORY, E_UNEXPECTED, and
/// E_FAIL, as well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr>
/// <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully.
/// </td> </tr> <tr> <td width="40%"> <dl> <dt><b>EVENT_E_QUERYSYNTAX</b></dt> </dl> </td> <td width="60%"> A
/// syntax error occurred while trying to evaluate a query string. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>EVENT_E_QUERYFIELD</b></dt> </dl> </td> <td width="60%"> An invalid field name was used in a query
/// string. </td> </tr> </table>
///
HRESULT QueryS(BSTR progID, BSTR queryCriteria, IUnknown* ppInterface);
///Removes one or more subscription or event objects from the event data store.
///Params:
/// progID = The ProgID of the object class to be removed. This must be a valid event object class identifier. This
/// parameter can be one of the following values: <ul> <li>PROGID_EventClass</li>
/// <li>PROGID_EventClassCollection</li> <li>PROGID_EventSubscription</li>
/// <li>PROGID_EventSubscriptionCollection</li> </ul>
/// queryCriteria = The query criteria. For details on forming a valid expression for this parameter, see the Remarks section
/// below.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>EVENT_E_QUERYSYNTAX</b></dt> </dl> </td> <td width="60%"> A syntax
/// error occurred while trying to evaluate a query string. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>EVENT_E_QUERYFIELD</b></dt> </dl> </td> <td width="60%"> An invalid field name was used in a query
/// string. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>EVENT_E_NOT_ALL_REMOVED</b></dt> </dl> </td> <td
/// width="60%"> Not all of the requested objects could be removed. </td> </tr> </table>
///
HRESULT RemoveS(BSTR progID, BSTR queryCriteria);
}
///Associates a class of event objects with the event interface those objects implement. <b>IEventClass</b> is the
///interface that is implemented by the CLSID_CEventClass objects, which are different than event class objects that are
///co-created by a publisher for the purpose of firing events. An event object implements the
///IMultiInterfaceEventControl event interface. While this object can be used to configure event classes in the event
///store, the preferred method is to use the COM+ Administration interfaces. However, not all of the properties exposed
///by the <b>IEventClass</b> interface are available through the COM+ Administration interfaces.
@GUID("FB2B72A0-7A68-11D1-88F9-0080C7D771BF")
interface IEventClass : IDispatch
{
///The CLSID for the event class object. This property is read/write.
HRESULT get_EventClassID(BSTR* pbstrEventClassID);
///The CLSID for the event class object. This property is read/write.
HRESULT put_EventClassID(BSTR bstrEventClassID);
///The ProgID for the event class object. This property is read/write.
HRESULT get_EventClassName(BSTR* pbstrEventClassName);
///The ProgID for the event class object. This property is read/write.
HRESULT put_EventClassName(BSTR bstrEventClassName);
///The security ID of the event class object's creator. This property is supported only for backward compatibility.
///This property is read/write.
HRESULT get_OwnerSID(BSTR* pbstrOwnerSID);
///The security ID of the event class object's creator. This property is supported only for backward compatibility.
///This property is read/write.
HRESULT put_OwnerSID(BSTR bstrOwnerSID);
///The ID of the event interface on the event class object. This property is supported only for backward
///compatibility. This property is read/write.
HRESULT get_FiringInterfaceID(BSTR* pbstrFiringInterfaceID);
///The ID of the event interface on the event class object. This property is supported only for backward
///compatibility. This property is read/write.
HRESULT put_FiringInterfaceID(BSTR bstrFiringInterfaceID);
///A displayable text description of the event class object. This property is read/write.
HRESULT get_Description(BSTR* pbstrDescription);
///A displayable text description of the event class object. This property is read/write.
HRESULT put_Description(BSTR bstrDescription);
///The CLSID of a component that can assist in adding properties into the property bag of a subscription object.
///This property is supported only for backward compatibility. This property is read/write.
HRESULT get_CustomConfigCLSID(BSTR* pbstrCustomConfigCLSID);
///The CLSID of a component that can assist in adding properties into the property bag of a subscription object.
///This property is supported only for backward compatibility. This property is read/write.
HRESULT put_CustomConfigCLSID(BSTR bstrCustomConfigCLSID);
///The path of the type library that contains the description of the event interface. This property is read/write.
HRESULT get_TypeLib(BSTR* pbstrTypeLib);
///The path of the type library that contains the description of the event interface. This property is read/write.
HRESULT put_TypeLib(BSTR bstrTypeLib);
}
///Used to set and obtain data on event class objects. This interface extends the IEventClass interface.
@GUID("FB2B72A1-7A68-11D1-88F9-0080C7D771BF")
interface IEventClass2 : IEventClass
{
///The CLSID for the event publisher. This property is read/write.
HRESULT get_PublisherID(BSTR* pbstrPublisherID);
///The CLSID for the event publisher. This property is read/write.
HRESULT put_PublisherID(BSTR bstrPublisherID);
///The CLSID of the object implementing IMultiInterfacePublisherFilter. This property is read/write.
HRESULT get_MultiInterfacePublisherFilterCLSID(BSTR* pbstrPubFilCLSID);
///The CLSID of the object implementing IMultiInterfacePublisherFilter. This property is read/write.
HRESULT put_MultiInterfacePublisherFilterCLSID(BSTR bstrPubFilCLSID);
///Indicates whether the event class can be activated in-process. This property is read/write.
HRESULT get_AllowInprocActivation(BOOL* pfAllowInprocActivation);
///Indicates whether the event class can be activated in-process. This property is read/write.
HRESULT put_AllowInprocActivation(BOOL fAllowInprocActivation);
///Indicates whether events of this class can be fired in parallel. This property is read/write.
HRESULT get_FireInParallel(BOOL* pfFireInParallel);
///Indicates whether events of this class can be fired in parallel. This property is read/write.
HRESULT put_FireInParallel(BOOL fFireInParallel);
}
///Specifies information about the relationship between an event subscriber and an event to which it is subscribing. It
///is used by publisher filters.
@GUID("4A6B0E15-2E38-11D1-9965-00C04FBBB345")
interface IEventSubscription : IDispatch
{
///The unique ID for the subscription object. This property is read/write.
HRESULT get_SubscriptionID(BSTR* pbstrSubscriptionID);
///The unique ID for the subscription object. This property is read/write.
HRESULT put_SubscriptionID(BSTR bstrSubscriptionID);
///A displayable name for the subscription object. This property is read/write.
HRESULT get_SubscriptionName(BSTR* pbstrSubscriptionName);
///A displayable name for the subscription object. This property is read/write.
HRESULT put_SubscriptionName(BSTR bstrSubscriptionName);
///The unique ID of the event publisher. This property is read/write.
HRESULT get_PublisherID(BSTR* pbstrPublisherID);
///The unique ID of the event publisher. This property is read/write.
HRESULT put_PublisherID(BSTR bstrPublisherID);
///The unique ID of the event class associated with the subscription. This property is read/write.
HRESULT get_EventClassID(BSTR* pbstrEventClassID);
///The unique ID of the event class associated with the subscription. This property is read/write.
HRESULT put_EventClassID(BSTR bstrEventClassID);
///The name of the event method. This property is read/write.
HRESULT get_MethodName(BSTR* pbstrMethodName);
///The name of the event method. This property is read/write.
HRESULT put_MethodName(BSTR bstrMethodName);
///The CLSID of the subscriber component (for a persistent subscription). This property is read/write.
HRESULT get_SubscriberCLSID(BSTR* pbstrSubscriberCLSID);
///The CLSID of the subscriber component (for a persistent subscription). This property is read/write.
HRESULT put_SubscriberCLSID(BSTR bstrSubscriberCLSID);
///A marshaled pointer to the event interface on the subscriber (for a transient subscription). This property is
///read/write.
HRESULT get_SubscriberInterface(IUnknown* ppSubscriberInterface);
///A marshaled pointer to the event interface on the subscriber (for a transient subscription). This property is
///read/write.
HRESULT put_SubscriberInterface(IUnknown pSubscriberInterface);
///Indicates whether the subscription receives the event only if the owner of the subscription is logged on to the
///same computer as the publisher. This property is read/write.
HRESULT get_PerUser(BOOL* pfPerUser);
///Indicates whether the subscription receives the event only if the owner of the subscription is logged on to the
///same computer as the publisher. This property is read/write.
HRESULT put_PerUser(BOOL fPerUser);
///The security ID of the subscription's creator. This property is read/write.
HRESULT get_OwnerSID(BSTR* pbstrOwnerSID);
///The security ID of the subscription's creator. This property is read/write.
HRESULT put_OwnerSID(BSTR bstrOwnerSID);
///Indicates whether the subscription is enabled. This property is read/write.
HRESULT get_Enabled(BOOL* pfEnabled);
///Indicates whether the subscription is enabled. This property is read/write.
HRESULT put_Enabled(BOOL fEnabled);
///A displayable text description of the subscription. This property is read/write.
HRESULT get_Description(BSTR* pbstrDescription);
///A displayable text description of the subscription. This property is read/write.
HRESULT put_Description(BSTR bstrDescription);
///The name of the computer on which the subscriber should be activated (for a persistent subscription). This
///property is read/write.
HRESULT get_MachineName(BSTR* pbstrMachineName);
///The name of the computer on which the subscriber should be activated (for a persistent subscription). This
///property is read/write.
HRESULT put_MachineName(BSTR bstrMachineName);
///Retrieves the value of a property stored in the property bag to define publisher context.
///Params:
/// bstrPropertyName = The name of the requested property.
/// propertyValue = The value of the requested property.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT GetPublisherProperty(BSTR bstrPropertyName, VARIANT* propertyValue);
///Writes a property and its value to the property bag to define publisher context.
///Params:
/// bstrPropertyName = The name of the property whose value is to be written to the property bag. If the property is not in the
/// property bag, this method adds it.
/// propertyValue = The value of the property to be written to the property bag. If the property is already in the property bag,
/// this method overwrites the current value.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT PutPublisherProperty(BSTR bstrPropertyName, VARIANT* propertyValue);
///Removes a property and its value from the property bag that defines publisher context.
///Params:
/// bstrPropertyName = The name of the property whose value is to be removed from the property bag.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT RemovePublisherProperty(BSTR bstrPropertyName);
///Retrieves a collection of properties and values stored in the publisher property bag.
///Params:
/// collection = Address of a pointer to the IEventObjectCollection interface on an event object collection. This parameter
/// cannot be <b>NULL</b>.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_POINTER, E_OUTOFMEMORY, E_UNEXPECTED,
/// E_FAIL, and S_OK.
///
HRESULT GetPublisherPropertyCollection(IEventObjectCollection* collection);
///Retrieves the value of a property stored in the property bag to define subscriber context.
///Params:
/// bstrPropertyName = The name of the requested property.
/// propertyValue = The value of the requested property.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT GetSubscriberProperty(BSTR bstrPropertyName, VARIANT* propertyValue);
///Writes a property and its value to the property bag to define subscriber context.
///Params:
/// bstrPropertyName = The name of the property whose value is to be written to the property bag. If the property is not in the
/// property bag, this method adds it.
/// propertyValue = The value of the property to be written to the property bag. If the property is already in the property bag,
/// this method overwrites the current value.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT PutSubscriberProperty(BSTR bstrPropertyName, VARIANT* propertyValue);
///Removes a property and its value from the property bag that defines subscriber context.
///Params:
/// bstrPropertyName = The name of the property whose value is to be removed from the property bag.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT RemoveSubscriberProperty(BSTR bstrPropertyName);
///Retrieves a collection of properties and values stored in the subscriber property bag.
///Params:
/// collection = Address of a pointer to the IEventObjectCollection interface on an event object collection. This parameter
/// cannot be <b>NULL</b>.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_POINTER, E_OUTOFMEMORY, E_UNEXPECTED,
/// E_FAIL, and S_OK.
///
HRESULT GetSubscriberPropertyCollection(IEventObjectCollection* collection);
///The identifier for a particular interface for which the subscriber wants to receive events. This property is
///read/write.
HRESULT get_InterfaceID(BSTR* pbstrInterfaceID);
///The identifier for a particular interface for which the subscriber wants to receive events. This property is
///read/write.
HRESULT put_InterfaceID(BSTR bstrInterfaceID);
}
///Fires an event to a single subscription.
@GUID("E0498C93-4EFE-11D1-9971-00C04FBBB345")
interface IFiringControl : IDispatch
{
///Fires an event to a single subscriber.
///Params:
/// subscription = A pointer to the IEventSubscription interface on a subscription object.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT FireSubscription(IEventSubscription subscription);
}
///Acts as a callback interface so that event publishers can control which subscribers receive event notifications or
///the order in which subscribers are notified. <b>IPublisherFilter</b> is supported only for backward compatibility.
///Instead, use the IMultiInterfacePublisherFilter interface.
@GUID("465E5CC0-7B26-11D1-88FB-0080C7D771BF")
interface IPublisherFilter : IUnknown
{
///Associates an event method with a collection of subscription objects. This method is supported only for backward
///compatibility. Otherwise, you should use the methods of the IMultiInterfacePublisherFilter interface.
///Params:
/// methodName = The name of the event method associated with the publisher filter.
/// dispUserDefined = A pointer to the IEventSystem interface on an event system object or to the IEventControl interface on an
/// event class object.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The publisher filter was successfully
/// initialized. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>EVENT_S_SOME_SUBSCRIBERS_FAILED</b></dt> </dl>
/// </td> <td width="60%"> An event was able to invoke some, but not all, of the subscribers. </td> </tr> <tr>
/// <td width="40%"> <dl> <dt><b>EVENT_E_ALL_SUBSCRIBERS_FAILED</b></dt> </dl> </td> <td width="60%"> An event
/// was unable to invoke any of the subscribers. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>EVENT_S_NOSUBSCRIBERS</b></dt> </dl> </td> <td width="60%"> An event was published but there were no
/// subscribers. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>EVENT_E_QUERYSYNTAX</b></dt> </dl> </td> <td
/// width="60%"> A syntax error occurred while trying to evaluate a query string. </td> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>EVENT_E_QUERYFIELD</b></dt> </dl> </td> <td width="60%"> An invalid field name was
/// used in a query string. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>EVENT_E_INTERNALEXCEPTION</b></dt>
/// </dl> </td> <td width="60%"> An unexpected exception was raised. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>EVENT_E_INTERNALERROR</b></dt> </dl> </td> <td width="60%"> An unexpected internal error was detected.
/// </td> </tr> <tr> <td width="40%"> <dl> <dt><b>EVENT_E_INVALID_PER_USER_SID</b></dt> </dl> </td> <td
/// width="60%"> The owner SID on a per-user subscription does not exist. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>EVENT_E_USER_EXCEPTION</b></dt> </dl> </td> <td width="60%"> A user-supplied component or subscriber
/// raised an exception. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>EVENT_E_TOO_MANY_METHODS</b></dt> </dl>
/// </td> <td width="60%"> An interface has too many methods from which to fire events. </td> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>EVENT_E_MISSING_EVENTCLASS</b></dt> </dl> </td> <td width="60%"> A subscription
/// cannot be stored unless the event class for the subscription already exists. </td> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>EVENT_E_NOT_ALL_REMOVED</b></dt> </dl> </td> <td width="60%"> Not all of the
/// requested objects could be removed. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>EVENT_E_COMPLUS_NOT_INSTALLED</b></dt> </dl> </td> <td width="60%"> COM+ is required for this
/// operation, but it is not installed. </td> </tr> </table>
///
HRESULT Initialize(BSTR methodName, IDispatch dispUserDefined);
///Prepares a publisher filter to begin firing a filtered list of subscriptions using a provided firing control. The
///firing control is contained in the event class object. This method is supported only for backward compatibility.
///Otherwise, you should use the methods of the IMultiInterfacePublisherFilter interface.
///Params:
/// methodName = The name of the event method to be fired.
/// firingControl = A pointer to the IFiringControl interface on the firing control object.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The event class object is ready to fire
/// the event. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>EVENT_S_SOME_SUBSCRIBERS_FAILED</b></dt> </dl> </td>
/// <td width="60%"> An event was able to invoke some, but not all, of the subscribers. </td> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>EVENT_E_ALL_SUBSCRIBERS_FAILED</b></dt> </dl> </td> <td width="60%"> An event was
/// unable to invoke any of the subscribers. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>EVENT_S_NOSUBSCRIBERS</b></dt> </dl> </td> <td width="60%"> An event was published but there were no
/// subscribers. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>EVENT_E_QUERYSYNTAX</b></dt> </dl> </td> <td
/// width="60%"> A syntax error occurred while trying to evaluate a query string. </td> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>EVENT_E_QUERYFIELD</b></dt> </dl> </td> <td width="60%"> An invalid field name was
/// used in a query string. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>EVENT_E_INTERNALEXCEPTION</b></dt>
/// </dl> </td> <td width="60%"> An unexpected exception was raised. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>EVENT_E_INTERNALERROR</b></dt> </dl> </td> <td width="60%"> An unexpected internal error was detected.
/// </td> </tr> <tr> <td width="40%"> <dl> <dt><b>EVENT_E_INVALID_PER_USER_SID</b></dt> </dl> </td> <td
/// width="60%"> The owner SID on a per-user subscription does not exist. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>EVENT_E_USER_EXCEPTION</b></dt> </dl> </td> <td width="60%"> A user-supplied component or subscriber
/// raised an exception. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>EVENT_E_TOO_MANY_METHODS</b></dt> </dl>
/// </td> <td width="60%"> An interface has too many methods from which to fire events. </td> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>EVENT_E_MISSING_EVENTCLASS</b></dt> </dl> </td> <td width="60%"> A subscription
/// cannot be stored unless the event class for the subscription already exists. </td> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>EVENT_E_NOT_ALL_REMOVED</b></dt> </dl> </td> <td width="60%"> Not all of the
/// requested objects could be removed. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>EVENT_E_COMPLUS_NOT_INSTALLED</b></dt> </dl> </td> <td width="60%"> COM+ is required for this
/// operation, but it is not installed. </td> </tr> </table>
///
HRESULT PrepareToFire(BSTR methodName, IFiringControl firingControl);
}
///Manages a filtered subscription cache for an event method. Only subscribers who meet the criteria specified by the
///filter are notified when the associated event is fired. The <b>IMultiInterfacePublisherFilter</b> interface differs
///from the IPublisherFilter interface in that it supports multiple event interfaces for the event object.
@GUID("465E5CC1-7B26-11D1-88FB-0080C7D771BF")
interface IMultiInterfacePublisherFilter : IUnknown
{
///Associates an event class with a publisher filter.
///Params:
/// pEIC = A pointer to the IMultiInterfaceEventControl interface on an event class object.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT Initialize(IMultiInterfaceEventControl pEIC);
///Prepares the publisher filter to begin firing a filtered list of subscriptions using a provided firing control.
///The firing control is contained in the event class object.
///Params:
/// iid = The interface ID of the interface being fired.
/// methodName = The name of the event method to be fired.
/// firingControl = A pointer to the IFiringControl interface on the firing control object.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT PrepareToFire(const(GUID)* iid, BSTR methodName, IFiringControl firingControl);
}
///Notifies subscribers of changes to the event store.
@GUID("F4A07D70-2E25-11D1-9964-00C04FBBB345")
interface IEventObjectChange : IUnknown
{
///Indicates that a subscription object has been added, modified, or deleted.
///Params:
/// changeType = The type of change to the subscription object. Values are taken from the EOC_ChangeType enumeration.
/// bstrSubscriptionID = The SubscriptionID property of the subscription object that changed.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT ChangedSubscription(EOC_ChangeType changeType, BSTR bstrSubscriptionID);
///Indicates that an event class object has been added, modified, or deleted.
///Params:
/// changeType = The type of change to the event class object. Values are taken from the EOC_ChangeType enumeration.
/// bstrEventClassID = The EventClassID property of the event class object that changed.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT ChangedEventClass(EOC_ChangeType changeType, BSTR bstrEventClassID);
///Indicates a publisher object has been added, modified, or deleted.
///Params:
/// changeType = The type of change to the publisher object. Values are taken from the EOC_ChangeType enumeration.
/// bstrPublisherID = The PublisherID property of the publisher object that changed.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT ChangedPublisher(EOC_ChangeType changeType, BSTR bstrPublisherID);
}
///Notifies subscribers of changes to the event store while including partition and application ID information. The
///<b>IEventObjectChange2</b> interface has the same firing characteristics as IEventObjectChange.
@GUID("7701A9C3-BD68-438F-83E0-67BF4F53A422")
interface IEventObjectChange2 : IUnknown
{
///Indicates that a subscription object has been added, modified, or deleted.
///Params:
/// pInfo = A pointer to a COMEVENTSYSCHANGEINFO structure.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT ChangedSubscription(COMEVENTSYSCHANGEINFO* pInfo);
///Indicates that an event class object has been added, modified, or deleted.
///Params:
/// pInfo = A pointer to a COMEVENTSYSCHANGEINFO structure.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT ChangedEventClass(COMEVENTSYSCHANGEINFO* pInfo);
}
///Enumerates the event objects that are registered in the COM+ events store. Similar functionality is available through
///IEventObjectCollection.
@GUID("F4A07D63-2E25-11D1-9964-00C04FBBB345")
interface IEnumEventObject : IUnknown
{
///Creates an enumerator that contains the same enumeration state as the current one.
///Params:
/// ppInterface = Address of a pointer to the IEnumEventObject interface on the enumeration object. This parameter cannot be
/// <b>NULL</b>. If the method is unsuccessful, the value of this output variable is undefined.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT Clone(IEnumEventObject* ppInterface);
///Retrieves the specified number of items in the enumeration sequence.
///Params:
/// cReqElem = The number of elements being requested. If there are fewer than the requested number of elements left in the
/// sequence, this method obtains the remaining elements.
/// ppInterface = The address to a pointer to the IUnknown interface on the first object obtained. This parameter cannot be
/// <b>NULL</b>.
/// cRetElem = The number of elements actually obtained. This parameter cannot be <b>NULL</b>.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_POINTER, E_OUTOFMEMORY, E_UNEXPECTED, and
/// E_FAIL, as well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr>
/// <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> All elements requested were obtained.
/// </td> </tr> <tr> <td width="40%"> <dl> <dt><b>S_FALSE</b></dt> </dl> </td> <td width="60%"> Not all elements
/// requested were obtained. The number of elements obtained was written to <i>pcRetElem</i>. </td> </tr>
/// </table>
///
HRESULT Next(uint cReqElem, IUnknown* ppInterface, uint* cRetElem);
///Resets the enumeration sequence to the beginning.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The enumeration sequence was
/// reset. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>S_FALSE</b></dt> </dl> </td> <td width="60%"> The
/// enumeration sequence was reset, but there are no items in the enumerator. </td> </tr> </table>
///
HRESULT Reset();
///Skips over the specified number of items in the enumeration sequence.
///Params:
/// cSkipElem = The number of elements to be skipped.
///Returns:
/// This method can return the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr>
/// <tr> <td width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The requested number of elements
/// was skipped. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>S_FALSE</b></dt> </dl> </td> <td width="60%"> The
/// number of elements skipped was not the same as the number requested. </td> </tr> </table>
///
HRESULT Skip(uint cSkipElem);
}
///Manages objects in an event objects collection.
@GUID("F89AC270-D4EB-11D1-B682-00805FC79216")
interface IEventObjectCollection : IDispatch
{
///An enumerator for the objects in the collection. This property is read-only.
HRESULT get__NewEnum(IUnknown* ppUnkEnum);
///An item in the collection. This property is read-only.
HRESULT get_Item(BSTR objectID, VARIANT* pItem);
///An enumeration object that implements IEnumEventObject. This property is read-only.
HRESULT get_NewEnum(IEnumEventObject* ppEnum);
///The number of objects in the collection. This property is read-only.
HRESULT get_Count(int* pCount);
///Adds an event object to the collection.
///Params:
/// item = A pointer to the event object to be added to the collection. This parameter cannot be <b>NULL</b>.
/// objectID = The ID property of the event object to be added. For example, if the collection consists of subscription
/// objects, this parameter would contain the SubscriptionID property of the event subscription object to be
/// added to the collection.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT Add(VARIANT* item, BSTR objectID);
///Removes an event object from the collection.
///Params:
/// objectID = The ID property of the event object to be removed. For example, if the collection consists of subscription
/// objects, this parameter would contain the SubscriptionID property of the event subscription object to be
/// removed from the collection.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and
/// S_OK.
///
HRESULT Remove(BSTR objectID);
}
///Controls the behavior of an event object, the object that fires an event to its subscribers. The <b>IEventControl</b>
///interface differs from the IMultiInterfaceEventControl interface in that it supports only one interface for the event
///object.
@GUID("0343E2F4-86F6-11D1-B760-00C04FB926AF")
interface IEventControl : IDispatch
{
///Assigns a publisher filter to an event method.
///Params:
/// methodName = The name of the event method associated with the publisher filter to be assigned.
/// pPublisherFilter = A pointer to the IPublisherFilter interface on the publisher filter associated with the specified method.
///Returns:
/// If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it
/// returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.
///
HRESULT SetPublisherFilter(BSTR methodName, IPublisherFilter pPublisherFilter);
///Indicates whether subscribers can be activated in the publisher's process. This property is read/write.
HRESULT get_AllowInprocActivation(BOOL* pfAllowInprocActivation);
///Indicates whether subscribers can be activated in the publisher's process. This property is read/write.
HRESULT put_AllowInprocActivation(BOOL fAllowInprocActivation);
///Retrieves the collection of subscriptions associated with an event method.
///Params:
/// methodName = The event method associated with the subscription collection.
/// optionalCriteria = The query criteria. If this parameter is <b>NULL</b>, the default query specified by the SetDefaultQuery
/// method is used. For details on forming a valid expression for this parameter, see the Remarks section below.
/// optionalErrorIndex = The location, expressed as an offset, of an error in the <i>OptionalCriteria</i> parameter. This parameter
/// cannot be <b>NULL</b>.
/// ppCollection = Address of a pointer to IEventObjectCollection interface on a collection object that enumerates the
/// subscriptions associated with the event object.
///Returns:
/// If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it
/// returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.
///
HRESULT GetSubscriptions(BSTR methodName, BSTR optionalCriteria, int* optionalErrorIndex,
IEventObjectCollection* ppCollection);
///Sets the default query to determine subscribers.
///Params:
/// methodName = The name of the method to which the default query is assigned.
/// criteria = The query criteria. This parameter cannot be <b>NULL</b>. For details on forming a valid expression for this
/// parameter, see the Remarks section below.
/// errorIndex = The location, expressed as an offset, of an error in the <i>criteria</i> parameter.
///Returns:
/// If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it
/// returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.
///
HRESULT SetDefaultQuery(BSTR methodName, BSTR criteria, int* errorIndex);
}
///Controls the behavior of an event object, the object that fires an event to its subscribers. The
///<b>IMultiInterfaceEventControl</b> interface differs from the IEventControl interface in that it supports multiple
///event interfaces for the event object.
@GUID("0343E2F5-86F6-11D1-B760-00C04FB926AF")
interface IMultiInterfaceEventControl : IUnknown
{
///Assigns a publisher filter to an event method at run time. This method sets the specified publisher filter for
///all methods of all event interfaces for the event object.
///Params:
/// classFilter = A pointer to the IMultiInterfacePublisherFilter interface on the publisher filter associated with the
/// specified method.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>EVENT_E_INTERNALEXCEPTION</b></dt> </dl> </td> <td width="60%"> An
/// unexpected exception was raised. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>EVENT_E_INTERNALERROR</b></dt>
/// </dl> </td> <td width="60%"> An unexpected internal error was detected. </td> </tr> </table>
///
HRESULT SetMultiInterfacePublisherFilter(IMultiInterfacePublisherFilter classFilter);
///Retrieves the collection of subscription objects associated with an event method.
///Params:
/// eventIID = The interface identifier of the firing interface.
/// bstrMethodName = The event method associated with the subscription collection.
/// optionalCriteria = A string specifying the query criteria. If this parameter is <b>NULL</b>, the default query specified by the
/// SetDefaultQuery method is used. For details on forming a valid expression for this parameter, see the Remarks
/// section below.
/// optionalErrorIndex = The location, expressed as an offset, of an error in the <i>optionalCriteria</i> parameter. This parameter
/// cannot be <b>NULL</b>.
/// ppCollection = The address of a pointer to an IEventObjectCollection interface on a collection object that enumerates the
/// subscriptions associated with the event object.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>EVENT_E_QUERYSYNTAX</b></dt> </dl> </td> <td width="60%"> A syntax
/// error occurred while trying to evaluate a query string. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>EVENT_E_QUERYFIELD</b></dt> </dl> </td> <td width="60%"> An invalid field name was used in a query
/// string. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>EVENT_E_INTERNALEXCEPTION</b></dt> </dl> </td> <td
/// width="60%"> An unexpected exception was raised. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>EVENT_E_INTERNALERROR</b></dt> </dl> </td> <td width="60%"> An unexpected internal error was detected.
/// </td> </tr> </table>
///
HRESULT GetSubscriptions(const(GUID)* eventIID, BSTR bstrMethodName, BSTR optionalCriteria,
int* optionalErrorIndex, IEventObjectCollection* ppCollection);
///Establishes a default query to be used when a publisher filter is not associated with an event method.
///Params:
/// eventIID = The interface identifier of the firing interface.
/// bstrMethodName = The name of the method to which the default query is assigned.
/// bstrCriteria = A string specifying the query criteria. This parameter cannot be <b>NULL</b>. For details on forming a valid
/// expression for this parameter, see the Remarks section below.
/// errorIndex = The location, expressed as an offset, of an error in the <i>bstrCriteria</i> parameter.
///Returns:
/// This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as
/// well as the following values. <table> <tr> <th>Return code</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> The method completed successfully. </td>
/// </tr> <tr> <td width="40%"> <dl> <dt><b>EVENT_E_QUERYSYNTAX</b></dt> </dl> </td> <td width="60%"> A syntax
/// error occurred while trying to evaluate a query string. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>EVENT_E_QUERYFIELD</b></dt> </dl> </td> <td width="60%"> An invalid field name was used in a query
/// string. </td> </tr> <tr> <td width="40%"> <dl> <dt><b>EVENT_E_INTERNALEXCEPTION</b></dt> </dl> </td> <td
/// width="60%"> An unexpected exception was raised. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>EVENT_E_INTERNALERROR</b></dt> </dl> </td> <td width="60%"> An unexpected internal error was detected.
/// </td> </tr> </table>
///
HRESULT SetDefaultQuery(const(GUID)* eventIID, BSTR bstrMethodName, BSTR bstrCriteria, int* errorIndex);
///Indicates whether subscribers can be activated in the publisher's process. This property is read/write.
HRESULT get_AllowInprocActivation(BOOL* pfAllowInprocActivation);
///Indicates whether subscribers can be activated in the publisher's process. This property is read/write.
HRESULT put_AllowInprocActivation(BOOL fAllowInprocActivation);
///Indicates whether events can be delivered to two or more subscribers in parallel. This property is read/write.
HRESULT get_FireInParallel(BOOL* pfFireInParallel);
///Indicates whether events can be delivered to two or more subscribers in parallel. This property is read/write.
HRESULT put_FireInParallel(BOOL fFireInParallel);
}
@GUID("784121F1-62A6-4B89-855F-D65F296DE83A")
interface IDontSupportEventSubscription : IUnknown
{
}
// GUIDs
const GUID CLSID_AppDomainHelper = GUIDOF!AppDomainHelper;
const GUID CLSID_ByotServerEx = GUIDOF!ByotServerEx;
const GUID CLSID_CEventClass = GUIDOF!CEventClass;
const GUID CLSID_CEventPublisher = GUIDOF!CEventPublisher;
const GUID CLSID_CEventSubscription = GUIDOF!CEventSubscription;
const GUID CLSID_CEventSystem = GUIDOF!CEventSystem;
const GUID CLSID_COMAdminCatalog = GUIDOF!COMAdminCatalog;
const GUID CLSID_COMAdminCatalogCollection = GUIDOF!COMAdminCatalogCollection;
const GUID CLSID_COMAdminCatalogObject = GUIDOF!COMAdminCatalogObject;
const GUID CLSID_COMEvents = GUIDOF!COMEvents;
const GUID CLSID_CRMClerk = GUIDOF!CRMClerk;
const GUID CLSID_CRMRecoveryClerk = GUIDOF!CRMRecoveryClerk;
const GUID CLSID_CServiceConfig = GUIDOF!CServiceConfig;
const GUID CLSID_ClrAssemblyLocator = GUIDOF!ClrAssemblyLocator;
const GUID CLSID_CoMTSLocator = GUIDOF!CoMTSLocator;
const GUID CLSID_ComServiceEvents = GUIDOF!ComServiceEvents;
const GUID CLSID_ComSystemAppEventData = GUIDOF!ComSystemAppEventData;
const GUID CLSID_DispenserManager = GUIDOF!DispenserManager;
const GUID CLSID_Dummy30040732 = GUIDOF!Dummy30040732;
const GUID CLSID_EventObjectChange = GUIDOF!EventObjectChange;
const GUID CLSID_EventObjectChange2 = GUIDOF!EventObjectChange2;
const GUID CLSID_EventServer = GUIDOF!EventServer;
const GUID CLSID_GetSecurityCallContextAppObject = GUIDOF!GetSecurityCallContextAppObject;
const GUID CLSID_LBEvents = GUIDOF!LBEvents;
const GUID CLSID_MessageMover = GUIDOF!MessageMover;
const GUID CLSID_MtsGrp = GUIDOF!MtsGrp;
const GUID CLSID_PoolMgr = GUIDOF!PoolMgr;
const GUID CLSID_SecurityCallContext = GUIDOF!SecurityCallContext;
const GUID CLSID_SecurityCallers = GUIDOF!SecurityCallers;
const GUID CLSID_SecurityIdentity = GUIDOF!SecurityIdentity;
const GUID CLSID_ServicePool = GUIDOF!ServicePool;
const GUID CLSID_ServicePoolConfig = GUIDOF!ServicePoolConfig;
const GUID CLSID_SharedProperty = GUIDOF!SharedProperty;
const GUID CLSID_SharedPropertyGroup = GUIDOF!SharedPropertyGroup;
const GUID CLSID_SharedPropertyGroupManager = GUIDOF!SharedPropertyGroupManager;
const GUID CLSID_TrackerServer = GUIDOF!TrackerServer;
const GUID CLSID_TransactionContext = GUIDOF!TransactionContext;
const GUID CLSID_TransactionContextEx = GUIDOF!TransactionContextEx;
const GUID IID_ContextInfo = GUIDOF!ContextInfo;
const GUID IID_ContextInfo2 = GUIDOF!ContextInfo2;
const GUID IID_IAppDomainHelper = GUIDOF!IAppDomainHelper;
const GUID IID_IAssemblyLocator = GUIDOF!IAssemblyLocator;
const GUID IID_IAsyncErrorNotify = GUIDOF!IAsyncErrorNotify;
const GUID IID_ICOMAdminCatalog = GUIDOF!ICOMAdminCatalog;
const GUID IID_ICOMAdminCatalog2 = GUIDOF!ICOMAdminCatalog2;
const GUID IID_ICOMLBArguments = GUIDOF!ICOMLBArguments;
const GUID IID_ICatalogCollection = GUIDOF!ICatalogCollection;
const GUID IID_ICatalogObject = GUIDOF!ICatalogObject;
const GUID IID_ICheckSxsConfig = GUIDOF!ICheckSxsConfig;
const GUID IID_IComActivityEvents = GUIDOF!IComActivityEvents;
const GUID IID_IComApp2Events = GUIDOF!IComApp2Events;
const GUID IID_IComAppEvents = GUIDOF!IComAppEvents;
const GUID IID_IComCRMEvents = GUIDOF!IComCRMEvents;
const GUID IID_IComExceptionEvents = GUIDOF!IComExceptionEvents;
const GUID IID_IComIdentityEvents = GUIDOF!IComIdentityEvents;
const GUID IID_IComInstance2Events = GUIDOF!IComInstance2Events;
const GUID IID_IComInstanceEvents = GUIDOF!IComInstanceEvents;
const GUID IID_IComLTxEvents = GUIDOF!IComLTxEvents;
const GUID IID_IComMethod2Events = GUIDOF!IComMethod2Events;
const GUID IID_IComMethodEvents = GUIDOF!IComMethodEvents;
const GUID IID_IComMtaThreadPoolKnobs = GUIDOF!IComMtaThreadPoolKnobs;
const GUID IID_IComObjectConstruction2Events = GUIDOF!IComObjectConstruction2Events;
const GUID IID_IComObjectConstructionEvents = GUIDOF!IComObjectConstructionEvents;
const GUID IID_IComObjectEvents = GUIDOF!IComObjectEvents;
const GUID IID_IComObjectPool2Events = GUIDOF!IComObjectPool2Events;
const GUID IID_IComObjectPoolEvents = GUIDOF!IComObjectPoolEvents;
const GUID IID_IComObjectPoolEvents2 = GUIDOF!IComObjectPoolEvents2;
const GUID IID_IComQCEvents = GUIDOF!IComQCEvents;
const GUID IID_IComResourceEvents = GUIDOF!IComResourceEvents;
const GUID IID_IComSecurityEvents = GUIDOF!IComSecurityEvents;
const GUID IID_IComStaThreadPoolKnobs = GUIDOF!IComStaThreadPoolKnobs;
const GUID IID_IComStaThreadPoolKnobs2 = GUIDOF!IComStaThreadPoolKnobs2;
const GUID IID_IComThreadEvents = GUIDOF!IComThreadEvents;
const GUID IID_IComTrackingInfoCollection = GUIDOF!IComTrackingInfoCollection;
const GUID IID_IComTrackingInfoEvents = GUIDOF!IComTrackingInfoEvents;
const GUID IID_IComTrackingInfoObject = GUIDOF!IComTrackingInfoObject;
const GUID IID_IComTrackingInfoProperties = GUIDOF!IComTrackingInfoProperties;
const GUID IID_IComTransaction2Events = GUIDOF!IComTransaction2Events;
const GUID IID_IComTransactionEvents = GUIDOF!IComTransactionEvents;
const GUID IID_IComUserEvent = GUIDOF!IComUserEvent;
const GUID IID_IContextProperties = GUIDOF!IContextProperties;
const GUID IID_IContextSecurityPerimeter = GUIDOF!IContextSecurityPerimeter;
const GUID IID_IContextState = GUIDOF!IContextState;
const GUID IID_ICreateWithLocalTransaction = GUIDOF!ICreateWithLocalTransaction;
const GUID IID_ICreateWithTipTransactionEx = GUIDOF!ICreateWithTipTransactionEx;
const GUID IID_ICreateWithTransactionEx = GUIDOF!ICreateWithTransactionEx;
const GUID IID_ICrmCompensator = GUIDOF!ICrmCompensator;
const GUID IID_ICrmCompensatorVariants = GUIDOF!ICrmCompensatorVariants;
const GUID IID_ICrmFormatLogRecords = GUIDOF!ICrmFormatLogRecords;
const GUID IID_ICrmLogControl = GUIDOF!ICrmLogControl;
const GUID IID_ICrmMonitor = GUIDOF!ICrmMonitor;
const GUID IID_ICrmMonitorClerks = GUIDOF!ICrmMonitorClerks;
const GUID IID_ICrmMonitorLogRecords = GUIDOF!ICrmMonitorLogRecords;
const GUID IID_IDispenserDriver = GUIDOF!IDispenserDriver;
const GUID IID_IDispenserManager = GUIDOF!IDispenserManager;
const GUID IID_IDontSupportEventSubscription = GUIDOF!IDontSupportEventSubscription;
const GUID IID_IDtcLuConfigure = GUIDOF!IDtcLuConfigure;
const GUID IID_IDtcLuRecovery = GUIDOF!IDtcLuRecovery;
const GUID IID_IDtcLuRecoveryFactory = GUIDOF!IDtcLuRecoveryFactory;
const GUID IID_IDtcLuRecoveryInitiatedByDtc = GUIDOF!IDtcLuRecoveryInitiatedByDtc;
const GUID IID_IDtcLuRecoveryInitiatedByDtcStatusWork = GUIDOF!IDtcLuRecoveryInitiatedByDtcStatusWork;
const GUID IID_IDtcLuRecoveryInitiatedByDtcTransWork = GUIDOF!IDtcLuRecoveryInitiatedByDtcTransWork;
const GUID IID_IDtcLuRecoveryInitiatedByLu = GUIDOF!IDtcLuRecoveryInitiatedByLu;
const GUID IID_IDtcLuRecoveryInitiatedByLuWork = GUIDOF!IDtcLuRecoveryInitiatedByLuWork;
const GUID IID_IDtcLuRmEnlistment = GUIDOF!IDtcLuRmEnlistment;
const GUID IID_IDtcLuRmEnlistmentFactory = GUIDOF!IDtcLuRmEnlistmentFactory;
const GUID IID_IDtcLuRmEnlistmentSink = GUIDOF!IDtcLuRmEnlistmentSink;
const GUID IID_IDtcLuSubordinateDtc = GUIDOF!IDtcLuSubordinateDtc;
const GUID IID_IDtcLuSubordinateDtcFactory = GUIDOF!IDtcLuSubordinateDtcFactory;
const GUID IID_IDtcLuSubordinateDtcSink = GUIDOF!IDtcLuSubordinateDtcSink;
const GUID IID_IDtcNetworkAccessConfig = GUIDOF!IDtcNetworkAccessConfig;
const GUID IID_IDtcNetworkAccessConfig2 = GUIDOF!IDtcNetworkAccessConfig2;
const GUID IID_IDtcNetworkAccessConfig3 = GUIDOF!IDtcNetworkAccessConfig3;
const GUID IID_IEnumEventObject = GUIDOF!IEnumEventObject;
const GUID IID_IEnumNames = GUIDOF!IEnumNames;
const GUID IID_IEventClass = GUIDOF!IEventClass;
const GUID IID_IEventClass2 = GUIDOF!IEventClass2;
const GUID IID_IEventControl = GUIDOF!IEventControl;
const GUID IID_IEventObjectChange = GUIDOF!IEventObjectChange;
const GUID IID_IEventObjectChange2 = GUIDOF!IEventObjectChange2;
const GUID IID_IEventObjectCollection = GUIDOF!IEventObjectCollection;
const GUID IID_IEventServerTrace = GUIDOF!IEventServerTrace;
const GUID IID_IEventSubscription = GUIDOF!IEventSubscription;
const GUID IID_IEventSystem = GUIDOF!IEventSystem;
const GUID IID_IFiringControl = GUIDOF!IFiringControl;
const GUID IID_IGetAppTrackerData = GUIDOF!IGetAppTrackerData;
const GUID IID_IGetContextProperties = GUIDOF!IGetContextProperties;
const GUID IID_IGetDispenser = GUIDOF!IGetDispenser;
const GUID IID_IGetSecurityCallContext = GUIDOF!IGetSecurityCallContext;
const GUID IID_IHolder = GUIDOF!IHolder;
const GUID IID_IKernelTransaction = GUIDOF!IKernelTransaction;
const GUID IID_ILBEvents = GUIDOF!ILBEvents;
const GUID IID_ILastResourceManager = GUIDOF!ILastResourceManager;
const GUID IID_IMTSActivity = GUIDOF!IMTSActivity;
const GUID IID_IMTSCall = GUIDOF!IMTSCall;
const GUID IID_IMTSLocator = GUIDOF!IMTSLocator;
const GUID IID_IManagedActivationEvents = GUIDOF!IManagedActivationEvents;
const GUID IID_IManagedObjectInfo = GUIDOF!IManagedObjectInfo;
const GUID IID_IManagedPoolAction = GUIDOF!IManagedPoolAction;
const GUID IID_IManagedPooledObj = GUIDOF!IManagedPooledObj;
const GUID IID_IMessageMover = GUIDOF!IMessageMover;
const GUID IID_IMtsEventInfo = GUIDOF!IMtsEventInfo;
const GUID IID_IMtsEvents = GUIDOF!IMtsEvents;
const GUID IID_IMtsGrp = GUIDOF!IMtsGrp;
const GUID IID_IMultiInterfaceEventControl = GUIDOF!IMultiInterfaceEventControl;
const GUID IID_IMultiInterfacePublisherFilter = GUIDOF!IMultiInterfacePublisherFilter;
const GUID IID_IObjPool = GUIDOF!IObjPool;
const GUID IID_IObjectConstruct = GUIDOF!IObjectConstruct;
const GUID IID_IObjectConstructString = GUIDOF!IObjectConstructString;
const GUID IID_IObjectContext = GUIDOF!IObjectContext;
const GUID IID_IObjectContextActivity = GUIDOF!IObjectContextActivity;
const GUID IID_IObjectContextInfo = GUIDOF!IObjectContextInfo;
const GUID IID_IObjectContextInfo2 = GUIDOF!IObjectContextInfo2;
const GUID IID_IObjectContextTip = GUIDOF!IObjectContextTip;
const GUID IID_IObjectControl = GUIDOF!IObjectControl;
const GUID IID_IPlaybackControl = GUIDOF!IPlaybackControl;
const GUID IID_IPoolManager = GUIDOF!IPoolManager;
const GUID IID_IPrepareInfo = GUIDOF!IPrepareInfo;
const GUID IID_IPrepareInfo2 = GUIDOF!IPrepareInfo2;
const GUID IID_IProcessInitializer = GUIDOF!IProcessInitializer;
const GUID IID_IPublisherFilter = GUIDOF!IPublisherFilter;
const GUID IID_IRMHelper = GUIDOF!IRMHelper;
const GUID IID_IResourceManager = GUIDOF!IResourceManager;
const GUID IID_IResourceManager2 = GUIDOF!IResourceManager2;
const GUID IID_IResourceManagerFactory = GUIDOF!IResourceManagerFactory;
const GUID IID_IResourceManagerFactory2 = GUIDOF!IResourceManagerFactory2;
const GUID IID_IResourceManagerRejoinable = GUIDOF!IResourceManagerRejoinable;
const GUID IID_IResourceManagerSink = GUIDOF!IResourceManagerSink;
const GUID IID_ISecurityCallContext = GUIDOF!ISecurityCallContext;
const GUID IID_ISecurityCallersColl = GUIDOF!ISecurityCallersColl;
const GUID IID_ISecurityIdentityColl = GUIDOF!ISecurityIdentityColl;
const GUID IID_ISecurityProperty = GUIDOF!ISecurityProperty;
const GUID IID_ISelectCOMLBServer = GUIDOF!ISelectCOMLBServer;
const GUID IID_ISendMethodEvents = GUIDOF!ISendMethodEvents;
const GUID IID_IServiceActivity = GUIDOF!IServiceActivity;
const GUID IID_IServiceCall = GUIDOF!IServiceCall;
const GUID IID_IServiceComTIIntrinsicsConfig = GUIDOF!IServiceComTIIntrinsicsConfig;
const GUID IID_IServiceIISIntrinsicsConfig = GUIDOF!IServiceIISIntrinsicsConfig;
const GUID IID_IServiceInheritanceConfig = GUIDOF!IServiceInheritanceConfig;
const GUID IID_IServicePartitionConfig = GUIDOF!IServicePartitionConfig;
const GUID IID_IServicePool = GUIDOF!IServicePool;
const GUID IID_IServicePoolConfig = GUIDOF!IServicePoolConfig;
const GUID IID_IServiceSxsConfig = GUIDOF!IServiceSxsConfig;
const GUID IID_IServiceSynchronizationConfig = GUIDOF!IServiceSynchronizationConfig;
const GUID IID_IServiceSysTxnConfig = GUIDOF!IServiceSysTxnConfig;
const GUID IID_IServiceThreadPoolConfig = GUIDOF!IServiceThreadPoolConfig;
const GUID IID_IServiceTrackerConfig = GUIDOF!IServiceTrackerConfig;
const GUID IID_IServiceTransactionConfig = GUIDOF!IServiceTransactionConfig;
const GUID IID_IServiceTransactionConfigBase = GUIDOF!IServiceTransactionConfigBase;
const GUID IID_ISharedProperty = GUIDOF!ISharedProperty;
const GUID IID_ISharedPropertyGroup = GUIDOF!ISharedPropertyGroup;
const GUID IID_ISharedPropertyGroupManager = GUIDOF!ISharedPropertyGroupManager;
const GUID IID_ISystemAppEventData = GUIDOF!ISystemAppEventData;
const GUID IID_IThreadPoolKnobs = GUIDOF!IThreadPoolKnobs;
const GUID IID_ITipHelper = GUIDOF!ITipHelper;
const GUID IID_ITipPullSink = GUIDOF!ITipPullSink;
const GUID IID_ITipTransaction = GUIDOF!ITipTransaction;
const GUID IID_ITmNodeName = GUIDOF!ITmNodeName;
const GUID IID_ITransaction = GUIDOF!ITransaction;
const GUID IID_ITransaction2 = GUIDOF!ITransaction2;
const GUID IID_ITransactionCloner = GUIDOF!ITransactionCloner;
const GUID IID_ITransactionContext = GUIDOF!ITransactionContext;
const GUID IID_ITransactionContextEx = GUIDOF!ITransactionContextEx;
const GUID IID_ITransactionDispenser = GUIDOF!ITransactionDispenser;
const GUID IID_ITransactionEnlistmentAsync = GUIDOF!ITransactionEnlistmentAsync;
const GUID IID_ITransactionExport = GUIDOF!ITransactionExport;
const GUID IID_ITransactionExportFactory = GUIDOF!ITransactionExportFactory;
const GUID IID_ITransactionImport = GUIDOF!ITransactionImport;
const GUID IID_ITransactionImportWhereabouts = GUIDOF!ITransactionImportWhereabouts;
const GUID IID_ITransactionLastEnlistmentAsync = GUIDOF!ITransactionLastEnlistmentAsync;
const GUID IID_ITransactionLastResourceAsync = GUIDOF!ITransactionLastResourceAsync;
const GUID IID_ITransactionOptions = GUIDOF!ITransactionOptions;
const GUID IID_ITransactionOutcomeEvents = GUIDOF!ITransactionOutcomeEvents;
const GUID IID_ITransactionPhase0EnlistmentAsync = GUIDOF!ITransactionPhase0EnlistmentAsync;
const GUID IID_ITransactionPhase0Factory = GUIDOF!ITransactionPhase0Factory;
const GUID IID_ITransactionPhase0NotifyAsync = GUIDOF!ITransactionPhase0NotifyAsync;
const GUID IID_ITransactionProperty = GUIDOF!ITransactionProperty;
const GUID IID_ITransactionProxy = GUIDOF!ITransactionProxy;
const GUID IID_ITransactionReceiver = GUIDOF!ITransactionReceiver;
const GUID IID_ITransactionReceiverFactory = GUIDOF!ITransactionReceiverFactory;
const GUID IID_ITransactionResource = GUIDOF!ITransactionResource;
const GUID IID_ITransactionResourceAsync = GUIDOF!ITransactionResourceAsync;
const GUID IID_ITransactionResourcePool = GUIDOF!ITransactionResourcePool;
const GUID IID_ITransactionStatus = GUIDOF!ITransactionStatus;
const GUID IID_ITransactionTransmitter = GUIDOF!ITransactionTransmitter;
const GUID IID_ITransactionTransmitterFactory = GUIDOF!ITransactionTransmitterFactory;
const GUID IID_ITransactionVoterBallotAsync2 = GUIDOF!ITransactionVoterBallotAsync2;
const GUID IID_ITransactionVoterFactory2 = GUIDOF!ITransactionVoterFactory2;
const GUID IID_ITransactionVoterNotifyAsync2 = GUIDOF!ITransactionVoterNotifyAsync2;
const GUID IID_ITxProxyHolder = GUIDOF!ITxProxyHolder;
const GUID IID_IXAConfig = GUIDOF!IXAConfig;
const GUID IID_IXAObtainRMInfo = GUIDOF!IXAObtainRMInfo;
const GUID IID_IXATransLookup = GUIDOF!IXATransLookup;
const GUID IID_IXATransLookup2 = GUIDOF!IXATransLookup2;
const GUID IID_ObjectContext = GUIDOF!ObjectContext;
const GUID IID_ObjectControl = GUIDOF!ObjectControl;
const GUID IID_SecurityProperty = GUIDOF!SecurityProperty;
| D |
module main;
import core.runtime;
import core.sys.windows.windows;
import std.stdio;
import fuji.fuji;
import fuji.system;
import game;
version (Windows)
{
extern (Windows)
int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
int result;
void exceptionHandler(Throwable e) { throw e; }
try
{
Runtime.initialize(&exceptionHandler);
MFInitParams initParams;
initParams.hInstance = hInstance;
initParams.pCommandLine = lpCmdLine;
result = GameMain(initParams);
Runtime.terminate(&exceptionHandler);
} catch (Throwable o) { result = 0; }
return result;
}
}
else
{
int main(string[] argv)
{
int result;
void exceptionHandler(Throwable e) { throw e; }
try
{
Runtime.initialize(&exceptionHandler);
MFInitParams initParams;
result = GameMain(initParams);
Runtime.terminate(&exceptionHandler);
} catch (Throwable o) { result = 0; }
return result;
}
}
| D |
/**
*
* THIS FILE IS AUTO-GENERATED BY ./parse_specs.d FOR MCU atmega324a WITH ARCHITECTURE avr5
*
*/
module avr.specs.specs_atmega324a;
enum __AVR_ARCH__ = 5;
enum __AVR_ASM_ONLY__ = false;
enum __AVR_ENHANCED__ = true;
enum __AVR_HAVE_MUL__ = true;
enum __AVR_HAVE_JMP_CALL__ = true;
enum __AVR_MEGA__ = true;
enum __AVR_HAVE_LPMX__ = true;
enum __AVR_HAVE_MOVW__ = true;
enum __AVR_HAVE_ELPM__ = false;
enum __AVR_HAVE_ELPMX__ = false;
enum __AVR_HAVE_EIJMP_EICALL_ = false;
enum __AVR_2_BYTE_PC__ = true;
enum __AVR_3_BYTE_PC__ = false;
enum __AVR_XMEGA__ = false;
enum __AVR_HAVE_RAMPX__ = false;
enum __AVR_HAVE_RAMPY__ = false;
enum __AVR_HAVE_RAMPZ__ = false;
enum __AVR_HAVE_RAMPD__ = false;
enum __AVR_TINY__ = false;
enum __AVR_PM_BASE_ADDRESS__ = 0;
enum __AVR_SFR_OFFSET__ = 32;
enum __AVR_DEVICE_NAME__ = "atmega324a";
| D |
module strings_solution_2;
import std.stdio;
import std.string;
void main() {
write("Please enter a line: ");
string line = chomp(readln());
ptrdiff_t first_e = indexOf(line, 'e');
if (first_e == -1) {
writeln("There is no letter e in this line.");
} else {
ptrdiff_t last_e = lastIndexOf(line, 'e');
writeln(line[first_e .. last_e + 1]);
}
}
| D |
/Users/a18968/Develop/RxSwiftSampler/DerivedData/RxSwiftSampler/Build/Intermediates/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/Timer.o : /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/AddRef.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Amb.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/Internal/AnonymousInvocable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/AnonymousObservable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Buffer.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Cancelable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Catch.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/CombineLatest+arity.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/CombineLatest+Collection.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/CombineLatest.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Concat.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/ConnectableObservable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Debug.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Debunce.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Deferred.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Delay.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/DelaySubscription.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/DistinctUntilChanged.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Do.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/ElementAt.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Empty.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Error.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Errors.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Event.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Filter.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Generate.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/ImmediateScheduler.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Just.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Map.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Merge.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Multicast.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Never.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Observable+Aggregate.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Observable+Binding.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Observable+Concurrency.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Observable+Creation.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Observable+Debug.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Observable+Multiple.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Observable+Single.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Observable+StandardSequenceOperators.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Observable+Time.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/ObservableType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/ObserveOn.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/ObserveOnSerialDispatchQueue.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/ObserverType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/Platform/Platform.Linux.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Producer.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Range.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Reactive.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Reduce.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/RefCount.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Repeat.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/RetryWhen.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Rx.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Sample.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Scan.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Sequence.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/ShareReplay1.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/ShareReplay1WhileConnected.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/SingleAsync.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Sink.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Skip.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/SkipUntil.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/SkipWhile.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/StartWith.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/SubscribeOn.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Switch.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Concurrency/SynchronizedSubscribeType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Take.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/TakeLast.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/TakeUntil.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/TakeWhile.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Throttle.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Timeout.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Timer.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/ToArray.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Using.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Subjects/Variable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Window.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/WithLatestFrom.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Zip+arity.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Zip+Collection.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Zip.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/a18968/Develop/RxSwiftSampler/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/a18968/Develop/RxSwiftSampler/DerivedData/RxSwiftSampler/Build/Intermediates/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule
/Users/a18968/Develop/RxSwiftSampler/DerivedData/RxSwiftSampler/Build/Intermediates/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/Timer~partial.swiftmodule : /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/AddRef.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Amb.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/Internal/AnonymousInvocable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/AnonymousObservable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Buffer.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Cancelable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Catch.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/CombineLatest+arity.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/CombineLatest+Collection.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/CombineLatest.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Concat.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/ConnectableObservable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Debug.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Debunce.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Deferred.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Delay.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/DelaySubscription.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/DistinctUntilChanged.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Do.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/ElementAt.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Empty.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Error.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Errors.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Event.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Filter.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Generate.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/ImmediateScheduler.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Just.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Map.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Merge.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Multicast.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Never.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Observable+Aggregate.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Observable+Binding.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Observable+Concurrency.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Observable+Creation.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Observable+Debug.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Observable+Multiple.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Observable+Single.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Observable+StandardSequenceOperators.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Observable+Time.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/ObservableType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/ObserveOn.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/ObserveOnSerialDispatchQueue.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/ObserverType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/Platform/Platform.Linux.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Producer.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Range.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Reactive.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Reduce.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/RefCount.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Repeat.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/RetryWhen.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Rx.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Sample.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Scan.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Sequence.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/ShareReplay1.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/ShareReplay1WhileConnected.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/SingleAsync.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Sink.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Skip.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/SkipUntil.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/SkipWhile.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/StartWith.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/SubscribeOn.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Switch.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Concurrency/SynchronizedSubscribeType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Take.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/TakeLast.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/TakeUntil.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/TakeWhile.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Throttle.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Timeout.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Timer.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/ToArray.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Using.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Subjects/Variable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Window.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/WithLatestFrom.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Zip+arity.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Zip+Collection.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Zip.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/a18968/Develop/RxSwiftSampler/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/a18968/Develop/RxSwiftSampler/DerivedData/RxSwiftSampler/Build/Intermediates/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule
/Users/a18968/Develop/RxSwiftSampler/DerivedData/RxSwiftSampler/Build/Intermediates/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/Timer~partial.swiftdoc : /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/AddRef.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Amb.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/Internal/AnonymousInvocable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/AnonymousObservable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Buffer.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Cancelable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Catch.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/CombineLatest+arity.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/CombineLatest+Collection.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/CombineLatest.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Concat.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/ConnectableObservable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Debug.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Debunce.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Deferred.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Delay.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/DelaySubscription.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/DistinctUntilChanged.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Do.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/ElementAt.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Empty.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Error.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Errors.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Event.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Filter.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Generate.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/ImmediateScheduler.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Just.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Map.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Merge.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Multicast.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Never.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Observable+Aggregate.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Observable+Binding.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Observable+Concurrency.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Observable+Creation.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Observable+Debug.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Observable+Multiple.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Observable+Single.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Observable+StandardSequenceOperators.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Observable+Time.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/ObservableType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/ObserveOn.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/ObserveOnSerialDispatchQueue.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/ObserverType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/Platform/Platform.Linux.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Producer.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Range.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Reactive.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Reduce.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/RefCount.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Repeat.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/RetryWhen.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Rx.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Sample.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Scan.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Sequence.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/ShareReplay1.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/ShareReplay1WhileConnected.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/SingleAsync.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Sink.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Skip.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/SkipUntil.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/SkipWhile.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/StartWith.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/SubscribeOn.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Switch.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Concurrency/SynchronizedSubscribeType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Take.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/TakeLast.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/TakeUntil.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/TakeWhile.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Throttle.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Timeout.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Timer.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/ToArray.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Using.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Subjects/Variable.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Window.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/WithLatestFrom.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Zip+arity.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Zip+Collection.swift /Users/a18968/Develop/RxSwiftSampler/Pods/RxSwift/RxSwift/Observables/Implementations/Zip.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/a18968/Develop/RxSwiftSampler/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/a18968/Develop/RxSwiftSampler/DerivedData/RxSwiftSampler/Build/Intermediates/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule
| D |
/Users/julia/ruhackathon/target/rls/debug/deps/pkg_config-990b8f7b5814b269.rmeta: /Users/julia/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.19/src/lib.rs
/Users/julia/ruhackathon/target/rls/debug/deps/libpkg_config-990b8f7b5814b269.rlib: /Users/julia/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.19/src/lib.rs
/Users/julia/ruhackathon/target/rls/debug/deps/pkg_config-990b8f7b5814b269.d: /Users/julia/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.19/src/lib.rs
/Users/julia/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.19/src/lib.rs:
| D |
module org.eclipse.swt.internal.mozilla.nsIInputStream;
import org.eclipse.swt.internal.mozilla.Common;
import org.eclipse.swt.internal.mozilla.nsID;
import org.eclipse.swt.internal.mozilla.nsISupports;
alias nsWriteSegmentFun = nsresult function(nsIInputStream aInStream,
void *aClosure,
byte *aFromSegment,
PRUint32 aToOffset,
PRUint32 aCount,
PRUint32 *aWriteCount);
const char[] NS_IINPUTSTREAM_IID_STR = "fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a";
const nsIID NS_IINPUTSTREAM_IID = {0xfa9c7f6c, 0x61b3, 0x11d4, [ 0x98, 0x77, 0x00, 0xc0, 0x4f, 0xa0, 0xcf, 0x4a ]};
interface nsIInputStream : nsISupports {
static const char[] IID_STR = NS_IINPUTSTREAM_IID_STR;
static const nsIID IID = NS_IINPUTSTREAM_IID;
extern(System):
nsresult Close();
nsresult Available(PRUint32 *_retval);
nsresult Read(byte * aBuf, PRUint32 aCount, PRUint32 *_retval);
nsresult ReadSegments(nsWriteSegmentFun aWriter, void * aClosure, PRUint32 aCount, PRUint32 *_retval);
nsresult IsNonBlocking(PRBool *_retval);
}
| D |
// Written in the D programming language.
/**
This module provides logging utilities.
Use Log class static methods.
Synopsis:
----
import dlangui.core.logger;
// setup:
// use stderror for logging
setStderrLogger();
// set log level
setLogLevel(LogLevel.Debug);
// usage:
// log debug message
Log.d("mouse clicked at ", x, ",", y);
// or with format string:
Log.fd("mouse clicked at %d,%d", x, y);
// log error message
Log.e("exception while reading file", e);
----
For Android, set log tag instead of setXXXLogger:
----
Log.setLogTag("myApp");
----
Copyright: Vadim Lopatin, 2014
License: Boost License 1.0
Authors: Vadim Lopatin, [email protected]
*/
module dlangui.core.logger;
import std.stdio;
import std.datetime : SysTime, Clock;
import core.sync.mutex;
version (Android) {
import android.log;
}
/// Log levels
enum LogLevel : int {
/// Fatal error, cannot resume
Fatal,
/// Error
Error,
/// Warning
Warn,
/// Informational message
Info,
/// Debug message
Debug,
/// Tracing message
Trace
}
/// Returns timestamp in milliseconds since 1970 UTC similar to Java System.currentTimeMillis()
@property long currentTimeMillis() {
static import std.datetime;
return std.datetime.Clock.currStdTime / 10000;
}
/**
Logging utilities
Setup example:
----
// use stderror for logging
setStderrLogger();
// set log level
setLogLevel(LogLeve.Debug);
----
Logging example:
----
// log debug message
Log.d("mouse clicked at ", x, ",", y);
// log error message
Log.e("exception while reading file", e);
----
*/
class Log {
static __gshared private LogLevel logLevel = LogLevel.Info;
static __gshared private std.stdio.File * logFile = null;
static __gshared private Mutex _mutex = null;
static public @property Mutex mutex() {
if (_mutex is null)
_mutex = new Mutex();
return _mutex;
}
/// Redirects output to stdout
static public void setStdoutLogger() {
synchronized(mutex) {
logFile = &stdout;
}
}
/// Redirects output to stderr
static public void setStderrLogger() {
synchronized(mutex) {
logFile = &stderr;
}
}
/// Redirects output to file
static public void setFileLogger(File * file) {
synchronized(mutex) {
if (logFile !is null && logFile != &stdout && logFile != &stderr) {
logFile.close();
destroy(logFile);
logFile = null;
}
logFile = file;
if (logFile !is null)
logFile.writeln("DlangUI log file");
}
}
/// Sets log level (one of LogLevel)
static public void setLogLevel(LogLevel level) {
synchronized(mutex) {
logLevel = level;
i("Log level changed to ", level);
}
}
/// returns true if messages for level are enabled
static public bool isLogLevelEnabled(LogLevel level) {
return logLevel >= level;
}
/// returns true if debug log level is enabled
@property static public bool debugEnabled() {
return logLevel >= LogLevel.Debug;
}
/// returns true if trace log level is enabled
@property static public bool traceEnabled() {
return logLevel >= LogLevel.Trace;
}
/// returns true if warn log level is enabled
@property static public bool warnEnabled() {
return logLevel >= LogLevel.Warn;
}
/// Log level to name helper function
static public string logLevelName(LogLevel level) {
switch (level) with(LogLevel)
{
case Fatal: return "F";
case Error: return "E";
case Warn: return "W";
case Info: return "I";
case Debug: return "D";
case Trace: return "V";
default: return "?";
}
}
version (Android) {
static android_LogPriority toAndroidLogPriority(LogLevel level) {
switch (level) with (LogLevel) {
/// Fatal error, cannot resume
case Fatal:
return android_LogPriority.ANDROID_LOG_FATAL;
/// Error
case Error:
return android_LogPriority.ANDROID_LOG_ERROR;
/// Warning
case Warn:
return android_LogPriority.ANDROID_LOG_WARN;
/// Informational message
case Info:
return android_LogPriority.ANDROID_LOG_INFO;
/// Debug message
case Debug:
return android_LogPriority.ANDROID_LOG_DEBUG;
/// Tracing message
case Trace:
default:
return android_LogPriority.ANDROID_LOG_VERBOSE;
}
}
}
/// Log message with arbitrary log level
static public void log(S...)(LogLevel level, S args) {
if (logLevel >= level) {
version (Android) {
import std.format;
import std.string : toStringz;
import std.format;
import std.conv : to;
char[] msg;
foreach(arg; args) {
msg ~= to!string(arg);
}
msg ~= cast(char)0;
__android_log_write(toAndroidLogPriority(level), ANDROID_LOG_TAG, msg.ptr);
} else {
if (logFile !is null && logFile.isOpen) {
SysTime ts = Clock.currTime();
logFile.writef("%04d-%02d-%02d %02d:%02d:%02d.%03d %s ", ts.year, ts.month, ts.day, ts.hour, ts.minute, ts.second, ts.fracSecs.split!("msecs").msecs, logLevelName(level));
logFile.writeln(args);
logFile.flush();
}
}
}
}
/// Log message with arbitrary log level with format string
static public void logf(S...)(LogLevel level, string fmt, S args) {
if (logLevel >= level) {
version (Android) {
import std.string : toStringz;
import std.format;
string msg = fmt.format(args);
__android_log_write(toAndroidLogPriority(level), ANDROID_LOG_TAG, msg.toStringz);
} else {
if (logFile !is null && logFile.isOpen) {
SysTime ts = Clock.currTime();
logFile.writef("%04d-%02d-%02d %02d:%02d:%02d.%03d %s ", ts.year, ts.month, ts.day, ts.hour, ts.minute, ts.second, ts.fracSecs.split!("msecs").msecs, logLevelName(level));
logFile.writefln(fmt, args);
logFile.flush();
}
}
}
}
/// Log verbose / trace message
static public void v(S...)(S args) {
synchronized(mutex) {
if (logLevel >= LogLevel.Trace)
log(LogLevel.Trace, args);
}
}
/// Log verbose / trace message with format string
static public void fv(S...)(S args) {
synchronized(mutex) {
if (logLevel >= LogLevel.Trace)
logf(LogLevel.Trace, args);
}
}
/// Log debug message
static public void d(S...)(S args) {
synchronized(mutex) {
if (logLevel >= LogLevel.Debug)
log(LogLevel.Debug, args);
}
}
/// Log debug message with format string
static public void fd(S...)(S args) {
synchronized(mutex) {
if (logLevel >= LogLevel.Debug)
logf(LogLevel.Debug, args);
}
}
/// Log info message
static public void i(S...)(S args) {
synchronized(mutex) {
if (logLevel >= LogLevel.Info)
log(LogLevel.Info, args);
}
}
/// Log info message
static public void fi(S...)(S args) {
synchronized(mutex) {
if (logLevel >= LogLevel.Info)
logf(LogLevel.Info, args);
}
}
/// Log warn message
static public void w(S...)(S args) {
synchronized(mutex) {
if (logLevel >= LogLevel.Warn)
log(LogLevel.Warn, args);
}
}
/// Log warn message
static public void fw(S...)(S args) {
synchronized(mutex) {
if (logLevel >= LogLevel.Warn)
logf(LogLevel.Warn, args);
}
}
/// Log error message
static public void e(S...)(S args) {
synchronized(mutex) {
if (logLevel >= LogLevel.Error)
log(LogLevel.Error, args);
}
}
/// Log error message
static public void fe(S...)(S args) {
synchronized(mutex) {
if (logLevel >= LogLevel.Error)
logf(LogLevel.Error, args);
}
}
/// Log fatal error message
static public void f(S...)(S args) {
synchronized(mutex) {
if (logLevel >= LogLevel.Fatal)
log(LogLevel.Fatal, args);
}
}
/// Log fatal error message
static public void ff(S...)(S args) {
synchronized(mutex) {
if (logLevel >= LogLevel.Fatal)
logf(LogLevel.Fatal, args);
}
}
version (Android) {
static public void setLogTag(const char * tag) {
ANDROID_LOG_TAG = tag;
}
}
}
debug {
private static __gshared bool _appShuttingDown = false;
@property bool appShuttingDown() { return _appShuttingDown; }
/// for debug purposes - sets shutdown flag to log widgets not destroyed in time.
void setAppShuttingDownFlag() {
_appShuttingDown = true;
}
}
void onResourceDestroyWhileShutdown(string resourceName, string objname = null) {
Log.e("Resource leak: destroying resource while shutdown! ", resourceName, " ", objname);
}
| D |
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric;
void main()
{
auto N = readln.chomp.to!long;
int r;
foreach (a; 0..5) {
foreach (b; 0..2) {
foreach (c; 0..5) {
foreach (d; 0..2) {
if (N - (a+b+c+d) >= 0) ++r;
}
}
}
}
writeln(r);
} | D |
/Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Vapor.build/JSON/HTTP/Response+JSON.swift.o : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+JSON.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+JSON.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Body+JSON.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSON.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+FormData.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewData.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/FormData+Polymorphic.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/StructuredData+FormURLEncoded.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/Request+FormURLEncoded.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Command.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Log+Convenience.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringCharacterSequence.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Resource.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/HTTP+Node.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/AcceptLanguage.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cache/Config+Cache.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+Codable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+Codable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Configurable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSONRepresentable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringInitializable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/RequestInitializable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Console.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Vapor+Console.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/MediaType.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Config+Middleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSMiddleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileMiddleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Date/DateMiddleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorMiddleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/File+Response.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Resolve.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Serve.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/DumpConfig.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Config+ServerConfig.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/ServerConfig.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoEncoding.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Chaining.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Droplet+Routing.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Config+Log.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RoutesLog.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Config+Hash.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogLevel.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Config+Mail.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mail.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/ProviderInstall.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/HashProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CipherProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactoryProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientFactoryProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Int+Random.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Version.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSConfiguration.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RouteCollection.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Subscription.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Run.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mailgun.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Config+Provider.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Responder.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileManager.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/ConsoleLogger.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/Config+Cipher.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoCipher.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/CryptoHasher.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/BCryptHasher.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/StaticViewRenderer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/EngineServer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/SecurityLayer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/AbortError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider+Resources.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Directories.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Bytes.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/InitProtocols.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Config+Sessions.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Responder+Helpers.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSockets/WebSockets.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Exports.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/EngineClient.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/FoundationClient.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Response+Content.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Request+Content.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Content.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Event.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/Accept.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+Multipart.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/Abort.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer+Request.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/Config+View.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/View.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorView.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/Config+ServerFactory.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactory.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Config+ClientFactory.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientFactory.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/URI.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/JSON.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/SMTP.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/HTTP.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/TLS.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/FormData.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Node.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Cache.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/PathIndexable.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Console.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Routing.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Branches.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Cookies.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Configs.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Sessions.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Sockets.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/WebSockets.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/BCrypt.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Multipart.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Transport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/CHTTP/include/http_parser.h /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/ctls.git-9210868160426949823/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CSQLite.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes
/Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Vapor.build/Response+JSON~partial.swiftmodule : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+JSON.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+JSON.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Body+JSON.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSON.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+FormData.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewData.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/FormData+Polymorphic.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/StructuredData+FormURLEncoded.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/Request+FormURLEncoded.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Command.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Log+Convenience.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringCharacterSequence.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Resource.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/HTTP+Node.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/AcceptLanguage.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cache/Config+Cache.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+Codable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+Codable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Configurable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSONRepresentable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringInitializable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/RequestInitializable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Console.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Vapor+Console.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/MediaType.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Config+Middleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSMiddleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileMiddleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Date/DateMiddleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorMiddleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/File+Response.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Resolve.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Serve.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/DumpConfig.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Config+ServerConfig.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/ServerConfig.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoEncoding.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Chaining.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Droplet+Routing.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Config+Log.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RoutesLog.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Config+Hash.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogLevel.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Config+Mail.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mail.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/ProviderInstall.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/HashProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CipherProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactoryProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientFactoryProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Int+Random.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Version.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSConfiguration.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RouteCollection.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Subscription.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Run.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mailgun.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Config+Provider.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Responder.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileManager.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/ConsoleLogger.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/Config+Cipher.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoCipher.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/CryptoHasher.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/BCryptHasher.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/StaticViewRenderer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/EngineServer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/SecurityLayer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/AbortError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider+Resources.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Directories.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Bytes.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/InitProtocols.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Config+Sessions.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Responder+Helpers.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSockets/WebSockets.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Exports.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/EngineClient.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/FoundationClient.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Response+Content.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Request+Content.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Content.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Event.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/Accept.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+Multipart.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/Abort.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer+Request.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/Config+View.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/View.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorView.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/Config+ServerFactory.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactory.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Config+ClientFactory.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientFactory.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/URI.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/JSON.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/SMTP.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/HTTP.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/TLS.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/FormData.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Node.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Cache.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/PathIndexable.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Console.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Routing.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Branches.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Cookies.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Configs.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Sessions.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Sockets.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/WebSockets.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/BCrypt.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Multipart.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Transport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/CHTTP/include/http_parser.h /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/ctls.git-9210868160426949823/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CSQLite.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes
/Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Vapor.build/Response+JSON~partial.swiftdoc : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+JSON.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+JSON.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Body+JSON.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSON.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+FormData.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewData.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/FormData+Polymorphic.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/StructuredData+FormURLEncoded.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/Request+FormURLEncoded.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Command.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Log+Convenience.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringCharacterSequence.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Resource.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/HTTP+Node.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/AcceptLanguage.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cache/Config+Cache.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+Codable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+Codable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Configurable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSONRepresentable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringInitializable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/RequestInitializable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Console.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Vapor+Console.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/MediaType.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Config+Middleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSMiddleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileMiddleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Date/DateMiddleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorMiddleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/File+Response.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Resolve.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Serve.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/DumpConfig.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Config+ServerConfig.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/ServerConfig.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoEncoding.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Chaining.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Droplet+Routing.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Config+Log.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RoutesLog.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Config+Hash.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogLevel.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Config+Mail.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mail.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/ProviderInstall.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/HashProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CipherProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactoryProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientFactoryProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Int+Random.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Version.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSConfiguration.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RouteCollection.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Subscription.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Run.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mailgun.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Config+Provider.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Responder.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileManager.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/ConsoleLogger.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/Config+Cipher.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoCipher.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/CryptoHasher.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/BCryptHasher.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/StaticViewRenderer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/EngineServer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/SecurityLayer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/AbortError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider+Resources.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Directories.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Bytes.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/InitProtocols.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Config+Sessions.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Responder+Helpers.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSockets/WebSockets.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Exports.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/EngineClient.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/FoundationClient.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Response+Content.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Request+Content.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Content.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Event.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/Accept.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+Multipart.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/Abort.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer+Request.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/Config+View.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/View.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorView.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/Config+ServerFactory.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactory.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Config+ClientFactory.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientFactory.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/URI.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/JSON.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/SMTP.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/HTTP.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/TLS.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/FormData.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Node.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Cache.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/PathIndexable.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Console.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Routing.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Branches.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Cookies.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Configs.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Sessions.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Sockets.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/WebSockets.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/BCrypt.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Multipart.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Transport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/CHTTP/include/http_parser.h /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/ctls.git-9210868160426949823/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CSQLite.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes
| D |
module taxforms.framework.formregistration;
import scriptlike.std;
import scriptlike.interact;
import taxforms.framework.formdocument;
private Tuple!(SheetInfo, DocumentEntries function())[string] sheet;
private DocumentData[string] documentData;
void initDocument(alias fill)(string formalName, Year taxYear, Reviewers humanEyes) {
assert(formalName !in sheet, "Can't have two tax documents:\n"~formalName);
sheet[formalName] = tuple(SheetInfo(formalName, humanEyes, taxYear), &fill);
}
auto registeredForms() {
return sheet.byKey();
}
auto form(string formName)() {
Sheet!formName s;
return s;
}
DocumentData requestForm(string formName) {
if(auto psheet = formName in sheet) {
auto sheet = *psheet;
auto data = DocumentData(sheet[0], sheet[1]());
documentData[formName] = data;
return data;
}
return DocumentData(SheetInfo(formName, Reviewers(0), Year(1971)),
DocumentEntries(0));
}
auto display(DocumentData data) {
writeln();
writeln(data.info.sheetTaxYear, " ", data.info.formalName);
writeln("Human Reviewers: ", data.info.humanReviewCount.value);
writeln();
foreach(lineNum, lineValue; data.entry[]) {
if(lineValue.isNull) {
writeln("Line %3s".format(lineNum+1), ": ", "undefined");
continue;
}
if(lineValue.peek!(int[]))
foreach(subi, subline; lineValue.get.get!(int[]))
writeln("Line %3s".format(to!string(lineNum+1) ~ to!char(subi+'a')), ": ", subline.formatNum);
else
writeln("Line %3s".format(lineNum+1), ": ", lineValue.get.get!int.formatNum);
}
}
struct Sheet(string formName) {
int opIndex(Line num) {
auto sheet = formName in documentData;
if(!sheet) {
import std.conv;
auto lineNum = num.value.to!string;
if(num.sub != char.init)
lineNum ~= num.sub;
return userInput!int("Enter the amount from\n%s\nline %s:"
.format(formName, lineNum));
}
return sheet.entry[num];
}
}
| D |
module it.cpp.class_;
import it;
@("POD struct")
@safe unittest {
shouldCompile(
Cpp(
q{
struct Foo { int i; double d; };
}
),
D(
q{
auto f = Foo(42, 33.3);
static assert(is(Foo == struct), "Foo should be a struct");
f.i = 7;
f.d = 3.14;
}
),
);
}
@("POD struct private then public")
@safe unittest {
shouldCompile(
Cpp(
q{
struct Foo {
private:
int i;
public:
double d;
};
}
),
D(
q{
auto f = Foo(42, 33.3);
static assert(is(Foo == struct), "Foo should be a struct");
static assert(__traits(getProtection, f.i) == "private");
static assert(__traits(getProtection, f.d) == "public");
f.d = 22.2;
}
),
);
}
@("POD class")
@safe unittest {
shouldCompile(
Cpp(
q{
class Foo { int i; double d; };
}
),
D(
q{
auto f = Foo(42, 33.3);
static assert(is(Foo == struct), "Foo should be a struct");
static assert(__traits(getProtection, f.i) == "private");
static assert(__traits(getProtection, f.d) == "private");
}
),
);
}
@("POD class public then private")
@safe unittest {
shouldCompile(
Cpp(
q{
class Foo {
public:
int i;
private:
double d;
};
}
),
D(
q{
auto f = Foo(42, 33.3);
static assert(is(Foo == struct), "Foo should be a struct");
static assert(__traits(getProtection, f.i) == "public");
static assert(__traits(getProtection, f.d) == "private");
f.i = 7; // public, ok
}
),
);
}
@("struct method")
@safe unittest {
shouldCompile(
Cpp(
q{
struct Adder {
int add(int i, int j);
};
}
),
D(
q{
static assert(is(Adder == struct), "Adder should be a struct");
auto adder = Adder();
int i = adder.add(2, 3);
}
),
);
}
@("ctor")
@safe unittest {
shouldCompile(
Cpp(
q{
struct Adder {
int i;
Adder(int i, int j);
int add(int j);
};
}
),
D(
q{
static assert(is(Adder == struct), "Adder should be a struct");
auto adder = Adder(1, 2);
int i = adder.add(4);
}
),
);
}
@("const method")
@safe unittest {
shouldCompile(
Cpp(
q{
struct Adder {
int i;
Adder(int i, int j);
int add(int j) const;
};
}
),
D(
q{
static assert(is(Adder == struct), "Adder should be a struct");
auto adder = const Adder(1, 2);
int i = adder.add(4);
}
),
);
}
@("template")
@safe unittest {
shouldCompile(
Cpp(
q{
template<typename T>
struct vector {
public:
T value;
void push_back();
};
template<typename U, int length>
struct array {
public:
U elements[length];
};
}
),
D(
q{
auto vi = vector!int(42);
static assert(is(typeof(vi.value) == int));
vi.value = 33;
auto vf = vector!float(33.3);
static assert(is(typeof(vf.value) == float));
vf.value = 22.2;
auto vs = vector!string("foo");
static assert(is(typeof(vs.value) == string));
vs.value = "bar";
auto ai = array!(int, 3)();
static assert(ai.elements.length == 3);
static assert(is(typeof(ai.elements[0]) == int));
}
),
);
}
| D |
/++
A thin wrapper around common system webviews.
Based on: https://github.com/zserge/webview
Work in progress. DO NOT USE YET as I am prolly gonna break everything.
+/
module arsd.webview;
/* Original https://github.com/zserge/webview notice below:
* MIT License
*
* Copyright (c) 2017 Serge Zaitsev
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
/*
Port to D by Adam D. Ruppe, November 30, 2019
*/
version(cef) {
import arsd.simpledisplay;
void main() {
auto window = new SimpleWindow;
window.eventLoop(0);
}
} else {
version(Windows)
version=WEBVIEW_EDGE;
else version(linux)
version=WEBVIEW_GTK;
else version(OSX)
version=WEBVIEW_COCOA;
version(Demo)
void main() {
auto wv = new WebView(true, null);
wv.navigate("http://dpldocs.info/");
wv.setTitle("omg a D webview");
wv.setSize(500, 500, true);
wv.eval("console.log('just testing');");
wv.run();
}
}
/++
+/
class WebView : browser_engine {
/++
Creates a new webview instance. If dbg is non-zero - developer tools will
be enabled (if the platform supports them). Window parameter can be a
pointer to the native window handle. If it's non-null - then child WebView
is embedded into the given parent window. Otherwise a new window is created.
Depending on the platform, a GtkWindow, NSWindow or HWND pointer can be
passed here.
+/
this(bool dbg, void* window) {
super(&on_message, dbg, window);
}
extern(C)
static void on_message(const char*) {}
/// Destroys a webview and closes the native window.
void destroy() {
}
/// Runs the main loop until it's terminated. After this function exits - you
/// must destroy the webview.
override void run() { super.run(); }
/// Stops the main loop. It is safe to call this function from another other
/// background thread.
override void terminate() { super.terminate(); }
/+
/// Posts a function to be executed on the main thread. You normally do not need
/// to call this function, unless you want to tweak the native window.
void dispatch(void function(WebView w, void *arg) fn, void *arg) {}
+/
/// Returns a native window handle pointer. When using GTK backend the pointer
/// is GtkWindow pointer, when using Cocoa backend the pointer is NSWindow
/// pointer, when using Win32 backend the pointer is HWND pointer.
void* getWindow() { return m_window; }
/// Updates the title of the native window. Must be called from the UI thread.
override void setTitle(const char *title) { super.setTitle(title); }
/// Navigates webview to the given URL. URL may be a data URI.
override void navigate(const char *url) { super.navigate(url); }
/// Injects JavaScript code at the initialization of the new page. Every time
/// the webview will open a the new page - this initialization code will be
/// executed. It is guaranteed that code is executed before window.onload.
override void init(const char *js) { super.init(js); }
/// Evaluates arbitrary JavaScript code. Evaluation happens asynchronously, also
/// the result of the expression is ignored. Use RPC bindings if you want to
/// receive notifications about the results of the evaluation.
override void eval(const char *js) { super.eval(js); }
/// Binds a native C callback so that it will appear under the given name as a
/// global JavaScript function. Internally it uses webview_init(). Callback
/// receives a request string and a user-provided argument pointer. Request
/// string is a JSON array of all the arguments passed to the JavaScript
/// function.
void bind(const char *name, void function(const char *, void *) fn, void *arg) {}
/// Allows to return a value from the native binding. Original request pointer
/// must be provided to help internal RPC engine match requests with responses.
/// If status is zero - result is expected to be a valid JSON result value.
/// If status is not zero - result is an error JSON object.
void webview_return(const char *req, int status, const char *result) {}
/*
void on_message(const char *msg) {
auto seq = json_parse(msg, "seq", 0);
auto name = json_parse(msg, "name", 0);
auto args = json_parse(msg, "args", 0);
auto fn = bindings[name];
if (fn == null) {
return;
}
std::async(std::launch::async, [=]() {
auto result = (*fn)(args);
dispatch([=]() {
eval(("var b = window['" + name + "'];b['callbacks'][" + seq + "](" +
result + ");b['callbacks'][" + seq +
"] = undefined;b['errors'][" + seq + "] = undefined;")
.c_str());
});
});
}
std::map<std::string, binding_t *> bindings;
alias binding_t = std::function<std::string(std::string)>;
void bind(const char *name, binding_t f) {
auto js = "(function() { var name = '" + std::string(name) + "';" + R"(
window[name] = function() {
var me = window[name];
var errors = me['errors'];
var callbacks = me['callbacks'];
if (!callbacks) {
callbacks = {};
me['callbacks'] = callbacks;
}
if (!errors) {
errors = {};
me['errors'] = errors;
}
var seq = (me['lastSeq'] || 0) + 1;
me['lastSeq'] = seq;
var promise = new Promise(function(resolve, reject) {
callbacks[seq] = resolve;
errors[seq] = reject;
});
window.external.invoke(JSON.stringify({
name: name,
seq:seq,
args: Array.prototype.slice.call(arguments),
}));
return promise;
}
})())";
init(js.c_str());
bindings[name] = new binding_t(f);
}
*/
}
private extern(C) {
alias dispatch_fn_t = void function();
alias msg_cb_t = void function(const char *msg);
}
version(WEBVIEW_GTK) {
pragma(lib, "gtk-3");
pragma(lib, "glib-2.0");
pragma(lib, "gobject-2.0");
pragma(lib, "webkit2gtk-4.0");
pragma(lib, "javascriptcoregtk-4.0");
private extern(C) {
import core.stdc.config;
alias GtkWidget = void;
enum GtkWindowType {
GTK_WINDOW_TOPLEVEL = 0
}
bool gtk_init_check(int*, char***);
GtkWidget* gtk_window_new(GtkWindowType);
c_ulong g_signal_connect_data(void*, const char*, void* /* function pointer!!! */, void*, void*, int);
GtkWidget* webkit_web_view_new();
alias WebKitUserContentManager = void;
WebKitUserContentManager* webkit_web_view_get_user_content_manager(GtkWidget*);
void gtk_container_add(GtkWidget*, GtkWidget*);
void gtk_widget_grab_focus(GtkWidget*);
void gtk_widget_show_all(GtkWidget*);
void gtk_main();
void gtk_main_quit();
void webkit_web_view_load_uri(GtkWidget*, const char*);
alias WebKitSettings = void;
WebKitSettings* webkit_web_view_get_settings(GtkWidget*);
void webkit_settings_set_enable_write_console_messages_to_stdout(WebKitSettings*, bool);
void webkit_settings_set_enable_developer_extras(WebKitSettings*, bool);
void webkit_user_content_manager_register_script_message_handler(WebKitUserContentManager*, const char*);
alias JSCValue = void;
alias WebKitJavascriptResult = void;
JSCValue* webkit_javascript_result_get_js_value(WebKitJavascriptResult*);
char* jsc_value_to_string(JSCValue*);
void g_free(void*);
void webkit_web_view_run_javascript(GtkWidget*, const char*, void*, void*, void*);
alias WebKitUserScript = void;
void webkit_user_content_manager_add_script(WebKitUserContentManager*, WebKitUserScript*);
WebKitUserScript* webkit_user_script_new(const char*, WebKitUserContentInjectedFrames, WebKitUserScriptInjectionTime, const char*, const char*);
enum WebKitUserContentInjectedFrames {
WEBKIT_USER_CONTENT_INJECT_ALL_FRAMES,
WEBKIT_USER_CONTENT_INJECT_TOP_FRAME
}
enum WebKitUserScriptInjectionTime {
WEBKIT_USER_SCRIPT_INJECT_AT_DOCUMENT_START,
WEBKIT_USER_SCRIPT_INJECT_AT_DOCUMENT_END
}
void gtk_window_set_title(GtkWidget*, const char*);
void gtk_window_set_resizable(GtkWidget*, bool);
void gtk_window_set_default_size(GtkWidget*, int, int);
void gtk_widget_set_size_request(GtkWidget*, int, int);
}
private class browser_engine {
static extern(C)
void ondestroy (GtkWidget *w, void* arg) {
(cast(browser_engine) arg).terminate();
}
static extern(C)
void smr(WebKitUserContentManager* m, WebKitJavascriptResult* r, void* arg) {
auto w = cast(browser_engine) arg;
JSCValue *value = webkit_javascript_result_get_js_value(r);
auto s = jsc_value_to_string(value);
w.m_cb(s);
g_free(s);
}
this(msg_cb_t cb, bool dbg, void* window) {
m_cb = cb;
gtk_init_check(null, null);
m_window = cast(GtkWidget*) window;
if (m_window == null)
m_window = gtk_window_new(GtkWindowType.GTK_WINDOW_TOPLEVEL);
g_signal_connect_data(m_window, "destroy", &ondestroy, cast(void*) this, null, 0);
m_webview = webkit_web_view_new();
WebKitUserContentManager* manager = webkit_web_view_get_user_content_manager(m_webview);
g_signal_connect_data(manager, "script-message-received::external", &smr, cast(void*) this, null, 0);
webkit_user_content_manager_register_script_message_handler(manager, "external");
init("window.external={invoke:function(s){window.webkit.messageHandlers.external.postMessage(s);}}");
gtk_container_add(m_window, m_webview);
gtk_widget_grab_focus(m_webview);
if (dbg) {
WebKitSettings *settings = webkit_web_view_get_settings(m_webview);
webkit_settings_set_enable_write_console_messages_to_stdout(settings, true);
webkit_settings_set_enable_developer_extras(settings, true);
}
gtk_widget_show_all(m_window);
}
void run() { gtk_main(); }
void terminate() { gtk_main_quit(); }
void navigate(const char *url) {
webkit_web_view_load_uri(m_webview, url);
}
void setTitle(const char* title) {
gtk_window_set_title(m_window, title);
}
/+
void dispatch(std::function<void()> f) {
g_idle_add_full(G_PRIORITY_HIGH_IDLE, (GSourceFunc)([](void *f) -> int {
(*static_cast<dispatch_fn_t *>(f))();
return G_SOURCE_REMOVE;
}),
new std::function<void()>(f),
[](void *f) { delete static_cast<dispatch_fn_t *>(f); });
}
+/
void setSize(int width, int height, bool resizable) {
gtk_window_set_resizable(m_window, resizable);
if (resizable) {
gtk_window_set_default_size(m_window, width, height);
}
gtk_widget_set_size_request(m_window, width, height);
}
void init(const char *js) {
WebKitUserContentManager *manager = webkit_web_view_get_user_content_manager(m_webview);
webkit_user_content_manager_add_script(
manager, webkit_user_script_new(
js, WebKitUserContentInjectedFrames.WEBKIT_USER_CONTENT_INJECT_TOP_FRAME,
WebKitUserScriptInjectionTime.WEBKIT_USER_SCRIPT_INJECT_AT_DOCUMENT_START, null, null));
}
void eval(const char *js) {
webkit_web_view_run_javascript(m_webview, js, null, null, null);
}
protected:
GtkWidget* m_window;
GtkWidget* m_webview;
msg_cb_t m_cb;
}
} else version(WEBVIEW_COCOA) {
/+
//
// ====================================================================
//
// This implementation uses Cocoa WKWebView backend on macOS. It is
// written using ObjC runtime and uses WKWebView class as a browser runtime.
// You should pass "-framework Webkit" flag to the compiler.
//
// ====================================================================
//
#define OBJC_OLD_DISPATCH_PROTOTYPES 1
#include <CoreGraphics/CoreGraphics.h>
#include <objc/objc-runtime.h>
#define NSBackingStoreBuffered 2
#define NSWindowStyleMaskResizable 8
#define NSWindowStyleMaskMiniaturizable 4
#define NSWindowStyleMaskTitled 1
#define NSWindowStyleMaskClosable 2
#define NSApplicationActivationPolicyRegular 0
#define WKUserScriptInjectionTimeAtDocumentStart 0
id operator"" _cls(const char *s, std::size_t sz) {
return (id)objc_getClass(s);
}
SEL operator"" _sel(const char *s, std::size_t sz) {
return sel_registerName(s);
}
id operator"" _str(const char *s, std::size_t sz) {
return objc_msgSend("NSString"_cls, "stringWithUTF8String:"_sel, s);
}
class browser_engine {
public:
browser_engine(msg_cb_t cb, bool dbg, void *window) : m_cb(cb) {
// Application
id app = objc_msgSend("NSApplication"_cls, "sharedApplication"_sel);
objc_msgSend(app, "setActivationPolicy:"_sel,
NSApplicationActivationPolicyRegular);
// Delegate
auto cls = objc_allocateClassPair((Class) "NSObject"_cls, "AppDelegate", 0);
class_addProtocol(cls, objc_getProtocol("NSApplicationDelegate"));
class_addProtocol(cls, objc_getProtocol("WKScriptMessageHandler"));
class_addMethod(
cls, "applicationShouldTerminateAfterLastWindowClosed:"_sel,
(IMP)(+[](id self, SEL cmd, id notification) -> BOOL { return 1; }),
"c@:@");
class_addMethod(
cls, "userContentController:didReceiveScriptMessage:"_sel,
(IMP)(+[](id self, SEL cmd, id notification, id msg) {
auto w = (browser_engine *)objc_getAssociatedObject(self, "webview");
w->m_cb((const char *)objc_msgSend(objc_msgSend(msg, "body"_sel),
"UTF8String"_sel));
}),
"v@:@@");
objc_registerClassPair(cls);
auto delegate = objc_msgSend((id)cls, "new"_sel);
objc_setAssociatedObject(delegate, "webview", (id)this,
OBJC_ASSOCIATION_ASSIGN);
objc_msgSend(app, sel_registerName("setDelegate:"), delegate);
// Main window
if (window is null) {
m_window = objc_msgSend("NSWindow"_cls, "alloc"_sel);
m_window = objc_msgSend(
m_window, "initWithContentRect:styleMask:backing:defer:"_sel,
CGRectMake(0, 0, 0, 0), 0, NSBackingStoreBuffered, 0);
setSize(480, 320, true);
} else {
m_window = (id)window;
}
// Webview
auto config = objc_msgSend("WKWebViewConfiguration"_cls, "new"_sel);
m_manager = objc_msgSend(config, "userContentController"_sel);
m_webview = objc_msgSend("WKWebView"_cls, "alloc"_sel);
objc_msgSend(m_webview, "initWithFrame:configuration:"_sel,
CGRectMake(0, 0, 0, 0), config);
objc_msgSend(m_manager, "addScriptMessageHandler:name:"_sel, delegate,
"external"_str);
init(R"script(
window.external = {
invoke: function(s) {
window.webkit.messageHandlers.external.postMessage(s);
},
};
)script");
if (dbg) {
objc_msgSend(objc_msgSend(config, "preferences"_sel),
"setValue:forKey:"_sel, 1, "developerExtrasEnabled"_str);
}
objc_msgSend(m_window, "setContentView:"_sel, m_webview);
objc_msgSend(m_window, "makeKeyAndOrderFront:"_sel, null);
}
~browser_engine() { close(); }
void terminate() { close(); objc_msgSend("NSApp"_cls, "terminate:"_sel, null); }
void run() {
id app = objc_msgSend("NSApplication"_cls, "sharedApplication"_sel);
dispatch([&]() { objc_msgSend(app, "activateIgnoringOtherApps:"_sel, 1); });
objc_msgSend(app, "run"_sel);
}
void dispatch(std::function<void()> f) {
dispatch_async_f(dispatch_get_main_queue(), new dispatch_fn_t(f),
(dispatch_function_t)([](void *arg) {
auto f = static_cast<dispatch_fn_t *>(arg);
(*f)();
delete f;
}));
}
void setTitle(const char *title) {
objc_msgSend(
m_window, "setTitle:"_sel,
objc_msgSend("NSString"_cls, "stringWithUTF8String:"_sel, title));
}
void setSize(int width, int height, bool resizable) {
auto style = NSWindowStyleMaskTitled | NSWindowStyleMaskClosable |
NSWindowStyleMaskMiniaturizable;
if (resizable) {
style = style | NSWindowStyleMaskResizable;
}
objc_msgSend(m_window, "setStyleMask:"_sel, style);
objc_msgSend(m_window, "setFrame:display:animate:"_sel,
CGRectMake(0, 0, width, height), 1, 0);
}
void navigate(const char *url) {
auto nsurl = objc_msgSend(
"NSURL"_cls, "URLWithString:"_sel,
objc_msgSend("NSString"_cls, "stringWithUTF8String:"_sel, url));
objc_msgSend(
m_webview, "loadRequest:"_sel,
objc_msgSend("NSURLRequest"_cls, "requestWithURL:"_sel, nsurl));
}
void init(const char *js) {
objc_msgSend(
m_manager, "addUserScript:"_sel,
objc_msgSend(
objc_msgSend("WKUserScript"_cls, "alloc"_sel),
"initWithSource:injectionTime:forMainFrameOnly:"_sel,
objc_msgSend("NSString"_cls, "stringWithUTF8String:"_sel, js),
WKUserScriptInjectionTimeAtDocumentStart, 1));
}
void eval(const char *js) {
objc_msgSend(m_webview, "evaluateJavaScript:completionHandler:"_sel,
objc_msgSend("NSString"_cls, "stringWithUTF8String:"_sel, js),
null);
}
protected:
void close() { objc_msgSend(m_window, "close"_sel); }
id m_window;
id m_webview;
id m_manager;
msg_cb_t m_cb;
};
+/
}
version(cef) {
// from derelict-cef
/*
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:
The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/
// module derelict.cef.types;
private {
import core.stdc.stddef;
// import derelict.util.system;
}
// cef_string_*.h
alias void* cef_string_list_t;
alias void* cef_string_map_t;
alias void* cef_string_multimap_t;
struct cef_string_wide_t {
wchar_t* str;
size_t length;
extern( C ) @nogc nothrow void function( wchar* ) dtor;
}
struct cef_string_utf8_t {
char* str;
size_t length;
extern( C ) @nogc nothrow void function( char* ) dtor;
}
struct cef_string_utf16_t {
wchar* str;
size_t length;
extern( C ) @nogc nothrow void function( wchar* ) dtor;
}
alias cef_string_userfree_wide_t = cef_string_wide_t*;
alias cef_string_userfree_utf8_t = cef_string_utf8_t*;
alias cef_string_userfree_utf16_t = cef_string_utf16_t*;
version( DerelictCEF_WideStrings ) {
enum CEF_STRING_TYPE_WIDE = true;
enum CEF_STRING_TYPE_UTF16 = false;
enum CEF_STRING_TYPE_UTF8 = false;
alias cef_char_t = wchar_t;
alias cef_string_t = cef_string_wide_t;
alias cef_string_userfree_t = cef_string_userfree_wide_t;
} else version( DerelictCEF_UTF8Strings ) {
enum CEF_STRING_TYPE_WIDE = false;
enum CEF_STRING_TYPE_UTF16 = false;
enum CEF_STRING_TYPE_UTF8 = true;
alias cef_char_t = char;
alias cef_string_t = cef_string_utf8_t;
alias cef_string_userfree_t = cef_string_userfree_utf8_t;
} else {
// CEF builds with UTF16 strings by default.
enum CEF_STRING_TYPE_WIDE = false;
enum CEF_STRING_TYPE_UTF16 = true;
enum CEF_STRING_TYPE_UTF8 = false;
alias cef_char_t = wchar;
alias cef_string_t = cef_string_utf16_t;
alias cef_string_userfree_t = cef_string_userfree_utf16_t;
}
// cef_time.h
struct cef_time_t {
int year;
int month;
int day_of_week;
int day_of_month;
int hour;
int minute;
int second;
int millisecond;
}
// cef_types.h
alias int64 = long;
alias uint64 = ulong;
alias int32 = int;
alias uint32 = uint;
alias cef_color_t = uint32;
alias char16 = wchar;
alias cef_log_severity_t = int;
enum {
LOGSEVERITY_DEFAULT,
LOGSEVERITY_VERBOSE,
LOGSEVERITY_DEBUG,
LOGSEVERITY_INFO,
LOGSEVERITY_WARNING,
LOGSEVERITY_ERROR,
LOGSEVERITY_FATAL,
LOGSEVERITY_DISABLE = 99
}
alias cef_state_t = int;
enum {
STATE_DEFAULT = 0,
STATE_ENABLED,
STATE_DISABLED,
}
struct cef_settings_t {
size_t size;
int no_sandbox;
cef_string_t browser_subprocess_path;
cef_string_t framework_dir_path;
int multi_threaded_message_loop;
int external_message_pump;
int windowless_rendering_enabled;
int command_line_args_disabled;
cef_string_t cache_path;
cef_string_t user_data_path;
int persist_session_cookies;
int persist_user_preferences;
cef_string_t user_agent;
cef_string_t product_version;
cef_string_t locale;
cef_string_t log_file;
cef_log_severity_t log_severity;
cef_string_t javascript_flags;
cef_string_t resources_dir_path;
cef_string_t locales_dir_path;
int pack_loading_disabled;
int remote_debugging_port;
int uncaught_exception_stack_size;
int ignore_certificate_errors;
int enable_net_security_expiration;
cef_color_t background_color;
cef_string_t accept_language_list;
}
struct cef_request_context_settings_t {
size_t size;
cef_string_t cache_path;
int persist_session_cookies;
int persist_user_preferences;
int ignore_certificate_errors;
int enable_net_security_expiration;
cef_string_t accept_language_list;
}
struct cef_browser_settings_t {
size_t size;
int windowless_frame_rate;
cef_string_t standard_font_family;
cef_string_t fixed_font_family;
cef_string_t serif_font_family;
cef_string_t sans_serif_font_family;
cef_string_t cursive_font_family;
cef_string_t fantasy_font_family;
int default_font_size;
int default_fixed_font_size;
int minimum_font_size;
int minimum_logical_font_size;
cef_string_t default_encoding;
cef_state_t remote_fonts;
cef_state_t javascript;
cef_state_t javascript_close_windows;
cef_state_t javascript_access_clipboard;
cef_state_t javascript_dom_paste;
cef_state_t plugins;
cef_state_t universal_access_from_file_urls;
cef_state_t file_access_from_file_urls;
cef_state_t web_security;
cef_state_t image_loading;
cef_state_t image_shrink_standalone_to_fit;
cef_state_t text_area_resize;
cef_state_t tab_to_links;
cef_state_t local_storage;
cef_state_t databases;
cef_state_t application_cache;
cef_state_t webgl;
cef_color_t background_color;
cef_string_t accept_language_list;
}
alias cef_return_value_t = int;
enum {
RV_CANCEL = 0,
RV_CONTINUE,
RV_CONTINUE_ASYNC,
}
struct cef_urlparts_t {
cef_string_t spec;
cef_string_t scheme;
cef_string_t username;
cef_string_t password;
cef_string_t host;
cef_string_t port;
cef_string_t origin;
cef_string_t path;
cef_string_t query;
}
struct cef_cookie_t {
cef_string_t name;
cef_string_t value;
cef_string_t domain;
cef_string_t path;
int secure;
int httponly;
cef_time_t creation;
cef_time_t last_access;
int has_expires;
cef_time_t expires;
}
alias cef_termination_status_t = int;
enum {
TS_ABNORMAL_TERMINATION,
TS_PROCESS_WAS_KILLED,
TS_PROCESS_CRASHED,
TS_PROCESS_OOM,
}
alias cef_path_key_t = int;
enum {
PK_DIR_CURRENT,
PK_DIR_EXE,
PK_DIR_MODULE,
PK_DIR_TEMP,
PK_FILE_EXE,
PK_FILE_MODULE,
PK_LOCAL_APP_DATA,
PK_USER_DATA,
PK_DIR_RESOURCES,
}
alias cef_storage_type_t = int;
enum {
ST_LOCALSTORAGE = 0,
ST_SESSIONSTORAGE,
}
alias cef_errorcode_t = int;
enum {
ERR_NONE = 0,
ERR_FAILED = -2,
ERR_ABORTED = -3,
ERR_INVALID_ARGUMENT = -4,
ERR_INVALID_HANDLE = -5,
ERR_FILE_NOT_FOUND = -6,
ERR_TIMED_OUT = -7,
ERR_FILE_TOO_BIG = -8,
ERR_UNEXPECTED = -9,
ERR_ACCESS_DENIED = -10,
ERR_NOT_IMPLEMENTED = -11,
ERR_CONNECTION_CLOSED = -100,
ERR_CONNECTION_RESET = -101,
ERR_CONNECTION_REFUSED = -102,
ERR_CONNECTION_ABORTED = -103,
ERR_CONNECTION_FAILED = -104,
ERR_NAME_NOT_RESOLVED = -105,
ERR_INTERNET_DISCONNECTED = -106,
ERR_SSL_PROTOCOL_ERROR = -107,
ERR_ADDRESS_INVALID = -108,
ERR_ADDRESS_UNREACHABLE = -109,
ERR_SSL_CLIENT_AUTH_CERT_NEEDED = -110,
ERR_TUNNEL_CONNECTION_FAILED = -111,
ERR_NO_SSL_VERSIONS_ENABLED = -112,
ERR_SSL_VERSION_OR_CIPHER_MISMATCH = -113,
ERR_SSL_RENEGOTIATION_REQUESTED = -114,
ERR_CERT_COMMON_NAME_INVALID = -200,
ERR_CERT_DATE_INVALID = -201,
ERR_CERT_AUTHORITY_INVALID = -202,
ERR_CERT_CONTAINS_ERRORS = -203,
ERR_CERT_NO_REVOCATION_MECHANISM = -204,
ERR_CERT_UNABLE_TO_CHECK_REVOCATION = -205,
ERR_CERT_REVOKED = -206,
ERR_CERT_INVALID = -207,
ERR_CERT_END = -208,
ERR_INVALID_URL = -300,
ERR_DISALLOWED_URL_SCHEME = -301,
ERR_UNKNOWN_URL_SCHEME = -302,
ERR_TOO_MANY_REDIRECTS = -310,
ERR_UNSAFE_REDIRECT = -311,
ERR_UNSAFE_PORT = -312,
ERR_INVALID_RESPONSE = -320,
ERR_INVALID_CHUNKED_ENCODING = -321,
ERR_METHOD_NOT_SUPPORTED = -322,
ERR_UNEXPECTED_PROXY_AUTH = -323,
ERR_EMPTY_RESPONSE = -324,
ERR_RESPONSE_HEADERS_TOO_BIG = -325,
ERR_CACHE_MISS = -400,
ERR_INSECURE_RESPONSE = -501,
}
alias cef_cert_status_t = int;
enum {
CERT_STATUS_NONE = 0,
CERT_STATUS_COMMON_NAME_INVALID = 1 << 0,
CERT_STATUS_DATE_INVALID = 1 << 1,
CERT_STATUS_AUTHORITY_INVALID = 1 << 2,
CERT_STATUS_NO_REVOCATION_MECHANISM = 1 << 4,
CERT_STATUS_UNABLE_TO_CHECK_REVOCATION = 1 << 5,
CERT_STATUS_REVOKED = 1 << 6,
CERT_STATUS_INVALID = 1 << 7,
CERT_STATUS_WEAK_SIGNATURE_ALGORITHM = 1 << 8,
CERT_STATUS_NON_UNIQUE_NAME = 1 << 10,
CERT_STATUS_WEAK_KEY = 1 << 11,
CERT_STATUS_PINNED_KEY_MISSING = 1 << 13,
CERT_STATUS_NAME_CONSTRAINT_VIOLATION = 1 << 14,
CERT_STATUS_VALIDITY_TOO_LONG = 1 << 15,
CERT_STATUS_IS_EV = 1 << 16,
CERT_STATUS_REV_CHECKING_ENABLED = 1 << 17,
CERT_STATUS_SHA1_SIGNATURE_PRESENT = 1 << 19,
CERT_STATUS_CT_COMPLIANCE_FAILED = 1 << 20,
}
alias cef_window_open_disposition_t = int;
enum {
WOD_UNKNOWN,
WOD_CURRENT_TAB,
WOD_SINGLETON_TAB,
WOD_NEW_FOREGROUND_TAB,
WOD_NEW_BACKGROUND_TAB,
WOD_NEW_POPUP,
WOD_NEW_WINDOW,
WOD_SAVE_TO_DISK,
WOD_OFF_THE_RECORD,
WOD_IGNORE_ACTION
}
alias cef_drag_operations_mask_t = int;
enum {
DRAG_OPERATION_NONE = 0,
DRAG_OPERATION_COPY = 1,
DRAG_OPERATION_LINK = 2,
DRAG_OPERATION_GENERIC = 4,
DRAG_OPERATION_PRIVATE = 8,
DRAG_OPERATION_MOVE = 16,
DRAG_OPERATION_DELETE = 32,
DRAG_OPERATION_EVERY = uint.max,
}
alias cef_v8_accesscontrol_t = int;
enum {
V8_ACCESS_CONTROL_DEFAULT = 0,
V8_ACCESS_CONTROL_ALL_CAN_READ = 1,
V8_ACCESS_CONTROL_ALL_CAN_WRITE = 1<<1,
V8_ACCESS_CONTROL_PROHIBITS_OVERWRITING = 1<<2
}
alias cef_v8_propertyattribute_t = int;
enum {
V8_PROPERTY_ATTRIBUTE_NONE = 0,
V8_PROPERTY_ATTRIBUTE_READONLY = 1<<0,
V8_PROPERTY_ATTRIBUTE_DONTENUM = 1<<1,
V8_PROPERTY_ATTRIBUTE_DONTDELETE = 1<<2
}
alias cef_postdataelement_type_t = int;
enum {
PDE_TYPE_EMPTY = 0,
PDE_TYPE_BYTES,
PDE_TYPE_FILE,
}
alias cef_resource_type_t = int;
enum {
RT_MAIN_FRAME = 0,
RT_SUB_FRAME,
RT_STYLESHEET,
RT_SCRIPT,
RT_IMAGE,
RT_FONT_RESOURCE,
RT_SUB_RESOURCE,
RT_OBJECT,
RT_MEDIA,
RT_WORKER,
RT_SHARED_WORKER,
RT_PREFETCH,
RT_FAVICON,
RT_XHR,
RT_PING,
RT_SERVICE_WORKER,
RT_CSP_REPORT,
RT_PLUGIN_RESOURCE,
}
alias cef_transition_type_t = int;
enum {
TT_LINK = 0,
TT_EXPLICIT = 1,
TT_AUTO_SUBFRAME = 3,
TT_MANUAL_SUBFRAME = 4,
TT_FORM_SUBMIT = 7,
TT_RELOAD = 8,
TT_SOURCE_MASK = 0xFF,
TT_BLOCKED_FLAG = 0x00800000,
TT_FORWARD_BACK_FLAG = 0x01000000,
TT_CHAIN_START_FLAG = 0x10000000,
TT_CHAIN_END_FLAG = 0x20000000,
TT_CLIENT_REDIRECT_FLAG = 0x40000000,
TT_SERVER_REDIRECT_FLAG = 0x80000000,
TT_IS_REDIRECT_MASK = 0xC0000000,
TT_QUALIFIER_MASK = 0xFFFFFF00,
}
alias cef_urlrequest_flags_t = int;
enum {
UR_FLAG_NONE = 0,
UR_FLAG_SKIP_CACHE = 1 << 0,
UR_FLAG_ONLY_FROM_CACHE = 1 << 1,
UR_FLAG_ALLOW_STORED_CREDENTIALS = 1 << 2,
UR_FLAG_REPORT_UPLOAD_PROGRESS = 1 << 3,
UR_FLAG_NO_DOWNLOAD_DATA = 1 << 4,
UR_FLAG_NO_RETRY_ON_5XX = 1 << 5,
UR_FLAG_STOP_ON_REDIRECT = 1 << 6,
}
alias cef_urlrequest_status_t = int;
enum {
UR_UNKNOWN = 0,
UR_SUCCESS,
UR_IO_PENDING,
UR_CANCELED,
UR_FAILED,
}
struct cef_point_t {
int x;
int y;
}
struct cef_rect_t {
int x;
int y;
int width;
int height;
}
struct cef_size_t {
int width;
int height;
}
struct cef_range_t {
int from;
int to;
}
struct cef_insets_t {
int top;
int left;
int bottom;
int right;
}
struct cef_draggable_region_t {
cef_rect_t bounds;
int draggable;
}
alias cef_process_id_t = int;
enum {
PID_BROWSER,
PID_RENDERER,
}
alias cef_thread_id_t = int;
enum {
TID_UI,
TID_DB,
TID_FILE,
TID_FILE_USER_BLOCKING,
TID_PROCESS_LAUNCHER,
TID_CACHE,
TID_IO,
TID_RENDERER,
}
alias cef_thread_priority_t = int;
enum {
TP_BACKGROUND,
TP_NORMAL,
TP_DISPLAY,
TP_REALTIME_AUDIO,
}
alias cef_message_loop_type_t = int;
enum {
ML_TYPE_DEFAULT,
ML_TYPE_UI,
ML_TYPE_IO,
}
alias cef_com_init_mode_t = int;
enum {
COM_INIT_MODE_NONE,
COM_INIT_MODE_STA,
COM_INIT_MODE_MTA,
}
alias cef_value_type_t = int;
enum {
VTYPE_INVALID = 0,
VTYPE_NULL,
VTYPE_BOOL,
VTYPE_INT,
VTYPE_DOUBLE,
VTYPE_STRING,
VTYPE_BINARY,
VTYPE_DICTIONARY,
VTYPE_LIST,
}
alias cef_jsdialog_type_t = int;
enum {
JSDIALOGTYPE_ALERT = 0,
JSDIALOGTYPE_CONFIRM,
JSDIALOGTYPE_PROMPT,
}
struct cef_screen_info_t {
float device_scale_factor;
int depth;
int depth_per_component;
int is_monochrome;
cef_rect_t rect;
cef_rect_t available_rect;
}
alias cef_menu_id_t = int;
enum {
MENU_ID_BACK = 100,
MENU_ID_FORWARD = 101,
MENU_ID_RELOAD = 102,
MENU_ID_RELOAD_NOCACHE = 103,
MENU_ID_STOPLOAD = 104,
MENU_ID_UNDO = 110,
MENU_ID_REDO = 111,
MENU_ID_CUT = 112,
MENU_ID_COPY = 113,
MENU_ID_PASTE = 114,
MENU_ID_DELETE = 115,
MENU_ID_SELECT_ALL = 116,
MENU_ID_FIND = 130,
MENU_ID_PRINT = 131,
MENU_ID_VIEW_SOURCE = 132,
MENU_ID_SPELLCHECK_SUGGESTION_0 = 200,
MENU_ID_SPELLCHECK_SUGGESTION_1 = 201,
MENU_ID_SPELLCHECK_SUGGESTION_2 = 202,
MENU_ID_SPELLCHECK_SUGGESTION_3 = 203,
MENU_ID_SPELLCHECK_SUGGESTION_4 = 204,
MENU_ID_SPELLCHECK_SUGGESTION_LAST = 204,
MENU_ID_NO_SPELLING_SUGGESTIONS = 205,
MENU_ID_ADD_TO_DICTIONARY = 206,
MENU_ID_CUSTOM_FIRST = 220,
MENU_ID_CUSTOM_LAST = 250,
MENU_ID_USER_FIRST = 26500,
MENU_ID_USER_LAST = 28500,
}
alias cef_mouse_button_type_t = int;
enum {
MBT_LEFT = 0,
MBT_MIDDLE,
MBT_RIGHT,
}
struct cef_mouse_event_t {
int x;
int y;
uint32 modifiers;
}
alias cef_paint_element_type_t = int;
enum {
PET_VIEW = 0,
PET_POPUP,
}
alias cef_event_flags_t = int;
enum {
EVENTFLAG_NONE = 0,
EVENTFLAG_CAPS_LOCK_ON = 1<<0,
EVENTFLAG_SHIFT_DOWN = 1<<1,
EVENTFLAG_CONTROL_DOWN = 1<<2,
EVENTFLAG_ALT_DOWN = 1<<3,
EVENTFLAG_LEFT_MOUSE_BUTTON = 1<<4,
EVENTFLAG_MIDDLE_MOUSE_BUTTON = 1<<5,
EVENTFLAG_RIGHT_MOUSE_BUTTON = 1<<6,
EVENTFLAG_COMMAND_DOWN = 1<<7,
EVENTFLAG_NUM_LOCK_ON = 1<<8,
EVENTFLAG_IS_KEY_PAD = 1<<9,
EVENTFLAG_IS_LEFT = 1<<10,
EVENTFLAG_IS_RIGHT = 1<<11,
}
alias cef_menu_item_type_t = int;
enum {
MENUITEMTYPE_NONE,
MENUITEMTYPE_COMMAND,
MENUITEMTYPE_CHECK,
MENUITEMTYPE_RADIO,
MENUITEMTYPE_SEPARATOR,
MENUITEMTYPE_SUBMENU,
}
alias cef_context_menu_type_flags_t = int;
enum {
CM_TYPEFLAG_NONE = 0,
CM_TYPEFLAG_PAGE = 1<<0,
CM_TYPEFLAG_FRAME = 1<<1,
CM_TYPEFLAG_LINK = 1<<2,
CM_TYPEFLAG_MEDIA = 1<<3,
CM_TYPEFLAG_SELECTION = 1<<4,
CM_TYPEFLAG_EDITABLE = 1<<5,
}
alias cef_context_menu_media_type_t = int;
enum {
CM_MEDIATYPE_NONE,
CM_MEDIATYPE_IMAGE,
CM_MEDIATYPE_VIDEO,
CM_MEDIATYPE_AUDIO,
CM_MEDIATYPE_FILE,
CM_MEDIATYPE_PLUGIN,
}
alias cef_context_menu_media_state_flags_t = int;
enum {
CM_MEDIAFLAG_NONE = 0,
CM_MEDIAFLAG_ERROR = 1<<0,
CM_MEDIAFLAG_PAUSED = 1<<1,
CM_MEDIAFLAG_MUTED = 1<<2,
CM_MEDIAFLAG_LOOP = 1<<3,
CM_MEDIAFLAG_CAN_SAVE = 1<<4,
CM_MEDIAFLAG_HAS_AUDIO = 1<<5,
CM_MEDIAFLAG_HAS_VIDEO = 1<<6,
CM_MEDIAFLAG_CONTROL_ROOT_ELEMENT = 1<<7,
CM_MEDIAFLAG_CAN_PRINT = 1<<8,
CM_MEDIAFLAG_CAN_ROTATE = 1<<9,
}
alias cef_context_menu_edit_state_flags_t = int;
enum {
CM_EDITFLAG_NONE = 0,
CM_EDITFLAG_CAN_UNDO = 1<<0,
CM_EDITFLAG_CAN_REDO = 1<<1,
CM_EDITFLAG_CAN_CUT = 1<<2,
CM_EDITFLAG_CAN_COPY = 1<<3,
CM_EDITFLAG_CAN_PASTE = 1<<4,
CM_EDITFLAG_CAN_DELETE = 1<<5,
CM_EDITFLAG_CAN_SELECT_ALL = 1<<6,
CM_EDITFLAG_CAN_TRANSLATE = 1<<7,
}
alias cef_key_event_type_t = int;
enum {
KEYEVENT_RAWKEYDOWN = 0,
KEYEVENT_KEYDOWN,
KEYEVENT_KEYUP,
KEYEVENT_CHAR
}
struct cef_key_event_t {
cef_key_event_type_t type;
uint32 modifiers;
int windows_key_code;
int native_key_code;
int is_system_key;
char16 character;
char16 unmodified_character;
int focus_on_editable_field;
}
alias cef_focus_source_t = int;
enum {
FOCUS_SOURCE_NAVIGATION = 0,
FOCUS_SOURCE_SYSTEM,
}
alias cef_navigation_type_t = int;
enum {
NAVIGATION_LINK_CLICKED = 0,
NAVIGATION_FORM_SUBMITTED,
NAVIGATION_BACK_FORWARD,
NAVIGATION_RELOAD,
NAVIGATION_FORM_RESUBMITTED,
NAVIGATION_OTHER,
}
alias cef_xml_encoding_type_t = int;
enum {
XML_ENCODING_NONE = 0,
XML_ENCODING_UTF8,
XML_ENCODING_UTF16LE,
XML_ENCODING_UTF16BE,
XML_ENCODING_ASCII,
}
alias cef_xml_node_type_t = int;
enum {
XML_NODE_UNSUPPORTED = 0,
XML_NODE_PROCESSING_INSTRUCTION,
XML_NODE_DOCUMENT_TYPE,
XML_NODE_ELEMENT_START,
XML_NODE_ELEMENT_END,
XML_NODE_ATTRIBUTE,
XML_NODE_TEXT,
XML_NODE_CDATA,
XML_NODE_ENTITY_REFERENCE,
XML_NODE_WHITESPACE,
XML_NODE_COMMENT,
}
struct cef_popup_features_t {
int x;
int xSet;
int y;
int ySet;
int width;
int widthSet;
int height;
int heightSet;
int menuBarVisible;
int statusBarVisible;
int toolBarVisible;
int scrollbarsVisible;
}
alias cef_dom_document_type_t = int;
enum {
DOM_DOCUMENT_TYPE_UNKNOWN = 0,
DOM_DOCUMENT_TYPE_HTML,
DOM_DOCUMENT_TYPE_XHTML,
DOM_DOCUMENT_TYPE_PLUGIN,
}
alias cef_dom_event_category_t = int;
enum {
DOM_EVENT_CATEGORY_UNKNOWN = 0x0,
DOM_EVENT_CATEGORY_UI = 0x1,
DOM_EVENT_CATEGORY_MOUSE = 0x2,
DOM_EVENT_CATEGORY_MUTATION = 0x4,
DOM_EVENT_CATEGORY_KEYBOARD = 0x8,
DOM_EVENT_CATEGORY_TEXT = 0x10,
DOM_EVENT_CATEGORY_COMPOSITION = 0x20,
DOM_EVENT_CATEGORY_DRAG = 0x40,
DOM_EVENT_CATEGORY_CLIPBOARD = 0x80,
DOM_EVENT_CATEGORY_MESSAGE = 0x100,
DOM_EVENT_CATEGORY_WHEEL = 0x200,
DOM_EVENT_CATEGORY_BEFORE_TEXT_INSERTED = 0x400,
DOM_EVENT_CATEGORY_OVERFLOW = 0x800,
DOM_EVENT_CATEGORY_PAGE_TRANSITION = 0x1000,
DOM_EVENT_CATEGORY_POPSTATE = 0x2000,
DOM_EVENT_CATEGORY_PROGRESS = 0x4000,
DOM_EVENT_CATEGORY_XMLHTTPREQUEST_PROGRESS = 0x8000,
}
alias cef_dom_event_phase_t = int;
enum {
DOM_EVENT_PHASE_UNKNOWN = 0,
DOM_EVENT_PHASE_CAPTURING,
DOM_EVENT_PHASE_AT_TARGET,
DOM_EVENT_PHASE_BUBBLING,
}
alias cef_dom_node_type_t = int;
enum {
DOM_NODE_TYPE_UNSUPPORTED = 0,
DOM_NODE_TYPE_ELEMENT,
DOM_NODE_TYPE_ATTRIBUTE,
DOM_NODE_TYPE_TEXT,
DOM_NODE_TYPE_CDATA_SECTION,
DOM_NODE_TYPE_PROCESSING_INSTRUCTIONS,
DOM_NODE_TYPE_COMMENT,
DOM_NODE_TYPE_DOCUMENT,
DOM_NODE_TYPE_DOCUMENT_TYPE,
DOM_NODE_TYPE_DOCUMENT_FRAGMENT
}
alias cef_file_dialog_mode_t = int;
enum {
FILE_DIALOG_OPEN,
FILE_DIALOG_OPEN_MULTIPLE,
FILE_DIALOG_OPEN_FOLDER,
FILE_DIALOG_SAVE,
FILE_DIALOG_TYPE_MASK = 0xFF,
FILE_DIALOG_OVERWRITEPROMPT_FLAG = 0x01000000,
FILE_DIALOG_HIDEREADONLY_FLAG = 0x02000000,
}
alias cef_color_model_t = int;
enum {
COLOR_MODEL_UNKNOWN,
COLOR_MODEL_GRAY,
COLOR_MODEL_COLOR,
COLOR_MODEL_CMYK,
COLOR_MODEL_CMY,
COLOR_MODEL_KCMY,
COLOR_MODEL_CMY_K, // CMY_K represents CMY+K.
COLOR_MODEL_BLACK,
COLOR_MODEL_GRAYSCALE,
COLOR_MODEL_RGB,
COLOR_MODEL_RGB16,
COLOR_MODEL_RGBA,
COLOR_MODEL_COLORMODE_COLOR, // Used in samsung printer ppds.
COLOR_MODEL_COLORMODE_MONOCHROME, // Used in samsung printer ppds.
COLOR_MODEL_HP_COLOR_COLOR, // Used in HP color printer ppds.
COLOR_MODEL_HP_COLOR_BLACK, // Used in HP color printer ppds.
COLOR_MODEL_PRINTOUTMODE_NORMAL, // Used in foomatic ppds.
COLOR_MODEL_PRINTOUTMODE_NORMAL_GRAY, // Used in foomatic ppds.
COLOR_MODEL_PROCESSCOLORMODEL_CMYK, // Used in canon printer ppds.
COLOR_MODEL_PROCESSCOLORMODEL_GREYSCALE, // Used in canon printer ppds.
COLOR_MODEL_PROCESSCOLORMODEL_RGB, // Used in canon printer ppds
}
alias cef_duplex_mode_t = int;
enum {
DUPLEX_MODE_UNKNOWN = -1,
DUPLEX_MODE_SIMPLEX,
DUPLEX_MODE_LONG_EDGE,
DUPLEX_MODE_SHORT_EDGE,
}
alias cef_cursor_type_t = int;
enum {
CT_POINTER = 0,
CT_CROSS,
CT_HAND,
CT_IBEAM,
CT_WAIT,
CT_HELP,
CT_EASTRESIZE,
CT_NORTHRESIZE,
CT_NORTHEASTRESIZE,
CT_NORTHWESTRESIZE,
CT_SOUTHRESIZE,
CT_SOUTHEASTRESIZE,
CT_SOUTHWESTRESIZE,
CT_WESTRESIZE,
CT_NORTHSOUTHRESIZE,
CT_EASTWESTRESIZE,
CT_NORTHEASTSOUTHWESTRESIZE,
CT_NORTHWESTSOUTHEASTRESIZE,
CT_COLUMNRESIZE,
CT_ROWRESIZE,
CT_MIDDLEPANNING,
CT_EASTPANNING,
CT_NORTHPANNING,
CT_NORTHEASTPANNING,
CT_NORTHWESTPANNING,
CT_SOUTHPANNING,
CT_SOUTHEASTPANNING,
CT_SOUTHWESTPANNING,
CT_WESTPANNING,
CT_MOVE,
CT_VERTICALTEXT,
CT_CELL,
CT_CONTEXTMENU,
CT_ALIAS,
CT_PROGRESS,
CT_NODROP,
CT_COPY,
CT_NONE,
CT_NOTALLOWED,
CT_ZOOMIN,
CT_ZOOMOUT,
CT_GRAB,
CT_GRABBING,
CT_CUSTOM,
}
struct cef_cursor_info_t {
cef_point_t hotspot;
float image_scale_factor;
void* buffer;
cef_size_t size;
}
alias cef_uri_unescape_rule_t = int;
enum {
UU_NONE = 0,
UU_NORMAL = 1 << 0,
UU_SPACES = 1 << 1,
UU_PATH_SEPARATORS = 1 << 2,
UU_URL_SPECIAL_CHARS_EXCEPT_PATH_SEPARATORS = 1 << 3,
UU_SPOOFING_AND_CONTROL_CHARS = 1 << 4,
UU_REPLACE_PLUS_WITH_SPACE = 1 << 5,
}
alias cef_json_parser_options_t = int;
enum {
JSON_PARSER_RFC = 0,
JSON_PARSER_ALLOW_TRAILING_COMMAS = 1 << 0,
}
alias cef_json_parser_error_t = int;
enum {
JSON_NO_ERROR = 0,
JSON_INVALID_ESCAPE,
JSON_SYNTAX_ERROR,
JSON_UNEXPECTED_TOKEN,
JSON_TRAILING_COMMA,
JSON_TOO_MUCH_NESTING,
JSON_UNEXPECTED_DATA_AFTER_ROOT,
JSON_UNSUPPORTED_ENCODING,
JSON_UNQUOTED_DICTIONARY_KEY,
JSON_PARSE_ERROR_COUNT
}
alias cef_json_writer_options_t = int;
enum {
JSON_WRITER_DEFAULT = 0,
JSON_WRITER_OMIT_BINARY_VALUES = 1 << 0,
JSON_WRITER_OMIT_DOUBLE_TYPE_PRESERVATION = 1 << 1,
JSON_WRITER_PRETTY_PRINT = 1 << 2,
}
alias cef_pdf_print_margin_type_t = int;
enum {
PDF_PRINT_MARGIN_DEFAULT,
PDF_PRINT_MARGIN_NONE,
PDF_PRINT_MARGIN_MINIMUM,
PDF_PRINT_MARGIN_CUSTOM,
}
struct cef_pdf_print_settings_t {
cef_string_t header_footer_title;
cef_string_t header_footer_url;
int page_width;
int page_height;
int scale_factor;
double margin_top;
double margin_right;
double margin_bottom;
double margin_left;
cef_pdf_print_margin_type_t margin_type;
int header_footer_enabled;
int selection_only;
int landscape;
int backgrounds_enabled;
}
alias cef_scale_factor_t = int;
enum {
SCALE_FACTOR_NONE = 0,
SCALE_FACTOR_100P,
SCALE_FACTOR_125P,
SCALE_FACTOR_133P,
SCALE_FACTOR_140P,
SCALE_FACTOR_150P,
SCALE_FACTOR_180P,
SCALE_FACTOR_200P,
SCALE_FACTOR_250P,
SCALE_FACTOR_300P,
}
alias cef_plugin_policy_t = int;
enum {
PLUGIN_POLICY_ALLOW,
PLUGIN_POLICY_DETECT_IMPORTANT,
PLUGIN_POLICY_BLOCK,
PLUGIN_POLICY_DISABLE,
}
alias cef_referrer_policy_t = int;
enum {
REFERRER_POLICY_CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE,
REFERRER_POLICY_DEFAULT,
REFERRER_POLICY_REDUCE_REFERRER_GRANULARITY_ON_TRANSITION_CROSS_ORIGIN,
REFERRER_POLICY_ORIGIN_ONLY_ON_TRANSITION_CROSS_ORIGIN,
REFERRER_POLICY_NEVER_CLEAR_REFERRER,
REFERRER_POLICY_ORIGIN,
REFERRER_POLICY_CLEAR_REFERRER_ON_TRANSITION_CROSS_ORIGIN,
REFERRER_POLICY_ORIGIN_CLEAR_ON_TRANSITION_FROM_SECURE_TO_INSECURE,
REFERRER_POLICY_NO_REFERRER,
REFERRER_POLICY_LAST_VALUE,
}
alias cef_response_filter_status_t = int;
enum {
RESPONSE_FILTER_NEED_MORE_DATA,
RESPONSE_FILTER_DONE,
RESPONSE_FILTER_ERROR
}
alias cef_color_type_t = int;
enum {
CEF_COLOR_TYPE_RGBA_8888,
CEF_COLOR_TYPE_BGRA_8888,
}
alias cef_alpha_type_t = int;
enum {
CEF_ALPHA_TYPE_OPAQUE,
CEF_ALPHA_TYPE_PREMULTIPLIED,
CEF_ALPHA_TYPE_POSTMULTIPLIED,
}
alias cef_text_style_t = int;
enum {
CEF_TEXT_STYLE_BOLD,
CEF_TEXT_STYLE_ITALIC,
CEF_TEXT_STYLE_STRIKE,
CEF_TEXT_STYLE_DIAGONAL_STRIKE,
CEF_TEXT_STYLE_UNDERLINE,
}
alias cef_main_axis_alignment_t = int;
enum {
CEF_MAIN_AXIS_ALIGNMENT_START,
CEF_MAIN_AXIS_ALIGNMENT_CENTER,
CEF_MAIN_AXIS_ALIGNMENT_END,
}
alias cef_cross_axis_alignment_t = int;
enum {
CEF_CROSS_AXIS_ALIGNMENT_STRETCH,
CEF_CROSS_AXIS_ALIGNMENT_START,
CEF_CROSS_AXIS_ALIGNMENT_CENTER,
CEF_CROSS_AXIS_ALIGNMENT_END,
}
struct cef_box_layout_settings_t {
int horizontal;
int inside_border_horizontal_spacing;
int inside_border_vertical_spacing;
cef_insets_t inside_border_insets;
int between_child_spacing;
cef_main_axis_alignment_t main_axis_alignment;
cef_cross_axis_alignment_t cross_axis_alignment;
int minimum_cross_axis_size;
int default_flex;
}
alias cef_button_state_t = int;
enum {
CEF_BUTTON_STATE_NORMAL,
CEF_BUTTON_STATE_HOVERED,
CEF_BUTTON_STATE_PRESSED,
CEF_BUTTON_STATE_DISABLED,
}
alias cef_horizontal_alignment_t = int;
enum {
CEF_HORIZONTAL_ALIGNMENT_LEFT,
CEF_HORIZONTAL_ALIGNMENT_CENTER,
CEF_HORIZONTAL_ALIGNMENT_RIGHT,
}
alias cef_menu_anchor_position_t = int;
enum {
CEF_MENU_ANCHOR_TOPLEFT,
CEF_MENU_ANCHOR_TOPRIGHT,
CEF_MENU_ANCHOR_BOTTOMCENTER,
}
alias cef_menu_color_type_t = int;
enum {
CEF_MENU_COLOR_TEXT,
CEF_MENU_COLOR_TEXT_HOVERED,
CEF_MENU_COLOR_TEXT_ACCELERATOR,
CEF_MENU_COLOR_TEXT_ACCELERATOR_HOVERED,
CEF_MENU_COLOR_BACKGROUND,
CEF_MENU_COLOR_BACKGROUND_HOVERED,
CEF_MENU_COLOR_COUNT,
}
alias cef_ssl_version_t = int;
enum {
SSL_CONNECTION_VERSION_UNKNOWN = 0,
SSL_CONNECTION_VERSION_SSL2 = 1,
SSL_CONNECTION_VERSION_SSL3 = 2,
SSL_CONNECTION_VERSION_TLS1 = 3,
SSL_CONNECTION_VERSION_TLS1_1 = 4,
SSL_CONNECTION_VERSION_TLS1_2 = 5,
SSL_CONNECTION_VERSION_QUIC = 7,
}
alias cef_ssl_content_status_t = int;
enum {
SSL_CONTENT_NORMAL_CONTENT = 0,
SSL_CONTENT_DISPLAYED_INSECURE_CONTENT = 1 << 0,
SSL_CONTENT_RAN_INSECURE_CONTENT = 1 << 1,
}
alias cef_cdm_registration_error_t = int;
enum {
CEF_CDM_REGISTRATION_ERROR_NONE,
CEF_CDM_REGISTRATION_ERROR_INCORRECT_CONTENTS,
CEF_CDM_REGISTRATION_ERROR_INCOMPATIBLE,
CEF_CDM_REGISTRATION_ERROR_NOT_SUPPORTED,
}
struct cef_composition_underline_t {
cef_range_t range;
cef_color_t color;
cef_color_t background_color;
int thick;
}
// cef_types_win.h
alias cef_cursor_handle_t = void*;
alias cef_event_handle_t = void*;
alias cef_window_handle_t = void*;
alias cef_text_input_context_t = void*;
static if( Derelict_OS_Windows ) {
struct cef_main_args_t {
void* instance;
}
struct cef_window_info_t {
uint ex_style;
cef_string_t window_name;
uint style;
int x;
int y;
int width;
int height;
cef_window_handle_t parent_window;
void* menu;
int window_rendering_disabled;
int transparent_painting;
cef_window_handle_t window;
}
} else static if( Derelict_OS_Linux ) {
struct cef_main_args_t {
int argc;
char** argv;
}
struct cef_window_info_t {
cef_window_handle_t parent_widget;
int window_rendering_disabled;
int transparent_painting;
cef_window_handle_t widget;
}
} else static if( Derelict_OS_Mac ) {
struct cef_main_args_t {
int argc;
char** argv;
}
struct cef_window_info_t {
cef_string_t window_name;
int x;
int y;
int width;
int height;
int hidden;
cef_window_handle_t parent_view;
int window_rendering_disabled;
int transparent_painting;
cef_window_handle_t view;
}
} else {
static assert( 0, "Platform-specific types not yet implemented on this platform." );
}
// cef_accessibility_handler_capi.h
struct cef_accessibility_handler_t {
cef_base_t base;
extern( System ) @nogc nothrow {
void function( cef_accessibility_handler_t* , cef_value_t* ) on_accessibility_tree_change;
void function( cef_accessibility_handler_t*, cef_value_t* ) on_accessibility_location_change;
}
}
// cef_app_capi.h
struct cef_app_t {
cef_base_t base;
extern( System ) @nogc nothrow {
void function( cef_app_t*,const( cef_string_t )*,cef_command_line_t* ) on_before_command_line_processing;
void function( cef_app_t*,cef_scheme_registrar_t* ) on_register_custom_schemes;
cef_resource_bundle_handler_t* function( cef_app_t* ) get_resource_bundle_handler;
cef_browser_process_handler_t* function( cef_app_t* ) get_browser_process_handler;
cef_render_process_handler_t* function( cef_app_t* ) get_render_process_handler;
}
}
// cef_auth_callback_capi.h
struct cef_auth_callback_t {
cef_base_t base;
extern( System ) @nogc nothrow {
void function( cef_auth_callback_t*, const( cef_string_t )*, const( cef_string_t )* ) cont;
void function( cef_auth_callback_t* ) cancel;
}
}
// cef_base_capi.h
struct cef_base_t {
size_t size;
extern( System ) @nogc nothrow {
int function( cef_base_t* ) add_ref;
int function( cef_base_t* ) release;
int function( cef_base_t* ) has_one_ref;
int function( cef_base_t* ) has_at_least_one_ref;
}
}
struct cef_base_scoped_t {
size_t size;
extern( System ) @nogc nothrow void function( cef_base_scoped_t* ) del;
}
// cef_browser_capi.h
static if( Derelict_OS_Windows ) {
alias cef_platform_thread_id_t = uint;
alias cef_platform_thread_handle_t = uint;
} else static if( Derelict_OS_Posix ) {
import core.sys.posix.unistd: pid_t;
alias cef_platform_thread_id_t = pid_t;
alias cef_platform_thread_handle_t = pid_t;
} else {
static assert( 0, "Platform-specific types not yet implemented on this platform." );
}
struct cef_browser_t {
cef_base_t base;
extern( System ) @nogc nothrow {
cef_browser_host_t* function( cef_browser_t* ) get_host;
int function( cef_browser_t* ) can_go_back;
void function( cef_browser_t* ) go_back;
int function( cef_browser_t* ) can_go_forward;
void function( cef_browser_t* ) go_forward;
int function( cef_browser_t* ) is_loading;
void function( cef_browser_t* ) reload;
void function( cef_browser_t* ) reload_ignore_cache;
void function( cef_browser_t* ) stop_load;
int function( cef_browser_t* ) get_identifier;
int function( cef_browser_t*,cef_browser_t* ) is_same;
int function( cef_browser_t* ) is_popup;
int function( cef_browser_t* ) has_document;
cef_frame_t* function( cef_browser_t* ) get_main_frame;
cef_frame_t* function( cef_browser_t* ) get_focused_frame;
cef_frame_t* function( cef_browser_t*,int64 ) get_frame_byident;
cef_frame_t* function( cef_browser_t*,const( cef_string_t )* ) get_frame;
size_t function( cef_browser_t* ) get_frame_count;
void function( cef_browser_t*,size_t*,int64* ) get_frame_identifiers;
void function( cef_browser_t*,cef_string_list_t ) get_frame_names;
int function( cef_browser_t*,cef_process_id_t,cef_process_message_t* ) send_process_message;
}
}
struct cef_run_file_dialog_callback_t {
cef_base_t base;
extern( System ) @nogc nothrow void function( cef_run_file_dialog_callback_t*,cef_browser_host_t*,cef_string_list_t ) cont;
}
struct cef_navigation_entry_visitor_t {
cef_base_t base;
extern( System ) @nogc nothrow int function( cef_navigation_entry_visitor_t*, cef_navigation_entry_t*, int, int, int ) visit;
}
struct cef_pdf_print_callback_t {
cef_base_t base;
extern( System ) @nogc nothrow void function( cef_pdf_print_callback_t*, const( cef_string_t )*, int ) on_pdf_print_finished;
}
struct cef_download_image_callback_t {
cef_base_t base;
extern( System ) @nogc nothrow void function( cef_download_image_callback_t*, const( cef_string_t )*, int, cef_image_t* ) on_download_image_finished;
}
struct cef_browser_host_t {
cef_base_t base;
extern( System ) @nogc nothrow {
cef_browser_t* function( cef_browser_host_t* ) get_browser;
void function( cef_browser_host_t*, int ) close_browser;
int function( cef_browser_host_t* ) try_close_browser;
void function( cef_browser_host_t*, int ) set_focus;
cef_window_handle_t function( cef_browser_host_t* ) get_window_handle;
cef_window_handle_t function( cef_browser_host_t* ) get_opener_window_handle;
int function( cef_browser_host_t* ) has_view;
cef_client_t* function( cef_browser_host_t* ) get_client;
cef_request_context_t* function( cef_browser_host_t* ) get_request_context;
double function( cef_browser_host_t* ) get_zoom_level;
void function( cef_browser_host_t*, double ) set_zoom_level;
void function( cef_browser_host_t*, cef_file_dialog_mode_t, const( cef_string_t )*, const( cef_string_t )*, cef_string_list_t, int, cef_run_file_dialog_callback_t* ) run_file_dialog;
void function( cef_browser_host_t*, const( cef_string_t )* ) start_download;
void function( cef_browser_host_t*, const( cef_string_t )*, int, uint32, int, cef_download_image_callback_t* ) download_image;
void function( cef_browser_host_t* ) print;
void function( cef_browser_host_t*, const( cef_string_t )*, const( cef_pdf_print_settings_t )* settings, cef_pdf_print_callback_t* ) print_to_pdf;
void function( cef_browser_host_t*, int, const( cef_string_t )*, int, int, int ) find;
void function( cef_browser_host_t*, int ) stop_finding;
void function( cef_browser_host_t*, const( cef_window_info_t )*, cef_client_t*, const( cef_browser_settings_t )*, const( cef_point_t )* ) show_dev_tools;
void function( cef_browser_host_t* ) close_dev_tools;
int function( cef_browser_host_t* ) has_dev_tools;
void function( cef_browser_host_t*, cef_navigation_entry_visitor_t*, int ) get_navigation_entries;
void function( cef_browser_host_t*, int ) set_mouse_cursor_change_disabled;
int function( cef_browser_host_t* ) is_mouse_cursor_change_disabled;
void function( cef_browser_host_t*, const( cef_string_t )* ) replace_misspelling;
void function( cef_browser_host_t*, const( cef_string_t )* ) add_word_to_dictionary;
int function( cef_browser_host_t* ) is_window_rendering_disabled;
void function( cef_browser_host_t* ) was_resized;
void function( cef_browser_host_t*, int ) was_hidden;
void function( cef_browser_host_t* ) notify_screen_info_changed;
void function( cef_browser_host_t*, cef_paint_element_type_t ) invalidate;
void function( cef_browser_host_t* ) send_external_begin_frame;
void function( cef_browser_host_t*, const( cef_key_event_t )* ) send_key_event;
void function( cef_browser_host_t*, const( cef_mouse_event_t )*, cef_mouse_button_type_t, int, int ) send_mouse_click_event;
void function( cef_browser_host_t*, const( cef_mouse_event_t )*, int ) send_mouse_move_event;
void function( cef_browser_host_t* self, const( cef_mouse_event_t )*, int, int ) send_mouse_wheel_event;
void function( cef_browser_host_t*, int ) send_focus_event;
void function( cef_browser_host_t* ) send_capture_lost_event;
void function( cef_browser_host_t* ) notify_move_or_resize_started;
int function( cef_browser_host_t* ) get_windowless_frame_rate;
void function( cef_browser_host_t*, int ) set_windowless_frame_rate;
void function( cef_browser_host_t*, const( cef_string_t )*, size_t, const( cef_composition_underline_t* ), const( cef_range_t )*, const( cef_range_t )* ) ime_set_composition;
void function( cef_browser_host_t*, const( cef_string_t )*, const( cef_range_t )*, int ) ime_commit_text;
void function( cef_browser_host_t*, int ) ime_finish_composing_text;
void function( cef_browser_host_t* ) ime_cancel_composition;
void function( cef_browser_host_t*, cef_drag_data_t*, const( cef_mouse_event_t )*, cef_drag_operations_mask_t ) drag_target_drag_enter;
void function( cef_browser_host_t*, const( cef_mouse_event_t )*, cef_drag_operations_mask_t ) drag_target_drag_over;
void function( cef_browser_host_t* ) drag_target_drag_leave;
void function( cef_browser_host_t*, const( cef_mouse_event_t )* ) drag_target_drop;
void function( cef_browser_host_t*, int, int, cef_drag_operations_mask_t ) drag_source_ended_at;
void function( cef_browser_host_t* ) drag_source_system_drag_ended;
cef_navigation_entry_t* function( cef_browser_host_t* ) get_visible_navigation_entry;
void function( cef_browser_host_t*, cef_state_t ) set_accessibility_state;
void function( cef_browser_host_t*, int, const( cef_size_t )*, const( cef_size_t)* ) set_auto_resize_enabled;
cef_extension_t* function( cef_browser_host_t* ) get_extension;
int function( cef_browser_host_t* ) is_background_host;
}
}
// cef_browser_process_handler_capi
struct cef_browser_process_handler_t {
cef_base_t base;
extern( System ) @nogc nothrow {
void function( cef_browser_process_handler_t* ) on_context_initialized;
void function( cef_browser_process_handler_t*,cef_command_line_t* ) on_before_child_process_launch;
void function( cef_browser_process_handler_t*,cef_list_value_t* ) on_render_process_thread_created;
cef_print_handler_t* function( cef_browser_process_handler_t* ) get_print_handler;
void function( cef_browser_process_handler_t*, ulong ) on_schedule_message_pump_work;
}
}
// cef_callback_capi.h
struct cef_callback_t {
cef_base_t base;
extern( System ) @nogc nothrow {
void function( cef_callback_t* ) cont;
void function( cef_callback_t* ) cancel;
}
}
struct cef_completion_callback_t {
cef_base_t base;
extern( System ) @nogc nothrow void function( cef_completion_callback_t* ) on_complete;
}
// cef_client_capi.h
struct cef_client_t {
cef_base_t base;
extern( System ) @nogc nothrow {
cef_context_menu_handler_t* function( cef_client_t* ) get_context_menu_handler;
cef_dialog_handler_t* function( cef_client_t* ) get_dialog_handler;
cef_display_handler_t* function( cef_client_t* ) get_display_handler;
cef_download_handler_t* function( cef_client_t* ) get_download_handler;
cef_drag_handler_t* function( cef_client_t* ) get_drag_handler;
cef_find_handler_t* function( cef_client_t* ) get_find_handler;
cef_focus_handler_t* function( cef_client_t* ) get_focus_handler;
cef_jsdialog_handler_t* function( cef_client_t* ) get_jsdialog_handler;
cef_keyboard_handler_t* function( cef_client_t* ) get_keyboard_handler;
cef_life_span_handler_t* function( cef_client_t* ) get_life_span_handler;
cef_load_handler_t* function( cef_client_t* ) get_load_handler;
cef_render_handler_t* function( cef_client_t* ) get_render_handler;
cef_request_handler_t* function( cef_client_t*) get_request_handler;
int function( cef_client_t*,cef_browser_t*,cef_process_id_t,cef_process_message_t* ) on_process_message_received;
}
}
// cef_command_line_capi.h
struct cef_command_line_t {
cef_base_t base;
extern( System ) @nogc nothrow {
int function( cef_command_line_t* ) is_valid;
int function( cef_command_line_t* ) is_read_only;
cef_command_line_t* function( cef_command_line_t* ) copy;
void function( cef_command_line_t*,int,const( char* )* ) init_from_argv;
void function( cef_command_line_t*,const( cef_string_t )* ) init_from_string;
void function( cef_command_line_t* ) reset;
void function( cef_command_line_t*,cef_string_list_t ) get_argv;
cef_string_userfree_t function( cef_command_line_t* ) get_command_line_string;
cef_string_userfree_t function( cef_command_line_t* ) get_program;
void function( cef_command_line_t*,const( cef_string_t )* ) set_program;
int function( cef_command_line_t* ) has_switches;
int function( cef_command_line_t*,const( cef_string_t )* ) has_switch;
cef_string_userfree_t function( cef_command_line_t*,const( cef_string_t )* ) get_switch_value;
void function( cef_command_line_t*,cef_string_map_t ) get_switches;
void function( cef_command_line_t*,const( cef_string_t )* ) append_switch;
void function( cef_command_line_t*,const( cef_string_t )*,const( cef_string_t )* ) append_switch_with_value;
int function( cef_command_line_t* ) has_arguments;
void function( cef_command_line_t*,cef_string_list_t ) get_arguments;
void function( cef_command_line_t*,const( cef_string_t )* ) append_argument;
void function( cef_command_line_t*,const( cef_string_t )* ) prepend_wrapper;
}
}
// cef_context_menu_handler_capi.h
struct cef_run_context_menu_callback_t {
cef_base_t base;
extern( System ) @nogc nothrow {
void function( cef_run_context_menu_callback_t*, int, cef_event_flags_t ) cont;
void function( cef_run_context_menu_callback_t* ) cancel;
}
}
struct cef_context_menu_handler_t {
cef_base_t base;
extern( System ) @nogc nothrow {
void function( cef_context_menu_handler_t*,cef_browser_t*,cef_frame_t*,cef_context_menu_params_t*,cef_menu_model_t* ) on_before_context_menu;
int function( cef_context_menu_handler_t*, cef_browser_t*, cef_frame_t*, cef_context_menu_params_t*, cef_menu_model_t*, cef_run_context_menu_callback_t* ) run_context_menu;
int function( cef_context_menu_handler_t*,cef_browser_t*,cef_frame_t*,cef_context_menu_params_t*,int,cef_event_flags_t ) on_context_menu_command;
int function( cef_context_menu_handler_t*,cef_browser_t*,cef_frame_t* ) on_context_menu_dismissed;
}
}
struct cef_context_menu_params_t {
cef_base_t base;
extern( System ) @nogc nothrow {
int function( cef_context_menu_params_t* ) get_xcoord;
int function( cef_context_menu_params_t* ) get_ycoord;
cef_context_menu_type_flags_t function( cef_context_menu_params_t* ) get_type_flags;
cef_string_userfree_t function( cef_context_menu_params_t* ) get_link_url;
cef_string_userfree_t function( cef_context_menu_params_t* ) get_unfiltered_link_url;
cef_string_userfree_t function( cef_context_menu_params_t* ) get_source_url;
int function( cef_context_menu_params_t* ) has_image_contents;
cef_string_userfree_t function( cef_context_menu_params_t* ) get_page_url;
cef_string_userfree_t function( cef_context_menu_params_t* ) get_frame_url;
cef_string_userfree_t function( cef_context_menu_params_t* ) get_frame_charset;
cef_context_menu_media_type_t function( cef_context_menu_params_t* ) get_media_type;
cef_context_menu_media_state_flags_t function( cef_context_menu_params_t* ) get_media_state_flags;
cef_string_userfree_t function( cef_context_menu_params_t* ) get_selection_text;
int function( cef_context_menu_params_t*) is_editable;
int function( cef_context_menu_params_t* ) is_speech_input_enabled;
cef_context_menu_edit_state_flags_t function( cef_context_menu_params_t* ) get_edit_state_flags;
}
}
// cef_cookie_capi.h
struct cef_cookie_manager_t {
cef_base_t base;
extern( System ) @nogc nothrow {
void function( cef_cookie_manager_t*,cef_string_list_t ) set_supported_schemes;
int function( cef_cookie_manager_t*,cef_cookie_visitor_t* ) visit_all_cookies;
int function( cef_cookie_manager_t*,cef_cookie_visitor_t* ) visit_url_cookies;
int function( cef_cookie_manager_t*,const( cef_string_t )*,const( cef_cookie_t )* ) set_cookie;
int function( cef_cookie_manager_t*,const( cef_string_t )*,const( cef_string_t )* ) delete_cookie;
int function( cef_cookie_manager_t*,const( cef_string_t )*,int ) set_storage_path;
int function( cef_cookie_manager_t*,cef_completion_callback_t* ) flush_store;
}
}
struct cef_cookie_visitor_t {
cef_base_t base;
extern( System ) @nogc nothrow int function( cef_cookie_visitor_t*,const( cef_cookie_t )*,int,int,int* ) visit;
}
// cef_dialog_handler_capi.h
struct cef_file_dialog_callback_t {
cef_base_t base;
extern( System ) @nogc nothrow {
void function( cef_file_dialog_callback_t*,cef_string_list_t ) cont;
void function( cef_file_dialog_callback_t* ) cancel;
}
}
struct cef_dialog_handler_t {
cef_base_t base;
extern( System ) @nogc nothrow int function( cef_dialog_handler_t*,cef_browser_t*,cef_file_dialog_mode_t,const( cef_string_t )*,const( cef_string_t )*,cef_string_list_t,cef_file_dialog_callback_t* ) on_file_dialog;
}
// cef_display_handler_capi.h
struct cef_display_handler_t {
cef_base_t base;
extern( System ) @nogc nothrow {
void function( cef_display_handler_t*,cef_browser_t*,cef_frame_t*,const( cef_string_t )* ) on_address_change;
void function( cef_display_handler_t*,cef_browser_t*,const( cef_string_t )* ) on_title_change;
void function( cef_display_handler_t*, cef_browser_t*, cef_string_list_t ) on_favicon_urlchange;
void function( cef_display_handler_t*, cef_browser_t* , int ) on_fullscreen_mode_change;
int function( cef_display_handler_t*, cef_browser_t,cef_string_t* ) on_tooltip;
void function( cef_display_handler_t*,cef_browser_t*,const( cef_string_t )* ) on_status_message;
int function( cef_display_handler_t*,cef_browser_t*,const( cef_string_t )*,const( cef_string_t )*,int ) on_console_message;
int function( cef_display_handler_t*, cef_browser_t*, const( cef_size_t )* ) on_auto_resize;
void function( cef_display_handler_t*, cef_browser_t*, double ) on_loading_progress_change;
}
}
// cef_dom_capi.h
struct cef_domvisitor_t {
cef_base_t base;
extern( System ) @nogc nothrow void function( cef_domvisitor_t*,cef_domdocument_t* ) visit;
}
struct cef_domdocument_t {
cef_base_t base;
extern( System ) @nogc nothrow {
cef_dom_document_type_t function( cef_domdocument_t* ) get_type;
cef_domnode_t* function( cef_domdocument_t* ) get_document;
cef_domnode_t* function( cef_domdocument_t* ) get_body;
cef_domnode_t* function( cef_domdocument_t* ) get_head;
cef_string_userfree_t function( cef_domdocument_t* ) get_title;
cef_domnode_t* function( cef_domdocument_t*,const( cef_string_t )* ) get_element_by_id;
cef_domnode_t* function( cef_domdocument_t* ) get_focused_node;
int function( cef_domdocument_t* ) has_selection;
int function( cef_domdocument_t* ) get_selection_start_offset;
int function( cef_domdocument_t* ) get_selection_end_offset;
cef_string_userfree_t function( cef_domdocument_t* ) get_selection_as_markup;
cef_string_userfree_t function( cef_domdocument_t* ) get_selection_as_text;
cef_string_userfree_t function( cef_domdocument_t* ) get_base_url;
cef_string_userfree_t function( cef_domdocument_t*,const( cef_string_t )* ) get_complete_url;
}
}
struct cef_domnode_t {
cef_base_t base;
extern( System ) @nogc nothrow {
cef_dom_node_type_t function( cef_domnode_t* ) get_type;
int function( cef_domnode_t* ) is_text;
int function( cef_domnode_t* ) is_element;
int function( cef_domnode_t* ) is_editable;
int function( cef_domnode_t* ) is_form_control_element;
cef_string_userfree_t function( cef_domnode_t* ) get_form_control_element_type;
int function( cef_domnode_t*,cef_domnode_t* ) is_same;
cef_string_userfree_t function( cef_domnode_t* ) get_name;
cef_string_userfree_t function( cef_domnode_t* ) get_value;
int function( cef_domnode_t*,const( cef_string_t )* ) set_value;
cef_string_userfree_t function( cef_domnode_t* ) get_as_markup;
cef_domdocument_t* function( cef_domnode_t* ) get_document;
cef_domnode_t* function( cef_domnode_t* ) get_parent;
cef_domnode_t* function( cef_domnode_t* ) get_previous_sibling;
cef_domnode_t* function( cef_domnode_t* ) get_next_sibling;
int function( cef_domnode_t* ) has_children;
cef_domnode_t* function( cef_domnode_t* ) get_first_child;
cef_domnode_t* function( cef_domnode_t* ) get_last_child;
cef_string_userfree_t function( cef_domnode_t* ) get_element_tag_name;
int function( cef_domnode_t* ) has_element_attributes;
int function( cef_domnode_t*,const( cef_string_t )* ) has_element_attribute;
cef_string_userfree_t function( cef_domnode_t*,const( cef_string_t )* ) get_element_attribute;
void function( cef_domnode_t*,cef_string_map_t ) get_element_attributes;
int function( cef_domnode_t* ,const( cef_string_t )*,const( cef_string_t )* ) set_element_attribute;
cef_string_userfree_t function( cef_domnode_t* ) get_element_inner_text;
cef_rect_t function( cef_domnode_t* ) get_element_bounds;
}
}
struct cef_domevent_t {
cef_base_t base;
extern( System ) @nogc nothrow {
cef_string_userfree_t function( cef_domevent_t* ) get_type;
cef_dom_event_category_t function( cef_domevent_t* ) get_category;
cef_dom_event_phase_t function( cef_domevent_t* ) get_phase;
int function( cef_domevent_t* ) can_bubble;
int function( cef_domevent_t* ) can_cancel;
cef_domdocument_t* function( cef_domevent_t* ) get_document;
cef_domnode_t* function( cef_domevent_t* ) get_target;
cef_domnode_t* function( cef_domevent_t* ) get_current_target;
}
}
struct cef_domevent_listener_t {
cef_base_t base;
extern( System ) @nogc nothrow void function( cef_domevent_listener_t*,cef_domevent_t* ) handle_event;
}
// cef_download_handler_capi.h
struct cef_before_download_callback_t {
cef_base_t base;
extern( System ) @nogc nothrow void function( cef_before_download_callback_t,const( cef_string_t )*,int ) cont;
}
struct cef_download_item_callback_t {
cef_base_t base;
extern( System ) @nogc nothrow {
void function( cef_download_item_callback_t* ) cancel;
void function( cef_download_item_callback_t* ) pause;
void function( cef_download_item_callback_t* ) resume;
}
}
struct cef_download_handler_t {
cef_base_t base;
extern( System ) @nogc nothrow {
void function( cef_download_handler_t*,cef_browser_t*,cef_download_item_t*,const( cef_string_t )*,cef_before_download_callback_t* ) on_before_download;
void function( cef_download_handler_t*,cef_browser_t*,cef_download_item_t*,cef_download_item_callback_t* ) on_download_updated;
}
}
// cef_download_item_capi.h
struct cef_download_item_t {
cef_base_t base;
extern( System ) @nogc nothrow {
int function( cef_download_item_t* ) is_valid;
int function( cef_download_item_t* ) is_in_progress;
int function( cef_download_item_t* ) is_complete;
int function( cef_download_item_t* ) is_canceled;
int64 function( cef_download_item_t* ) get_current_speed;
int function( cef_download_item_t* ) get_percent_complete;
int64 function( cef_download_item_t* ) get_total_bytes;
int64 function( cef_download_item_t* ) get_received_bytes;
cef_time_t function( cef_download_item_t* ) get_start_time;
cef_time_t function( cef_download_item_t* ) get_end_time;
cef_string_userfree_t function( cef_download_item_t* ) get_full_path;
uint32 function( cef_download_item_t* ) get_id;
cef_string_userfree_t function( cef_download_item_t* ) get_url;
cef_string_userfree_t function( cef_download_item_t* ) get_suggested_file_name;
cef_string_userfree_t function( cef_download_item_t* ) get_content_disposition;
cef_string_userfree_t function( cef_download_item_t* ) get_mime_type;
}
}
// cef_drag_data_capi.h
struct cef_drag_data_t {
cef_base_t base;
extern( System ) @nogc nothrow {
cef_drag_data_t* function( cef_drag_data_t* ) clone;
int function( cef_drag_data_t* ) is_read_only;
int function( cef_drag_data_t* ) is_link;
int function( cef_drag_data_t* ) is_fragment;
int function( cef_drag_data_t* ) is_file;
int function( cef_drag_data_t* ) get_link_url;
cef_string_userfree_t function( cef_drag_data_t* ) get_link_title;
cef_string_userfree_t function( cef_drag_data_t* ) get_link_metadata;
cef_string_userfree_t function( cef_drag_data_t* ) get_fragment_text;
cef_string_userfree_t function( cef_drag_data_t* ) get_fragment_html;
cef_string_userfree_t function( cef_drag_data_t* ) get_fragment_base_url;
cef_string_userfree_t function( cef_drag_data_t* ) get_file_name;
size_t function( cef_drag_data_t*, cef_stream_writer_t* ) get_file_contents;
int function( cef_drag_data_t*, cef_string_list_t ) get_file_names;
void function( cef_drag_data_t*, const( cef_string_t )* ) set_link_url;
void function( cef_drag_data_t*, const( cef_string_t )* ) set_link_title;
void function( cef_drag_data_t*, const( cef_string_t )* ) set_link_metadata;
void function( cef_drag_data_t*, const( cef_string_t )* ) set_fragment_text;
void function( cef_drag_data_t*, const( cef_string_t )* ) set_fragment_html;
void function( cef_drag_data_t*, const( cef_string_t )* ) set_fragment_base_url;
void function( cef_drag_data_t* ) reset_file_contents;
void function( cef_drag_data_t*, const( cef_string_t )*, const( cef_string_t )* ) add_file;
cef_image_t* function( cef_drag_data_t* ) get_image;
cef_point_t function( cef_drag_data_t* ) get_image_hotspot;
int function( cef_drag_data_t* ) has_image;
}
}
// cef_drag_handler_capi.h
struct cef_drag_handler_t {
cef_base_t base;
extern( System ) @nogc nothrow {
int function( cef_drag_handler_t*,cef_browser_t*,cef_drag_data_t*,cef_drag_operations_mask_t ) on_drag_enter;
void function( cef_drag_handler_t*, cef_browser_t*, size_t, const( cef_draggable_region_t*) ) on_draggable_regions_changed;
}
}
// cef_extension_capi.h
struct cef_extension_t {
cef_base_t base;
extern( System ) @nogc nothrow {
cef_string_userfree_t function( cef_extension_t* ) get_identifier;
cef_string_userfree_t function( cef_extension_t* ) get_path;
cef_dictionary_value_t* function( cef_extension_t* ) get_manifest;
int function( cef_extension_t*, cef_extension_t* ) is_same;
cef_extension_handler_t* function( cef_extension_t* ) get_handler;
cef_request_context_t* function( cef_extension_t* ) get_loader_context;
int function( cef_extension_t* ) is_loaded;
void function( cef_extension_t* ) unload;
}
}
// cef_extension_handler_capi.h
struct cef_get_extension_resource_callback_t {
cef_base_t base;
extern( System ) @nogc nothrow {
void function( cef_get_extension_resource_callback_t*, cef_stream_reader_t* ) cont;
void function( cef_get_extension_resource_callback_t* ) cancel;
}
}
struct cef_extension_handler_t {
cef_base_t base;
extern( System ) @nogc nothrow {
void function( cef_extension_handler_t*, cef_errorcode_t ) on_extension_load_failed;
void function( cef_extension_handler_t*, cef_extension_t* ) on_extension_loaded;
void function( cef_extension_handler_t*, cef_extension_t* ) on_extension_unloaded;
int function( cef_extension_handler_t*, cef_extension_t*, const( cef_string_t )*, cef_client_t**, cef_browser_settings_t* ) on_before_background_browser;
int function( cef_extension_handler_t*, cef_extension_t*, cef_browser_t*, cef_browser_t*, int, const( cef_string_t )*, int, cef_window_info_t*, cef_client_t**, cef_browser_settings_t* ) on_before_browser;
cef_browser_t* function( cef_extension_handler_t*, cef_extension_t*, cef_browser_t*, int ) get_active_browser;
int function( cef_extension_handler_t*, cef_extension_t*, cef_browser_t*, int, cef_browser_t* ) can_access_browser;
int function( cef_extension_handler_t*, cef_extension_t*, cef_browser_t*, const( cef_string_t )*, cef_get_extension_resource_callback_t* ) get_extension_resource;
}
}
// cef_find_handler_capi.h
struct cef_find_handler_t {
cef_base_t base;
extern( System ) @nogc nothrow void function( cef_find_handler_t*, cef_browser_t*, int, int, const( cef_rect_t )*, int, int ) on_find_result;
}
// cef_focus_handler_capi.h
struct cef_focus_handler_t {
cef_base_t base;
extern( System ) @nogc nothrow {
void function( cef_focus_handler_t*,cef_browser_t*,int ) on_take_focus;
int function( cef_focus_handler_t*,cef_browser_t*,cef_focus_source_t* ) on_set_focus;
void function( cef_focus_handler_t*,cef_browser_t* ) on_get_focus;
}
}
// cef_frame_capi.h
struct cef_frame_t {
cef_base_t base;
extern( System ) @nogc nothrow {
int function( cef_frame_t* ) is_valid;
void function( cef_frame_t* ) undo;
void function( cef_frame_t* ) redo;
void function( cef_frame_t* ) cut;
void function( cef_frame_t* ) copy;
void function( cef_frame_t* ) paste;
void function( cef_frame_t* ) del;
void function( cef_frame_t*cef_drag_handler_t ) select_all;
void function( cef_frame_t* ) view_source;
void function( cef_frame_t*,cef_string_visitor_t* ) get_source;
void function( cef_frame_t*,cef_string_visitor_t* ) get_text;
void function( cef_frame_t*,cef_request_t* ) load_request;
void function( cef_frame_t*,const( cef_string_t )* ) load_url;
void function( cef_frame_t*,const( cef_string_t )*,const( cef_string_t )* ) load_string;
void function( cef_frame_t*,const( cef_string_t )*,const( cef_string_t )*,int ) execute_java_script;
int function( cef_frame_t* ) is_main;
int function( cef_frame_t* ) is_focused;
cef_string_userfree_t function( cef_frame_t* ) get_name;
int64 function( cef_frame_t* ) get_identifier;
cef_frame_t* function( cef_frame_t* ) get_parent;
cef_string_userfree_t function( cef_frame_t* ) get_url;
cef_browser_t* function( cef_frame_t* ) get_browser;
cef_v8context_t* function( cef_frame_t* ) get_v8context;
void function( cef_frame_t*,cef_domvisitor_t* ) visit_dom;
}
}
// cef_image_capi.h
struct cef_image_t {
cef_base_t base;
extern( System ) @nogc nothrow {
int function( cef_image_t* ) is_empty;
int function( cef_image_t*, cef_image_t* ) is_same;
int function( cef_image_t*, float, int, int, cef_color_type_t, cef_alpha_type_t, const( void )*, size_t ) add_bitmap;
int function( cef_image_t*, float, const( void )*, size_t ) add_png;
int function( cef_image_t*, float, const( void )*, size_t ) add_jpeg;
size_t function( cef_image_t* ) get_width;
size_t function( cef_image_t* ) get_height;
int function( cef_image_t*, float ) has_representation;
int function( cef_image_t*, float ) remove_representation;
int function( cef_image_t*, float, float*, int*, int* ) get_representation_info;
cef_binary_value_t* function( cef_image_t*, float, cef_color_type_t, cef_alpha_type_t, int*, int* ) get_as_bitmap;
cef_binary_value_t* function( cef_image_t*, float, int, int*, int* ) get_as_png;
cef_binary_value_t* function( cef_image_t*, float, int, int*, int* ) get_as_jpeg;
}
};
// cef_jsdialog_handler_capi.h
struct cef_jsdialog_callback_t {
cef_base_t base;
extern( System ) @nogc nothrow void function( cef_jsdialog_callback_t*,int,const( cef_string_t )* ) cont;
}
struct cef_jsdialog_handler_t {
cef_base_t base;
extern( System ) @nogc nothrow {
int function( cef_jsdialog_handler_t*,cef_browser_t*,const( cef_string_t )*,const( cef_string_t )*,cef_jsdialog_type_t,const( cef_string_t )*,cef_jsdialog_callback_t*,int* ) on_jsdialog;
int function( cef_jsdialog_handler_t*,cef_browser_t*,const( cef_string_t )*,int,cef_jsdialog_callback_t* ) on_before_unload_dialog;
void function( cef_jsdialog_handler_t*,cef_browser_t* ) on_reset_dialog_state;
void function( cef_jsdialog_handler_t*,cef_browser_t* ) on_dialog_closed;
}
}
// cef_keyboard_handler_capi.h
struct cef_keyboard_handler_t {
cef_base_t base;
extern( System ) @nogc nothrow {
int function( cef_keyboard_handler_t*,cef_browser_t*,const( cef_key_event_t )*,cef_event_handle_t,int* ) on_pre_key_event;
int function( cef_keyboard_handler_t*,cef_browser_t*,const( cef_key_event_t )*,cef_event_handle_t ) on_key_event;
}
}
// cef_life_span_handler_capi.h
struct cef_life_span_handler_t {
cef_base_t base;
extern( System ) @nogc nothrow {
int function( cef_life_span_handler_t*,cef_browser_t*,cef_frame_t*,const( cef_string_t )*,const( cef_string_t )*,const( cef_popup_features_t )*,cef_window_info_t*,cef_client_t**,cef_browser_settings_t*,int* ) on_before_popup;
void function( cef_life_span_handler_t*,cef_browser_t* ) on_after_created;
void function( cef_life_span_handler_t*,cef_browser_t* ) run_modal;
int function( cef_life_span_handler_t*,cef_browser_t* ) do_close;
void function( cef_life_span_handler_t*,cef_browser_t* ) on_before_close;
}
}
// cef_load_handler_capi.h
struct cef_load_handler_t {
cef_base_t base;
extern( System ) @nogc nothrow {
void function( cef_load_handler_t*,cef_browser_t*,int,int,int ) on_loading_state_change;
void function( cef_load_handler_t*,cef_browser_t*,cef_frame_t* ) on_load_start;
void function( cef_load_handler_t*,cef_browser_t*,cef_frame_t*,int ) on_load_end;
void function( cef_load_handler_t*,cef_browser_t*,cef_frame_t*,cef_errorcode_t,const( cef_string_t )*,const( cef_string_t )* ) on_load_error;
}
}
// cef_menu_model_capi.h
struct cef_menu_model_t {
cef_base_t base;
extern( System ) @nogc nothrow {
int function( cef_menu_model_t* ) is_sub_menu;
int function( cef_menu_model_t* ) clear;
int function( cef_menu_model_t* ) get_count;
int function( cef_menu_model_t* ) add_separator;
int function( cef_menu_model_t*,int,const( cef_string_t )* ) add_item;
int function( cef_menu_model_t*,int,const( cef_string_t )* ) add_check_item;
int function( cef_menu_model_t*,int,const( cef_string_t )*,int ) add_radio_item;
cef_menu_model_t* function( cef_menu_model_t*,int,const( cef_string_t )* ) add_sub_menu;
int function( cef_menu_model_t*,int ) insert_separator_at;
int function( cef_menu_model_t*,int,int,const( cef_string_t )* ) insert_item_at;
int function( cef_menu_model_t*,int,int,const( cef_string_t )* ) insert_check_item_at;
int function( cef_menu_model_t*,int,int,const( cef_string_t )*,int ) insert_radio_item_at;
cef_menu_model_t* function( cef_menu_model_t*,int,int,const( cef_string_t )* ) insert_submenu_at;
int function( cef_menu_model_t*,int ) remove;
int function( cef_menu_model_t*,int ) remove_at;
int function( cef_menu_model_t*,int ) get_index_of;
int function( cef_menu_model_t*,int ) get_command_id_at;
int function( cef_menu_model_t*,int,int ) set_command_id_at;
cef_string_userfree_t function( cef_menu_model_t*,int ) get_label;
cef_string_userfree_t function( cef_menu_model_t*,int ) get_label_at;
int function( cef_menu_model_t*,int,const( cef_string_t )* ) set_label;
int function( cef_menu_model_t*,int,const( cef_string_t )* ) set_label_at;
cef_menu_item_type_t function( cef_menu_model_t*,int ) get_type;
cef_menu_item_type_t function( cef_menu_model_t*,int ) get_type_at;
int function( cef_menu_model_t*,int ) get_group_id;
int function( cef_menu_model_t*,int ) get_group_id_at;
int function( cef_menu_model_t*,int,int ) set_group_id;
int function( cef_menu_model_t*,int,int ) set_group_id_at;
cef_menu_model_t* function( cef_menu_model_t*,int ) get_sub_menu;
cef_menu_model_t* function( cef_menu_model_t*,int ) get_sub_menu_at;
int function( cef_menu_model_t*,int ) is_visible;
int function( cef_menu_model_t*,int ) is_visible_at;
int function( cef_menu_model_t*,int,int ) set_visible;
int function( cef_menu_model_t*,int,int ) set_visible_at;
int function( cef_menu_model_t*,int ) is_enabled;
int function( cef_menu_model_t*,int ) is_enabled_at;
int function( cef_menu_model_t*,int,int ) set_enabled;
int function( cef_menu_model_t*,int,int ) set_enabled_at;
int function( cef_menu_model_t*,int ) is_checked;
int function( cef_menu_model_t*,int ) is_checked_at;
int function( cef_menu_model_t*,int,int ) set_checked;
int function( cef_menu_model_t*,int,int ) set_checked_at;
int function( cef_menu_model_t*,int ) has_accelerator;
int function( cef_menu_model_t*,int ) has_accelerator_at;
int function( cef_menu_model_t*,int,int,int,int,int ) set_accelerator;
int function( cef_menu_model_t*,int,int,int,int,int ) set_accelerator_at;
int function( cef_menu_model_t*,int ) remove_accelerator;
int function( cef_menu_model_t*,int ) remove_accelerator_at;
int function( cef_menu_model_t*,int,int*,int*,int*,int* ) get_accelerator;
int function( cef_menu_model_t*,int,int*,int*,int*,int* ) get_accelerator_at;
int function( cef_menu_model_t*, int, cef_menu_color_type_t, cef_color_t ) set_color;
int function( cef_menu_model_t*, int, cef_menu_color_type_t, cef_color_t ) set_color_at;
int function( cef_menu_model_t*, int, cef_menu_color_type_t, cef_color_t* ) get_color;
int function( cef_menu_model_t*, int, cef_menu_color_type_t, cef_color_t* ) get_color_at;
int function( cef_menu_model_t*, int, const( cef_string_t )* ) set_font_list;
int function( cef_menu_model_t*, int, const( cef_string_t )* ) set_font_list_at;
}
}
// cef_menu_model_delegate_capi.h
struct cef_menu_model_delegate_t {
cef_base_t base;
extern( System ) @nogc nothrow {
void function( cef_menu_model_delegate_t*, cef_menu_model_t*, int, cef_event_flags_t ) execute_command;
void function( cef_menu_model_delegate_t*, cef_menu_model_t*, const( cef_point_t)* ) mouse_outside_menu;
void function( cef_menu_model_delegate_t*, cef_menu_model_t*, int ) unhandled_open_submenu;
void function( cef_menu_model_delegate_t*, cef_menu_model_t*, int ) unhandled_close_submenu;
void function( cef_menu_model_delegate_t*, cef_menu_model_t* ) menu_will_show;
void function( cef_menu_model_delegate_t*, cef_menu_model_t* ) menu_closed;
int function( cef_menu_model_delegate_t*, cef_menu_model_t*, cef_string_t* ) format_label;
}
}
// cef_navigation_entry_capi.h
struct cef_navigation_entry_t {
cef_base_t base;
extern( System ) @nogc nothrow {
int function( cef_navigation_entry_t* self) is_valid;
cef_string_userfree_t function( cef_navigation_entry_t* ) get_url;
cef_string_userfree_t function( cef_navigation_entry_t* ) get_display_url;
cef_string_userfree_t function( cef_navigation_entry_t* ) get_original_url;
cef_string_userfree_t function( cef_navigation_entry_t* ) get_title;
cef_transition_type_t function( cef_navigation_entry_t* ) get_transition_type;
int function( cef_navigation_entry_t* ) has_post_data;
cef_time_t function( cef_navigation_entry_t* ) get_completion_time;
int function( cef_navigation_entry_t* ) get_http_status_code;
cef_sslstatus_t* function( cef_navigation_entry_t* ) get_sslstatus;
}
}
// cef_print_handler_capi.h
struct cef_print_dialog_callback_t {
cef_base_t base;
extern( System ) @nogc nothrow {
void function( cef_print_dialog_callback_t*, cef_print_settings_t* ) cont;
void function( cef_print_dialog_callback_t* ) cancel;
}
}
struct cef_print_job_callback_t {
cef_base_t base;
extern( System ) @nogc nothrow void function( cef_print_job_callback_t* ) cont;
}
struct cef_print_handler_t {
cef_base_t base;
extern( System ) @nogc nothrow {
void function( cef_print_handler_t*, cef_browser_t* ) on_print_start;
void function( cef_print_handler_t*, cef_browser_t*, cef_print_settings_t*, int ) on_print_settings;
int function( cef_print_handler_t*, cef_browser_t*, int, cef_print_dialog_callback_t* ) on_print_dialog;
int function( cef_print_handler_t*, cef_browser_t*, const( cef_string_t )*, const( cef_string_t )* , cef_print_job_callback_t* ) on_print_job;
void function( cef_print_handler_t*, cef_browser_t* ) on_print_reset;
cef_size_t function( cef_print_handler_t*, int ) get_pdf_paper_size;
}
}
// cef_print_settings_capi.h
struct cef_print_settings_t {
cef_base_t base;
extern( System ) @nogc nothrow {
int function( cef_print_settings_t* ) is_valid;
int function( cef_print_settings_t* ) is_read_only;
cef_print_settings_t* function( cef_print_settings_t* ) copy;
void function( cef_print_settings_t*, int ) set_orientation;
int function( cef_print_settings_t* ) is_landscape;
void function( cef_print_settings_t*, const( cef_size_t )*, const( cef_rect_t )* , int ) set_printer_printable_area;
void function( cef_print_settings_t*, const( cef_string_t )* ) set_device_name;
cef_string_userfree_t function( cef_print_settings_t* ) get_device_name;
void function( cef_print_settings_t*, int ) set_dpi;
int function( cef_print_settings_t* ) get_dpi;
void function( cef_print_settings_t*, size_t, const( cef_range_t )* ) set_page_ranges;
size_t function( cef_print_settings_t* ) get_page_ranges_count;
void function( cef_print_settings_t*, size_t*, cef_range_t* ) get_page_ranges;
void function( cef_print_settings_t*, int ) set_selection_only;
int function( cef_print_settings_t* ) is_selection_only;
void function( cef_print_settings_t*, int ) set_collate;
int function( cef_print_settings_t* ) will_collate;
void function( cef_print_settings_t*, cef_color_model_t ) set_color_model;
cef_color_model_t function( cef_print_settings_t* ) get_color_model;
void function( cef_print_settings_t*, int ) set_copies;
int function( cef_print_settings_t* ) get_copies;
void function( cef_print_settings_t*, cef_duplex_mode_t mode ) set_duplex_mode;
cef_duplex_mode_t function( cef_print_settings_t* ) get_duplex_mode;
}
}
// cef_process_message_capi.h
struct cef_process_message_t {
cef_base_t base;
extern( System ) @nogc nothrow {
int function( cef_process_message_t* ) is_valid;
int function( cef_process_message_t* ) is_read_only;
cef_process_message_t* function( cef_process_message_t* ) copy;
cef_string_userfree_t function( cef_process_message_t* ) get_name;
cef_list_value_t* function( cef_process_message_t* ) get_argument_list;
}
}
// cef_render_handler_capi.h
struct cef_render_handler_t {
cef_base_t base;
extern( System ) @nogc nothrow {
cef_accessibility_handler_t* function( cef_render_handler_t* ) get_accessibility_handler;
int function( cef_render_handler_t*,cef_browser_t*,cef_rect_t* ) get_root_screen_rect;
int function( cef_render_handler_t*,cef_browser_t*,cef_rect_t* ) get_view_rect;
int function( cef_render_handler_t*,cef_browser_t*,int,int,int*,int* ) get_screen_point;
int function( cef_render_handler_t*,cef_browser_t*,cef_screen_info_t* ) get_screen_info;
void function( cef_render_handler_t*,cef_browser_t*,int ) on_popup_show;
void function( cef_render_handler_t*,cef_browser_t*,const( cef_rect_t )* ) on_popup_size;
void function( cef_render_handler_t*,cef_browser_t*,cef_paint_element_type_t,size_t,const( cef_rect_t* ),const( void )*,int,int ) on_paint;
void function( cef_render_handler_t*, cef_browser_t*, cef_paint_element_type_t, size_t , const( cef_rect_t* ), void* ) on_accelerated_paint;
void function( cef_render_handler_t*,cef_browser_t*,cef_cursor_handle_t ) on_cursor_change;
int function( cef_render_handler_t*, cef_browser_t*, cef_drag_data_t*, cef_drag_operations_mask_t, int, int ) start_dragging;
void function( cef_render_handler_t*, cef_browser_t*, cef_drag_operations_mask_t ) update_drag_cursor;
void function( cef_render_handler_t*, cef_browser_t*, double, double ) on_scroll_offset_changed;
void function( cef_render_handler_t*, cef_browser_t*, const( cef_range_t )*, size_t, const( cef_rect_t* ) ) on_ime_composition_range_changed;
void function( cef_render_handler_t*, cef_browser_t*, const( cef_string_t )*, const( cef_range_t )* ) on_text_selection_changed;
}
}
// cef_render_process_handler_capi.h
struct cef_render_process_handler_t {
cef_base_t base;
extern( System ) @nogc nothrow {
void function( cef_render_process_handler_t*,cef_list_value_t* ) on_render_thread_created;
void function( cef_render_process_handler_t* ) on_web_kit_initialized;
void function( cef_render_process_handler_t*,cef_browser_t* ) on_browser_created;
void function( cef_render_process_handler_t*,cef_browser_t* ) on_browser_destroyed;
cef_load_handler_t* function( cef_render_process_handler_t* ) get_load_handler;
int function( cef_render_process_handler_t*,cef_browser_t*,cef_frame_t*,cef_request_t*,cef_navigation_type_t,int ) on_before_navigation;
void function( cef_render_process_handler_t*,cef_browser_t*,cef_frame_t*,cef_v8context_t* ) on_context_created;
void function( cef_render_process_handler_t*,cef_browser_t*,cef_frame_t*,cef_v8context_t* ) on_context_released;
void function( cef_render_process_handler_t*,cef_browser_t*,cef_frame_t*,cef_v8context_t*,cef_v8exception_t*,cef_v8stack_trace_t* ) on_uncaught_exception;
void function( cef_render_process_handler_t*,cef_browser_t*,cef_frame_t*,cef_domnode_t* ) on_focused_node_changed;
int function( cef_render_process_handler_t*,cef_browser_t*,cef_process_id_t,cef_process_message_t* ) on_process_message_received;
}
}
// cef_request_capi.h
struct cef_request_t {
cef_base_t base;
extern( System ) @nogc nothrow {
int function( cef_request_t* ) is_read_only;
cef_string_userfree_t function( cef_request_t* ) get_url;
void function( cef_request_t*,const( cef_string_t )* ) set_url;
cef_string_userfree_t function( cef_request_t* ) get_method;
void function( cef_request_t*,const( cef_string_t )* ) set_method;
void function( cef_request_t*, const( cef_string_t )*, cef_referrer_policy_t ) set_referrer;
cef_string_userfree_t function( cef_request_t* ) get_referrer_url;
cef_referrer_policy_t function( cef_request_t* ) get_referrer_policy;
cef_post_data_t* function( cef_request_t* ) get_post_data;
void function( cef_request_t*, cef_post_data_t* ) set_post_data;
void function( cef_request_t*,cef_string_multimap_t ) get_header_map;
void function( cef_request_t*,cef_string_multimap_t ) set_header_map;
void function( cef_request_t*,const( cef_string_t )*,const( cef_string_t )*,cef_post_data_t*,cef_string_multimap_t ) set;
int function( cef_request_t* ) get_flags;
void function( cef_request_t*,int ) set_flags;
cef_string_userfree_t function( cef_request_t* ) get_first_party_for_cookies;
void function( cef_request_t*,const( cef_string_t )* ) set_first_party_for_cookies;
cef_resource_type_t function( cef_request_t* ) get_resource_type;
cef_transition_type_t function( cef_request_t* ) get_transition_type;
ulong function( cef_request_t* ) get_identifier;
}
}
struct cef_post_data_t {
cef_base_t base;
extern( System ) @nogc nothrow {
int function( cef_post_data_t* ) is_read_only;
int function( cef_post_data_t* ) has_excluded_elements;
size_t function( cef_post_data_t* ) get_element_count;
void function( cef_post_data_t*,size_t*,cef_post_data_element_t** ) get_elements;
int function( cef_post_data_t*,cef_post_data_element_t* ) remove_element;
int function( cef_post_data_t*,cef_post_data_element_t* ) add_element;
void function( cef_post_data_t* ) remove_elements;
}
}
struct cef_post_data_element_t {
cef_base_t base;
extern( System ) @nogc nothrow {
int function( cef_post_data_element_t* ) is_read_only;
void function( cef_post_data_element_t* ) set_to_empty;
void function( cef_post_data_element_t*,const( cef_string_t )* ) set_to_file;
void function( cef_post_data_element_t*,size_t,const( void )* ) set_to_bytes;
cef_postdataelement_type_t function( cef_post_data_element_t* ) get_type;
cef_string_userfree_t function( cef_post_data_element_t* ) get_file;
size_t function( cef_post_data_element_t* ) get_bytes_count;
size_t function( cef_post_data_element_t*,size_t,void* ) get_bytes;
}
}
// cef_request_context_capi.h
struct cef_resolve_callback_t {
cef_base_t base;
extern( System ) @nogc nothrow void function( cef_resolve_callback_t*, cef_errorcode_t, cef_string_list_t ) on_resolve_completed;
}
struct cef_request_context_t {
cef_base_t base;
extern( System ) @nogc nothrow {
int function( cef_request_context_t* self, cef_request_context_t* ) is_same;
int function( cef_request_context_t*, cef_request_context_t* ) is_sharing_with;
int function( cef_request_context_t* ) is_global;
cef_request_context_handler_t* function( cef_request_context_t* ) get_handler;
cef_string_userfree_t function( cef_request_context_t* ) get_cache_path;
cef_cookie_manager_t* function( cef_request_context_t*, cef_completion_callback_t* ) get_default_cookie_manager;
int function( cef_request_context_t*, const( cef_string_t )*, const( cef_string_t )*, cef_scheme_handler_factory_t* ) register_scheme_handler_factory;
int function( cef_request_context_t* ) clear_scheme_handler_factories;
void function( cef_request_context_t*, int ) purge_plugin_list_cache;
int function( cef_request_context_t*, const( cef_string_t )* name) has_preference;
cef_value_t* function( cef_request_context_t*, cef_string_t* ) get_preference;
cef_dictionary_value_t* function( cef_request_context_t*, int ) get_all_preferences;
int function( cef_request_context_t*, const( cef_string_t )* ) can_set_preference;
int function( cef_request_context_t*, const( cef_string_t )*, cef_value_t*, cef_string_t* ) set_preference;
void function( cef_request_context_t*, cef_completion_callback_t* ) clear_certificate_exceptions;
void function( cef_request_context_t*, cef_completion_callback_t* ) close_all_connections;
void function( cef_request_context_t*, const( cef_string_t )*, cef_resolve_callback_t* ) resolve_host;
cef_errorcode_t function( cef_request_context_t*, const( cef_string_t )*, cef_string_list_t ) resolve_host_cached;
void function( cef_request_context_t*, const( cef_string_t )*, cef_dictionary_value_t*, cef_extension_handler_t* ) load_extension;
int function( cef_request_context_t*, const( cef_string_t )* ) did_load_extension;
int function( cef_request_context_t*, const( cef_string_t )* ) has_extension;
int function( cef_request_context_t*, cef_string_list_t ) get_extensions;
cef_extension_t* function( cef_request_context_t*, const( cef_string_t )* ) get_extension;
}
}
// cef_request_context_handler_capi.h
struct cef_request_context_handler_t {
cef_base_t base;
extern( System ) @nogc nothrow {
void function( cef_request_context_handler_t*, cef_request_context_t* ) on_request_context_initialized;
cef_cookie_manager_t* function( cef_request_context_handler_t* ) get_cookie_manager;
int function( cef_request_context_handler_t*, const( cef_string_t )*, const( cef_string_t )*, int, const( cef_string_t )*, cef_web_plugin_info_t*, cef_plugin_policy_t* ) on_before_plugin_load;
}
}
// cef_request_handler_capi.h
struct cef_request_callback_t {
cef_base_t base;
extern( System ) @nogc nothrow {
void function( cef_request_callback_t*,int ) cont;
void function( cef_request_callback_t* ) cancel;
}
}
struct cef_select_client_certificate_callback_t {
cef_base_t base;
extern( System ) @nogc nothrow void function( cef_select_client_certificate_callback_t*, cef_x509certificate_t* ) select;
}
struct cef_request_handler_t {
cef_base_t base;
extern( System ) @nogc nothrow {
int function( cef_request_handler_t*,cef_browser_t*,cef_frame_t*,cef_request_t*,int ) on_before_browse;
int function( cef_request_handler_t*, cef_browser_t*, cef_frame_t*, const( cef_string_t )*, cef_window_open_disposition_t, int ) on_open_urlfrom_tab;
int function( cef_request_handler_t*,cef_browser_t*,cef_frame_t*,cef_request_t* ) on_before_resource_load;
cef_resource_handler_t* function( cef_request_handler_t*,cef_browser_t*,cef_frame_t*,cef_request_t* ) get_resource_handler;
void function( cef_request_handler_t*,cef_browser_t*,cef_frame_t*,const( cef_string_t )*,cef_string_t* ) on_resource_redirect;
int function( cef_request_handler_t*, cef_browser_t*, cef_frame_t*, cef_request_t*, cef_response_t* ) on_resource_response;
cef_response_filter_t* function( cef_request_handler_t*, cef_browser_t*, cef_frame_t*, cef_request_t*, cef_response_t* ) get_resource_response_filter;
void function( cef_request_handler_t*, cef_browser_t*, cef_frame_t*, cef_request_t*, cef_response_t*, cef_urlrequest_status_t, ulong ) on_resource_load_complete;
int function( cef_request_handler_t*,cef_browser_t*,cef_frame_t*,int,const( cef_string_t )*,int,const( cef_string_t )*,const( cef_string_t )*,cef_auth_callback_t* ) get_auth_credentials;
int function( cef_request_handler_t*, cef_browser_t*, cef_frame_t*, cef_request_t* ) can_get_cookies;
int function( cef_request_handler_t*, cef_browser_t*, cef_frame_t*, cef_request_t*, const( cef_cookie_t )* ) can_set_cookie;
int function( cef_request_handler_t*, cef_browser_t*, const( cef_string_t )*, ulong, cef_request_callback_t* ) on_quota_request;
void function( cef_request_handler_t*, cef_browser_t*, const( cef_string_t )*, int* ) on_protocol_execution;
int function( cef_request_handler_t*, cef_browser_t*, cef_errorcode_t, const( cef_string_t )*, cef_sslinfo_t*, cef_request_callback_t* ) on_certificate_error;
int function( cef_request_handler_t*, cef_browser_t*, int, const( cef_string_t )*, int, size_t, const( cef_x509certificate_t*), cef_select_client_certificate_callback_t* ) on_select_client_certificate;
void function( cef_request_handler_t*, cef_browser_t*, const( cef_string_t )* ) on_plugin_crashed;
void function( cef_request_handler_t*, cef_browser_t* ) on_render_view_ready;
void function( cef_request_handler_t*,cef_browser_t*,cef_termination_status_t ) on_render_process_terminated;
}
}
// cef_resource_bundle_capi.h
struct cef_resource_bundle_t {
cef_base_t base;
extern( System ) @nogc nothrow {
cef_string_userfree_t function( cef_resource_bundle_t*, int ) get_localized_string;
int function( cef_resource_bundle_t*, int, void**, size_t* ) get_data_resource;
int function( cef_resource_bundle_t*, int, cef_scale_factor_t, void**, size_t* ) get_data_resource_for_scale;
}
}
// cef_resource_bundle_handler_capi.h
struct cef_resource_bundle_handler_t {
cef_base_t base;
extern( System ) @nogc nothrow {
int function( cef_resource_bundle_handler_t*,int,cef_string_t* ) get_localized_string;
int function( cef_resource_bundle_handler_t*,int,void**,size_t* ) get_data_resource;
int function( cef_resource_bundle_handler_t*, int, cef_scale_factor_t, void**, size_t* ) get_data_resource_for_scale;
}
}
// cef_resource_handler_capi.h
struct cef_resource_handler_t {
cef_base_t base;
extern( System ) @nogc nothrow {
int function( cef_resource_handler_t*,cef_request_t*,cef_callback_t* ) process_request;
void function( cef_resource_handler_t*,cef_response_t*,int64*,cef_string_t* ) get_response_headers;
int function( cef_resource_handler_t*,void*,int,int*,cef_callback_t* ) read_response;
int function( cef_resource_handler_t*,const( cef_cookie_t )* ) can_get_cookie;
int function( cef_resource_handler_t*,const( cef_cookie_t )* ) can_set_cookie;
void function( cef_resource_handler_t* ) cancel;
}
}
// cef_reponse_capi.h
struct cef_response_t {
cef_base_t base;
extern( System ) @nogc nothrow {
int function( cef_response_t* ) is_read_only;
cef_errorcode_t function( cef_response_t* ) get_error;
void function( cef_response_t*,cef_errorcode_t ) set_error;
int function( cef_response_t* ) get_status;
void function( cef_response_t*,int ) set_status;
cef_string_userfree_t function( cef_response_t* ) get_status_text;
void function( cef_response_t*,const( cef_string_t )* ) set_status_text;
cef_string_userfree_t function( cef_response_t* ) get_mime_type;
void function( cef_response_t*,const( cef_string_t )* ) set_mime_type;
cef_string_userfree_t function( cef_response_t*,const( cef_string_t )* ) get_header;
void function( cef_response_t*,cef_string_multimap_t ) get_header_map;
void function( cef_response_t*,cef_string_multimap_t ) set_header_map;
cef_string_userfree_t function( cef_response_t* ) get_url;
void function( cef_response_t*, const( cef_string_t )* ) set_url;
}
}
// cef_response_filter_capi.h
struct cef_response_filter_t {
cef_base_t base;
extern( System ) @nogc nothrow {
int function( cef_response_filter_t* ) init_filter;
cef_response_filter_status_t function( cef_response_filter_t*, void*, size_t, size_t*, void*, size_t, size_t* ) filter;
}
}
// cef_scheme_capi.h
struct cef_scheme_registrar_t {
cef_base_t base;
extern( System ) @nogc nothrow int function( cef_scheme_registrar_t*,const( cef_string_t )*,int,int,int,int,int,int ) add_custom_scheme;
}
struct cef_scheme_handler_factory_t {
cef_base_t base;
extern( System ) @nogc nothrow cef_resource_handler_t* function( cef_scheme_handler_factory_t*,cef_browser_t*,cef_frame_t*,const( cef_string_t )*,cef_request_t* ) create;
}
// cef_server_capi.h
struct cef_server_t {
cef_base_t base;
extern( System ) @nogc nothrow {
cef_task_runner_t* function( cef_server_t* ) get_task_runner;
void function( cef_server_t* ) shutdown;
int function( cef_server_t* ) is_running;
cef_string_userfree_t function( cef_server_t* ) get_address;
int function( cef_server_t* ) has_connection;
int function( cef_server_t*, int ) is_valid_connection;
void function( cef_server_t*, int, const( cef_string_t )*, const( void )*, size_t ) send_http200response;
void function( cef_server_t*, int ) send_http404response;
void function( cef_server_t*, int, const( cef_string_t )* ) send_http500response;
void function( cef_server_t*, int, int , const( cef_string_t )*, ulong, cef_string_multimap_t ) send_http_response;
void function( cef_server_t*, int, const( void )*, size_t ) send_raw_data;
void function( cef_server_t*, int ) close_connection;
void function( cef_server_t*, int, const( void )*, size_t ) send_web_socket_message;
}
}
struct cef_server_handler_t {
cef_base_t base;
extern( System ) @nogc nothrow {
void function( cef_server_handler_t*, cef_server_t* ) on_server_created;
void function( cef_server_handler_t*, cef_server_t* ) on_server_destroyed;
void function( cef_server_handler_t*, cef_server_t*, int ) on_client_connected;
void function( cef_server_handler_t*, cef_server_t*, int ) on_client_disconnected;
void function( cef_server_handler_t*, cef_server_t*, int, const( cef_string_t )*, cef_request_t* ) on_http_request;
void function( cef_server_handler_t*, cef_server_t*, int, const( cef_string_t )*, cef_request_t*, cef_callback_t* ) on_web_socket_request;
void function( cef_server_handler_t*, cef_server_t* server, int ) on_web_socket_connected;
void function( cef_server_handler_t*, cef_server_t*, int, const( void )*, size_t ) on_web_socket_message;
}
}
// cef_ssl_info_capi.h
struct cef_sslinfo_t {
cef_base_t base;
extern( System ) @nogc nothrow {
cef_cert_status_t function( cef_sslinfo_t* ) get_cert_status;
cef_x509certificate_t* function( cef_sslinfo_t* self) get_x509certificate;
}
}
// cef_ssl_status_capi.h
struct cef_sslstatus_t {
cef_base_t base;
extern( System ) @nogc nothrow {
int function( cef_sslstatus_t* ) is_secure_connection;
cef_cert_status_t function( cef_sslstatus_t* ) get_cert_status;
cef_ssl_version_t function( cef_sslstatus_t* ) get_sslversion;
cef_ssl_content_status_t function( cef_sslstatus_t* ) get_content_status;
cef_x509certificate_t* function( cef_sslstatus_t* ) get_x509certificate;
}
}
// cef_stream_capi.h
struct cef_read_handler_t {
cef_base_t base;
extern( System ) @nogc nothrow {
size_t function( cef_read_handler_t*, void*, size_t, size_t ) read;
int function( cef_read_handler_t*, ulong, int ) seek;
ulong function( cef_read_handler_t* ) tell;
int function( cef_read_handler_t* ) eof;
int function( cef_read_handler_t* ) may_block;
}
}
struct cef_stream_reader_t {
cef_base_t base;
extern( System ) @nogc nothrow {
size_t function( cef_stream_reader_t*, void*, size_t, size_t ) read;
int function( cef_stream_reader_t*, ulong, int ) seek;
ulong function( cef_stream_reader_t* ) tell;
int function( cef_stream_reader_t* ) eof;
int function( cef_stream_reader_t* ) may_block;
}
}
struct cef_write_handler_t {
cef_base_t base;
extern( System ) @nogc nothrow {
size_t function( cef_write_handler_t*, const( void )*, size_t, size_t ) write;
int function( cef_write_handler_t*, ulong, int ) seek;
ulong function( cef_write_handler_t* ) tell;
int function( cef_write_handler_t* ) flush;
int function( cef_write_handler_t* ) may_block;
}
}
struct cef_stream_writer_t {
cef_base_t base;
extern( System ) @nogc nothrow {
size_t function( cef_stream_writer_t*, const( void )*, size_t, size_t ) write;
int function( cef_stream_writer_t*, ulong, int ) seek;
ulong function( cef_stream_writer_t* ) tell;
int function( cef_stream_writer_t* ) flush;
int function( cef_stream_writer_t* ) may_block;
}
}
// cef_string_visitor_capi.h
struct cef_string_visitor_t {
cef_base_t base;
extern( System ) @nogc nothrow void function( cef_string_visitor_t*, const( cef_string_t )* ) visit;
}
// cef_task_capi.h
struct cef_task_t {
cef_base_t base;
extern( System ) @nogc nothrow void function( cef_task_t* ) execute;
}
struct cef_task_runner_t {
cef_base_t base;
extern( System ) @nogc nothrow {
int function( cef_task_runner_t*, cef_task_runner_t* ) is_same;
int function( cef_task_runner_t* ) belongs_to_current_thread;
int function( cef_task_runner_t*, cef_thread_id_t ) belongs_to_thread;
int function( cef_task_runner_t*, cef_task_t* ) post_task;
int function( cef_task_runner_t*, cef_task_t*, ulong ) post_delayed_task;
}
}
// cef_thread_capi.h
struct cef_thread_t {
cef_base_t base;
extern( System ) @nogc nothrow {
cef_task_runner_t* function( cef_thread_t* ) get_task_runner;
cef_platform_thread_id_t function( cef_thread_t* ) get_platform_thread_id;
void function( cef_thread_t* ) stop;
int function( cef_thread_t* ) is_running;
}
}
// cef_trace_capi.h
struct cef_end_tracing_callback_t {
cef_base_t base;
extern( System ) @nogc nothrow void function( cef_end_tracing_callback_t*, const( cef_string_t )* ) on_end_tracing_complete;
}
// cef_urlrequest_capi.h
struct cef_urlrequest_t {
cef_base_t base;
extern( System ) @nogc nothrow {
cef_request_t* function( cef_urlrequest_t* ) get_request;
cef_urlrequest_client_t* function( cef_urlrequest_t* ) get_client;
cef_urlrequest_status_t function( cef_urlrequest_t* ) get_request_status;
cef_errorcode_t function( cef_urlrequest_t* ) get_request_error;
cef_response_t* function( cef_urlrequest_t* ) get_response;
int function( cef_urlrequest_t* ) response_was_cached;
void function( cef_urlrequest_t* ) cancel;
}
}
struct cef_urlrequest_client_t {
cef_base_t base;
extern( System ) @nogc nothrow {
void function( cef_urlrequest_client_t*, cef_urlrequest_t* ) on_request_complete;
void function( cef_urlrequest_client_t*, cef_urlrequest_t*, ulong, ulong ) on_upload_progress;
void function( cef_urlrequest_client_t*, cef_urlrequest_t*, ulong, ulong ) on_download_progress;
void function( cef_urlrequest_client_t*, cef_urlrequest_t*, const( void )*, size_t) on_download_data;
int function( cef_urlrequest_client_t*, int, const( cef_string_t )*, int, const( cef_string_t )*, const( cef_string_t )*, cef_auth_callback_t* ) get_auth_credentials;
}
}
// cef_v8_capi.h
struct cef_v8context_t {
cef_base_t base;
extern( System ) @nogc nothrow {
cef_task_runner_t* function( cef_v8context_t* slf) get_task_runner;
int function( cef_v8context_t* ) is_valid;
cef_browser_t* function( cef_v8context_t* ) get_browser;
cef_frame_t* function( cef_v8context_t* ) get_frame;
cef_v8value_t* function( cef_v8context_t* ) get_global;
int function( cef_v8context_t* ) enter;
int function( cef_v8context_t* ) exit;
int function( cef_v8context_t*, cef_v8context_t* ) is_same;
int function( cef_v8context_t*, const( cef_string_t )*, const( cef_string_t )*, int, cef_v8value_t**, cef_v8exception_t** ) eval;
}
}
struct cef_v8handler_t {
cef_base_t base;
extern( System ) @nogc nothrow int function( cef_v8handler_t*, const( cef_string_t )*, cef_v8value_t*, size_t, const( cef_v8value_t* ), cef_v8value_t**, cef_string_t* ) execute;
}
struct cef_v8accessor_t {
cef_base_t base;
extern( System ) @nogc nothrow {
int function( cef_v8accessor_t*, const( cef_string_t )*, cef_v8value_t*, cef_v8value_t**, cef_string_t* ) get;
int function( cef_v8accessor_t*, const( cef_string_t )*, cef_v8value_t*, cef_v8value_t*, cef_string_t* ) set;
}
}
struct cef_v8interceptor_t {
cef_base_t base;
extern( System ) @nogc nothrow {
int function( cef_v8interceptor_t*, const( cef_string_t )*, cef_v8value_t*, cef_v8value_t**, cef_string_t* ) get_byname;
int function( cef_v8interceptor_t*, int, cef_v8value_t*, cef_v8value_t**, cef_string_t* ) get_byindex;
int function( cef_v8interceptor_t*, const( cef_string_t )*, cef_v8value_t*, cef_v8value_t*, cef_string_t* ) set_byname;
int function( cef_v8interceptor_t*, int, cef_v8value_t*, cef_v8value_t*, cef_string_t* ) set_byindex;
}
}
struct cef_v8exception_t {
cef_base_t base;
extern( System ) @nogc nothrow {
cef_string_userfree_t function( cef_v8exception_t* ) get_message;
cef_string_userfree_t function( cef_v8exception_t* ) get_source_line;
cef_string_userfree_t function( cef_v8exception_t* ) get_script_resource_name;
int function( cef_v8exception_t* ) get_line_number;
int function( cef_v8exception_t* ) get_start_position;
int function( cef_v8exception_t* ) get_end_position;
int function( cef_v8exception_t* ) get_start_column;
int function( cef_v8exception_t* ) get_end_column;
}
}
struct cef_v8array_buffer_release_callback_t {
cef_base_t base;
extern( System ) @nogc nothrow void function( cef_v8array_buffer_release_callback_t*, void* ) release_buffer;
}
struct cef_v8value_t {
cef_base_t base;
extern( System ) @nogc nothrow {
int function( cef_v8value_t* ) is_valid;
int function( cef_v8value_t* ) is_undefined;
int function( cef_v8value_t* ) is_null;
int function( cef_v8value_t* ) is_bool;
int function( cef_v8value_t* ) is_int;
int function( cef_v8value_t* ) is_uint;
int function( cef_v8value_t* ) is_double;
int function( cef_v8value_t* ) is_date;
int function( cef_v8value_t* ) is_string;
int function( cef_v8value_t* ) is_object;
int function( cef_v8value_t* ) is_array;
int function( cef_v8value_t* ) is_array_buffer;
int function( cef_v8value_t* ) is_function;
int function( cef_v8value_t*, cef_v8value_t* ) is_same;
int function( cef_v8value_t* ) get_bool_value;
int32 function( cef_v8value_t* ) get_int_value;
uint32 function( cef_v8value_t* ) get_uint_value;
double function( cef_v8value_t* ) get_double_value;
cef_time_t function( cef_v8value_t* ) get_date_value;
cef_string_userfree_t function( cef_v8value_t* ) get_string_value;
int function( cef_v8value_t* ) is_user_created;
int function( cef_v8value_t* ) has_exception;
cef_v8exception_t* function( cef_v8value_t* ) get_exception;
int function( cef_v8value_t* ) clear_exception;
int function( cef_v8value_t* ) will_rethrow_exceptions;
int function( cef_v8value_t*, int ) set_rethrow_exceptions;
int function( cef_v8value_t*, const( cef_string_t )* ) has_value_bykey;
int function( cef_v8value_t*, int ) has_value_byindex;
int function( cef_v8value_t*, const( cef_string_t )* ) delete_value_bykey;
int function( cef_v8value_t*, int ) delete_value_byindex;
cef_v8value_t* function( cef_v8value_t*, const( cef_string_t )* ) get_value_bykey;
cef_v8value_t* function( cef_v8value_t*, int ) get_value_byindex;
int function( cef_v8value_t*, const( cef_string_t )*, cef_v8value_t*, cef_v8_propertyattribute_t ) set_value_bykey;
int function( cef_v8value_t*, int, cef_v8value_t* ) set_value_byindex;
int function( cef_v8value_t*, const( cef_string_t )*, cef_v8_accesscontrol_t, cef_v8_propertyattribute_t ) set_value_byaccessor;
int function( cef_v8value_t*, cef_string_list_t ) get_keys;
int function( cef_v8value_t*, cef_base_t* ) set_user_data;
cef_base_t* function( cef_v8value_t* ) get_user_data;
int function( cef_v8value_t* ) get_externally_allocated_memory;
int function( cef_v8value_t*, int ) adjust_externally_allocated_memory;
int function( cef_v8value_t* ) get_array_length;
cef_v8array_buffer_release_callback_t* function( cef_v8value_t* ) get_array_buffer_release_callback;
int function( cef_v8value_t* ) neuter_array_buffer;
cef_string_userfree_t function( cef_v8value_t* ) get_function_name;
cef_v8handler_t* function( cef_v8value_t* ) get_function_handler;
cef_v8value_t* function( cef_v8value_t*, cef_v8value_t*, size_t, const( cef_v8value_t* ) ) execute_function;
cef_v8value_t* function( cef_v8value_t*, cef_v8context_t*, cef_v8value_t*, size_t, const( cef_v8value_t* )) execute_function_with_context;
}
}
struct cef_v8stack_trace_t {
cef_base_t base;
extern( System ) @nogc nothrow {
int function( cef_v8stack_trace_t* ) is_valid;
int function( cef_v8stack_trace_t* ) get_frame_count;
cef_v8stack_frame_t* function( cef_v8stack_trace_t*, int ) get_frame;
}
}
struct cef_v8stack_frame_t {
cef_base_t base;
extern( System ) @nogc nothrow {
int function( cef_v8stack_frame_t* ) is_valid;
cef_string_userfree_t function( cef_v8stack_frame_t* ) get_script_name;
cef_string_userfree_t function( cef_v8stack_frame_t* ) get_script_name_or_source_url;
cef_string_userfree_t function( cef_v8stack_frame_t* ) get_function_name;
int function( cef_v8stack_frame_t* ) get_line_number;
int function( cef_v8stack_frame_t* ) get_column;
int function( cef_v8stack_frame_t* ) is_eval;
int function( cef_v8stack_frame_t* ) is_constructor;
}
}
// cef_values_capi.h
struct cef_value_t {
cef_base_t base;
extern( System ) @nogc nothrow {
int function( cef_value_t* ) is_valid;
int function( cef_value_t* ) is_owned;
int function( cef_value_t* ) is_read_only;
int function( cef_value_t*, cef_value_t* ) is_same;
int function( cef_value_t*, cef_value_t* ) is_equal;
cef_value_t* function( cef_value_t* ) copy;
cef_value_type_t function( cef_value_t* ) get_type;
int function( cef_value_t* ) get_bool;
int function( cef_value_t* ) get_int;
double function( cef_value_t* ) get_double;
cef_string_userfree_t function( cef_value_t* ) get_string;
cef_binary_value_t* function( cef_value_t* ) get_binary;
cef_dictionary_value_t* function( cef_value_t* ) get_dictionary;
cef_list_value_t* function( cef_value_t* ) get_list;
int function( cef_value_t* ) set_null;
int function( cef_value_t*, int ) set_bool;
int function( cef_value_t*, int ) set_int;
int function( cef_value_t*, double ) set_double;
int function( cef_value_t*, const( cef_string_t )* ) set_string;
int function( cef_value_t*, cef_binary_value_t* ) set_binary;
int function( cef_value_t*, cef_dictionary_value_t* ) set_dictionary;
int function( cef_value_t*, cef_list_value_t* ) set_list;
}
}
struct cef_binary_value_t {
cef_base_t base;
extern( System ) @nogc nothrow {
int function( cef_binary_value_t* ) is_valid;
int function( cef_binary_value_t* ) is_owned;
int function( cef_binary_value_t*, cef_binary_value_t* ) is_same;
int function( cef_binary_value_t*, cef_binary_value_t* ) is_equal;
cef_binary_value_t* function( cef_binary_value_t* ) copy;
size_t function( cef_binary_value_t* ) get_size;
size_t function( cef_binary_value_t*, void*, size_t, size_t ) get_data;
}
}
struct cef_dictionary_value_t {
cef_base_t base;
extern( System ) @nogc nothrow {
int function( cef_dictionary_value_t* ) is_valid;
int function( cef_dictionary_value_t* ) is_owned;
int function( cef_dictionary_value_t* ) is_read_only;
int function( cef_dictionary_value_t*, cef_dictionary_value_t* ) is_same;
int function( cef_dictionary_value_t*, cef_dictionary_value_t* ) is_equal;
cef_dictionary_value_t* function( cef_dictionary_value_t*, int ) copy;
size_t function( cef_dictionary_value_t* ) get_size;
int function( cef_dictionary_value_t* ) clear;
int function( cef_dictionary_value_t*, const( cef_string_t )* ) has_key;
int function( cef_dictionary_value_t*, cef_string_list_t ) get_keys;
int function( cef_dictionary_value_t*, const( cef_string_t )* ) remove;
cef_value_type_t function( cef_dictionary_value_t*, const( cef_string_t )* ) get_type;
cef_value_t* function( cef_dictionary_value_t*, const( cef_string_t )* ) get_value;
int function( cef_dictionary_value_t*, const( cef_string_t )* ) get_bool;
int function( cef_dictionary_value_t*, const( cef_string_t )* ) get_int;
double function( cef_dictionary_value_t*, const( cef_string_t )* ) get_double;
cef_string_userfree_t function( cef_dictionary_value_t*, const( cef_string_t )* ) get_string;
cef_binary_value_t* function( cef_dictionary_value_t* self, const( cef_string_t )* key) get_binary;
cef_dictionary_value_t* function( cef_dictionary_value_t* self, const( cef_string_t )* key) get_dictionary;
cef_list_value_t* function( cef_dictionary_value_t*, const( cef_string_t )* ) get_list;
int function( cef_dictionary_value_t*, const( cef_string_t )*, cef_value_t* ) set_value;
int function( cef_dictionary_value_t*, const( cef_string_t )* ) set_null;
int function( cef_dictionary_value_t*, const( cef_string_t )*, int ) set_bool;
int function( cef_dictionary_value_t*, const( cef_string_t )*, int ) set_int;
int function( cef_dictionary_value_t*, const( cef_string_t )*, double ) set_double;
int function( cef_dictionary_value_t*, const( cef_string_t )*, const( cef_string_t )* ) set_string;
int function( cef_dictionary_value_t*, const( cef_string_t )*, cef_binary_value_t* ) set_binary;
int function( cef_dictionary_value_t*, const( cef_string_t )*, cef_dictionary_value_t* ) set_dictionary;
int function( cef_dictionary_value_t*, const( cef_string_t )*, cef_list_value_t* ) set_list;
}
}
struct cef_list_value_t {
cef_base_t base;
extern( System ) @nogc nothrow {
int function( cef_list_value_t* ) is_valid;
int function( cef_list_value_t* ) is_owned;
int function( cef_list_value_t* ) is_read_only;
int function( cef_list_value_t*, cef_list_value_t* ) is_same;
int function( cef_list_value_t*, cef_list_value_t* ) is_equal;
cef_list_value_t* function( cef_list_value_t* ) copy;
int function( cef_list_value_t*, size_t ) set_size;
size_t function( cef_list_value_t* ) get_size;
int function( cef_list_value_t* ) clear;
int function( cef_list_value_t*, size_t ) remove;
cef_value_type_t function( cef_list_value_t*, size_t ) get_type;
cef_value_t* function( cef_list_value_t*, size_t ) get_value;
int function( cef_list_value_t*, size_t ) get_bool;
int function( cef_list_value_t*, size_t ) get_int;
double function( cef_list_value_t*, size_t ) get_double;
cef_string_userfree_t function( cef_list_value_t*, size_t ) get_string;
cef_binary_value_t* function( cef_list_value_t*, size_t ) get_binary;
cef_dictionary_value_t* function( cef_list_value_t*, size_t ) get_dictionary;
cef_list_value_t* function( cef_list_value_t*, size_t ) get_list;
int function( cef_list_value_t*, size_t, cef_value_t* ) set_value;
int function( cef_list_value_t*, size_t ) set_null;
int function( cef_list_value_t*, size_t, int ) set_bool;
int function( cef_list_value_t*, size_t, int ) set_int;
int function( cef_list_value_t*, size_t, double ) set_double;
int function( cef_list_value_t*, size_t, const( cef_string_t )* ) set_string;
int function( cef_list_value_t*, size_t, cef_binary_value_t* ) set_binary;
int function( cef_list_value_t*, size_t, cef_dictionary_value_t*value) set_dictionary;
int function( cef_list_value_t*, size_t, cef_list_value_t* ) set_list;
}
}
// cef_waitable_event_capi.h
struct cef_waitable_event_t {
cef_base_t base;
extern( System ) @nogc nothrow {
void function( cef_waitable_event_t* ) reset;
void function( cef_waitable_event_t* ) signal;
int function( cef_waitable_event_t* ) is_signaled;
void function( cef_waitable_event_t* ) wait;
int function( cef_waitable_event_t*, ulong ) timed_wait;
}
}
// cef_web_plugin_capi.h
struct cef_web_plugin_info_t {
cef_base_t base;
extern( System ) @nogc nothrow {
cef_string_userfree_t function( cef_web_plugin_info_t* ) get_name;
cef_string_userfree_t function( cef_web_plugin_info_t* ) get_path;
cef_string_userfree_t function( cef_web_plugin_info_t* ) get_version;
cef_string_userfree_t function( cef_web_plugin_info_t* ) get_description;
}
}
struct cef_web_plugin_info_visitor_t {
cef_base_t base;
extern( System ) @nogc nothrow int function( cef_web_plugin_info_visitor_t*,cef_web_plugin_info_t*,int,int ) visit;
}
struct cef_web_plugin_unstable_callback_t {
cef_base_t base;
extern( System ) @nogc nothrow void function( cef_web_plugin_unstable_callback_t,const( cef_string_t )*,int ) is_unstable;
}
struct cef_register_cdm_callback_t {
cef_base_t base;
extern( System ) @nogc nothrow void function( cef_register_cdm_callback_t*, cef_cdm_registration_error_t, const ( cef_string_t )* ) on_cdm_registration_complete;
}
// cef_x509_certificate_capi.h
struct cef_x509cert_principal_t {
cef_base_t base;
extern( System ) @nogc nothrow {
cef_string_userfree_t function( cef_x509cert_principal_t* ) get_display_name;
cef_string_userfree_t function( cef_x509cert_principal_t* ) get_common_name;
cef_string_userfree_t function( cef_x509cert_principal_t* ) get_locality_name;
cef_string_userfree_t function( cef_x509cert_principal_t* ) get_state_or_province_name;
cef_string_userfree_t function( cef_x509cert_principal_t* ) get_country_name;
void function( cef_x509cert_principal_t*, cef_string_list_t ) get_street_addresses;
void function( cef_x509cert_principal_t*, cef_string_list_t ) get_organization_names;
void function( cef_x509cert_principal_t*, cef_string_list_t ) get_organization_unit_names;
void function( cef_x509cert_principal_t*, cef_string_list_t ) get_domain_components;
}
}
struct cef_x509certificate_t {
cef_base_t base;
extern( System ) @nogc nothrow {
cef_x509cert_principal_t* function( cef_x509certificate_t* ) get_subject;
cef_x509cert_principal_t* function( cef_x509certificate_t* ) get_issuer;
cef_binary_value_t* function( cef_x509certificate_t* ) get_serial_number;
cef_time_t function( cef_x509certificate_t* ) get_valid_start;
cef_time_t function( cef_x509certificate_t* ) get_valid_expiry;
cef_binary_value_t* function( cef_x509certificate_t* ) get_derencoded;
cef_binary_value_t* function( cef_x509certificate_t* ) get_pemencoded;
size_t function( cef_x509certificate_t* ) get_issuer_chain_size;
void function( cef_x509certificate_t*, size_t*, cef_binary_value_t** ) get_derencoded_issuer_chain;
void function( cef_x509certificate_t*, size_t*, cef_binary_value_t** ) get_pemencoded_issuer_chain;
}
}
// cef_xml_reader_capi.h
struct cef_xml_reader_t {
cef_base_t base;
extern( System ) @nogc nothrow {
int function( cef_xml_reader_t* ) move_to_next_node;
int function( cef_xml_reader_t* ) close;
int function( cef_xml_reader_t* ) has_error;
cef_string_userfree_t function( cef_xml_reader_t* ) get_error;
cef_xml_node_type_t function( cef_xml_reader_t* ) get_type;
int function( cef_xml_reader_t* ) get_depth;
cef_string_userfree_t function( cef_xml_reader_t* ) get_local_name;
cef_string_userfree_t function( cef_xml_reader_t* ) get_prefix;
cef_string_userfree_t function( cef_xml_reader_t* ) get_qualified_name;
cef_string_userfree_t function( cef_xml_reader_t* ) get_namespace_uri;
cef_string_userfree_t function( cef_xml_reader_t* ) get_base_uri;
cef_string_userfree_t function( cef_xml_reader_t* ) get_xml_lang;
int function( cef_xml_reader_t* ) is_empty_element;
int function( cef_xml_reader_t* ) has_value;
cef_string_userfree_t function( cef_xml_reader_t* ) get_value;
int function( cef_xml_reader_t* ) has_attributes;
size_t function( cef_xml_reader_t* ) get_attribute_count;
cef_string_userfree_t function( cef_xml_reader_t*,int ) get_attribute_byindex;
cef_string_userfree_t function( cef_xml_reader_t*,const( cef_string_t )* ) get_attribute_byqname;
cef_string_userfree_t function( cef_xml_reader_t*,const( cef_string_t )*,const( cef_string_t )* ) get_attribute_bylname;
cef_string_userfree_t function( cef_xml_reader_t* ) get_inner_xml;
cef_string_userfree_t function( cef_xml_reader_t* ) get_outer_xml;
int function( cef_xml_reader_t* ) get_line_number;
int function( cef_xml_reader_t*,int ) move_to_attribute_by_index;
int function( cef_xml_reader_t*,const( cef_string_t )* ) move_to_attribute_byqname;
int function( cef_xml_reader_t*,const( cef_string_t )*,const( cef_string_t )* ) move_to_attribute_bylname;
int function( cef_xml_reader_t* ) move_to_first_attribute;
int function( cef_xml_reader_t* ) move_to_next_attribute;
int function( cef_xml_reader_t* ) move_to_carrying_element;
}
}
// cef_zip_reader_capi.h
struct cef_zip_reader_t {
import core.stdc.time : time_t;
cef_base_t base;
extern( System ) @nogc nothrow {
int function( cef_zip_reader_t* ) move_to_first_file;
int function( cef_zip_reader_t* ) move_to_next_file;
int function( cef_zip_reader_t*,const( cef_string_t )*,int ) move_to_file;
int function( cef_zip_reader_t* ) close;
cef_string_userfree_t function( cef_zip_reader_t* ) get_file_name;
int64 function( cef_zip_reader_t* ) get_file_size;
time_t function( cef_zip_reader_t* ) get_file_last_modified;
int function( cef_zip_reader_t*,const( cef_string_t )* ) open_file;
int function( cef_zip_reader_t* ) close_file;
int function( cef_zip_reader_t*,void*,size_t ) read_file;
int64 function( cef_zip_reader_t* ) tell;
int function( cef_zip_reader_t* ) eof;
}
}
// test/cef_translator_test_capi.h
struct cef_translator_test_t {
cef_base_t base;
extern( System ) @nogc nothrow {
void function( cef_translator_test_t* ) get_void;
int function( cef_translator_test_t* ) get_bool;
int function( cef_translator_test_t* ) get_int;
double function( cef_translator_test_t* ) get_double;
long function( cef_translator_test_t* ) get_long;
size_t function( cef_translator_test_t* ) get_sizet;
int function( cef_translator_test_t* ) set_void;
int function( cef_translator_test_t*, int ) set_bool;
int function( cef_translator_test_t*, int ) set_int;
int function( cef_translator_test_t*, double ) set_double;
int function( cef_translator_test_t*, long ) set_long;
int function( cef_translator_test_t*, size_t ) set_sizet;
int function( cef_translator_test_t*, size_t, const( int* ) ) set_int_list;
int function( cef_translator_test_t*, size_t*, int* ) get_int_list_by_ref;
size_t function( cef_translator_test_t* ) get_int_list_size;
cef_string_userfree_t function( cef_translator_test_t* ) get_string;
int function( cef_translator_test_t*, const( cef_string_t )* ) set_string;
void function( cef_translator_test_t*, cef_string_t* ) get_string_by_ref;
int function( cef_translator_test_t*, cef_string_list_t ) set_string_list;
int function( cef_translator_test_t*, cef_string_list_t ) get_string_list_by_ref;
int function( cef_translator_test_t*, cef_string_map_t ) set_string_map;
int function( cef_translator_test_t*, cef_string_map_t ) get_string_map_by_ref;
int function( cef_translator_test_t*, cef_string_multimap_t ) set_string_multimap;
int function( cef_translator_test_t*, cef_string_multimap_t ) get_string_multimap_by_ref;
cef_point_t function( cef_translator_test_t* ) get_point;
int function( cef_translator_test_t*, const( cef_point_t )* ) set_point;
void function( cef_translator_test_t*, cef_point_t* ) get_point_by_ref;
int function( cef_translator_test_t*, size_t, const( cef_point_t* ) val) set_point_list;
int function( cef_translator_test_t*, size_t*, cef_point_t* ) get_point_list_by_ref;
size_t function( cef_translator_test_t* ) get_point_list_size;
cef_translator_test_ref_ptr_library_t* function( cef_translator_test_t*, int ) get_ref_ptr_library;
int function( cef_translator_test_t*, cef_translator_test_ref_ptr_library_t* ) set_ref_ptr_library;
cef_translator_test_ref_ptr_library_t* function( cef_translator_test_t*, cef_translator_test_ref_ptr_library_t* ) set_ref_ptr_library_and_return;
int function( cef_translator_test_t*, cef_translator_test_ref_ptr_library_child_t* ) set_child_ref_ptr_library;
cef_translator_test_ref_ptr_library_t* function( cef_translator_test_t*, cef_translator_test_ref_ptr_library_child_t* ) set_child_ref_ptr_library_and_return_parent;
int function( cef_translator_test_t*, size_t, const( cef_translator_test_ref_ptr_library_t* ) val, int , int ) set_ref_ptr_library_list;
int function( cef_translator_test_t*, size_t*, cef_translator_test_ref_ptr_library_t**, int, int ) get_ref_ptr_library_list_by_ref;
size_t function( cef_translator_test_t* ) get_ref_ptr_library_list_size;
int function( cef_translator_test_t*, cef_translator_test_ref_ptr_client_t* ) set_ref_ptr_client;
cef_translator_test_ref_ptr_client_t* function( cef_translator_test_t* self, cef_translator_test_ref_ptr_client_t* ) set_ref_ptr_client_and_return;
int function( cef_translator_test_t*, cef_translator_test_ref_ptr_client_child_t* ) set_child_ref_ptr_client;
cef_translator_test_ref_ptr_client_t* function( cef_translator_test_t*, cef_translator_test_ref_ptr_client_child_t* ) set_child_ref_ptr_client_and_return_parent;
int function( cef_translator_test_t*, size_t, const( cef_translator_test_ref_ptr_client_t* ) val, int, int ) set_ref_ptr_client_list;
int function( cef_translator_test_t*, size_t*, cef_translator_test_ref_ptr_client_t**, cef_translator_test_ref_ptr_client_t*, cef_translator_test_ref_ptr_client_t* ) get_ref_ptr_client_list_by_ref;
size_t function( cef_translator_test_t* ) get_ref_ptr_client_list_size;
cef_translator_test_scoped_library_t* function( cef_translator_test_t*, int ) get_own_ptr_library;
int function( cef_translator_test_t*, cef_translator_test_scoped_library_t* ) set_own_ptr_library;
cef_translator_test_scoped_library_t* function( cef_translator_test_t*, cef_translator_test_scoped_library_t* ) set_own_ptr_library_and_return;
int function( cef_translator_test_t*, cef_translator_test_scoped_library_child_t* ) set_child_own_ptr_library;
cef_translator_test_scoped_library_t* function( cef_translator_test_t*, cef_translator_test_scoped_library_child_t* ) set_child_own_ptr_library_and_return_parent;
int function( cef_translator_test_t*, cef_translator_test_scoped_client_t* ) set_own_ptr_client;
cef_translator_test_scoped_client_t* function( cef_translator_test_t*, cef_translator_test_scoped_client_t* ) set_own_ptr_client_and_return;
int function( cef_translator_test_t*, cef_translator_test_scoped_client_child_t* ) set_child_own_ptr_client;
cef_translator_test_scoped_client_t* function( cef_translator_test_t*, cef_translator_test_scoped_client_child_t* ) set_child_own_ptr_client_and_return_parent;
int function( cef_translator_test_t*, cef_translator_test_scoped_library_t* ) set_raw_ptr_library;
int function( cef_translator_test_t*, cef_translator_test_scoped_library_child_t* ) set_child_raw_ptr_library;
int function( cef_translator_test_t*, size_t, const( cef_translator_test_scoped_library_t* ), int, int ) set_raw_ptr_library_list;
int function( cef_translator_test_t*, cef_translator_test_scoped_client_t* ) set_raw_ptr_client;
int function( cef_translator_test_t*, cef_translator_test_scoped_client_child_t* ) set_child_raw_ptr_client;
int function( cef_translator_test_t*, size_t, const( cef_translator_test_scoped_client_t* ), int, int ) set_raw_ptr_client_list;
}
}
struct cef_translator_test_ref_ptr_library_t {
cef_base_t base;
extern( System ) @nogc nothrow {
int function( cef_translator_test_ref_ptr_library_t* ) get_value;
void function( cef_translator_test_ref_ptr_library_t*, int ) set_value;
}
}
struct cef_translator_test_ref_ptr_library_child_t {
cef_base_t base;
extern( System ) @nogc nothrow {
int function( cef_translator_test_ref_ptr_library_child_t* ) get_other_value;
void function( cef_translator_test_ref_ptr_library_child_t*, int ) set_other_value;
}
}
struct cef_translator_test_ref_ptr_library_child_child_t {
cef_translator_test_ref_ptr_library_t base;
extern( System ) @nogc nothrow {
int function( cef_translator_test_ref_ptr_library_child_child_t* ) get_other_other_value;
void function( cef_translator_test_ref_ptr_library_child_child_t*, int ) set_other_other_value;
}
}
struct cef_translator_test_ref_ptr_client_t {
cef_base_t base;
extern( System ) @nogc nothrow int function( cef_translator_test_ref_ptr_client_t* ) get_value;
}
struct cef_translator_test_ref_ptr_client_child_t {
cef_translator_test_ref_ptr_client_t base;
extern( System ) @nogc nothrow int function( cef_translator_test_ref_ptr_client_child_t* ) get_other_value;
}
struct cef_translator_test_scoped_library_t {
cef_base_scoped_t base;
extern( System ) @nogc nothrow {
int function( cef_translator_test_scoped_library_t* ) get_value;
void function( cef_translator_test_scoped_library_t*, int ) set_value;
}
}
struct cef_translator_test_scoped_library_child_t {
cef_translator_test_scoped_library_t base;
extern( System ) @nogc nothrow {
int function( cef_translator_test_scoped_library_child_t* ) get_other_value;
void function( cef_translator_test_scoped_library_child_t*, int ) set_other_value;
}
}
struct cef_translator_test_scoped_library_child_child_t {
cef_translator_test_scoped_library_child_t base;
extern( System ) @nogc nothrow {
int function( cef_translator_test_scoped_library_child_child_t* ) get_other_other_value;
void function( cef_translator_test_scoped_library_child_child_t*, int ) set_other_other_value;
}
}
struct cef_translator_test_scoped_client_t {
cef_base_scoped_t base;
extern( System ) @nogc nothrow int function( cef_translator_test_scoped_client_t* ) get_value;
}
struct cef_translator_test_scoped_client_child_t {
cef_translator_test_scoped_client_t base;
extern( System ) @nogc nothrow int function( cef_translator_test_scoped_client_child_t* ) get_other_value;
}
// views/cef_box_layout_capi.h
struct cef_box_layout_t {
cef_layout_t base;
extern( System ) @nogc nothrow {
void function( cef_box_layout_t*, cef_view_t*, int ) set_flex_for_view;
void function( cef_box_layout_t*, cef_view_t* ) clear_flex_for_view;
}
}
// views/cef_browser_view_capi.h
struct cef_browser_view_t {
cef_view_t base;
extern( System ) @nogc nothrow {
cef_browser_t* function( cef_browser_view_t* ) get_browser;
void function( cef_browser_view_t* , int ) set_prefer_accelerators;
}
}
// views/cef_browser_view_delegate_capi.h
struct cef_browser_view_delegate_t {
cef_view_delegate_t base;
extern( System ) @nogc nothrow {
void function( cef_browser_view_delegate_t*, cef_browser_view_t*, cef_browser_t* ) on_browser_created;
void function( cef_browser_view_delegate_t*, cef_browser_view_t*, cef_browser_t* ) on_browser_destroyed;
cef_browser_view_delegate_t* function( cef_browser_view_delegate_t*, cef_browser_view_t*, const( cef_browser_settings_t )*, cef_client_t*, int ) get_delegate_for_popup_browser_view;
int function( cef_browser_view_delegate_t*, cef_browser_view_t*, cef_browser_view_t*, int is_devtools) on_popup_browser_view_created;
}
}
// views/cef_button_capi.h
struct cef_button_t {
cef_view_t base;
extern( System ) @nogc nothrow {
cef_label_button_t* function( cef_button_t* ) as_label_button;
void function( cef_button_t*, cef_button_state_t ) set_state;
cef_button_state_t function( cef_button_t* ) get_state;
void function( cef_button_t*, int ) set_ink_drop_enabled;
void function( cef_button_t*, const( cef_string_t )* ) set_tooltip_text;
void function( cef_button_t*, const( cef_string_t )* ) set_accessible_name;
}
}
// views/cef_button_delegate_capi.h
struct cef_button_delegate_t {
cef_view_delegate_t base;
extern( System ) @nogc nothrow {
void function( cef_button_delegate_t*, cef_button_t* ) on_button_pressed;
void function( cef_button_delegate_t*, cef_button_t* ) on_button_state_changed;
}
}
// views/cef_display_capi.h
struct cef_display_t {
cef_base_t base;
extern( System ) @nogc nothrow {
long function( cef_display_t* )get_id;
float function( cef_display_t* ) get_device_scale_factor;
void function( cef_display_t*, cef_point_t* ) convert_point_to_pixels;
void function( cef_display_t*, cef_point_t* ) convert_point_from_pixels;
cef_rect_t function( cef_display_t* ) get_bounds;
cef_rect_t function( cef_display_t* ) get_work_area;
int function( cef_display_t* ) get_rotation;
}
}
// views/cef_fill_layout_capi.h
struct cef_fill_layout_t {
cef_layout_t base;
}
// views/cef_label_button_capi.h
struct cef_label_button_t {
cef_button_t base;
extern( System ) @nogc nothrow {
cef_menu_button_t* function( cef_label_button_t* ) as_menu_button;
void function( cef_label_button_t*, const( cef_string_t )* ) set_text;
cef_string_userfree_t function( cef_label_button_t* ) get_text;
void function( cef_label_button_t*, cef_button_state_t, cef_image_t* ) set_image;
cef_image_t* function( cef_label_button_t*, cef_button_state_t ) get_image;
void function( cef_label_button_t*, cef_button_state_t, cef_color_t ) set_text_color;
void function( cef_label_button_t* , cef_color_t ) set_enabled_text_colors;
void function( cef_label_button_t* , const( cef_string_t )* ) set_font_list;
void function( cef_label_button_t*, cef_horizontal_alignment_t ) set_horizontal_alignment;
void function( cef_label_button_t*, const( cef_size_t )* size) set_minimum_size;
void function( cef_label_button_t*, const( cef_size_t )* ) set_maximum_size;
}
}
// views/cef_layout_capi.h
struct cef_layout_t {
cef_base_t base;
extern( System ) @nogc nothrow {
cef_box_layout_t* function( cef_layout_t* ) as_box_layout;
cef_fill_layout_t* function( cef_layout_t* ) as_fill_layout;
int function( cef_layout_t* ) is_valid;
}
}
// views/cef_menu_button_capi.h
struct cef_menu_button_t {
cef_label_button_t base;
extern( System ) @nogc nothrow {
void function( cef_menu_button_t*, cef_menu_model_t*, const( cef_point_t )* , cef_menu_anchor_position_t ) show_menu;
void function( cef_menu_button_t* ) trigger_menu;
}
}
// views/cef_menu_button_delegate_capi.h
struct cef_menu_button_pressed_lock_t {
cef_base_t base;
}
struct cef_menu_button_delegate_t {
cef_button_delegate_t base;
extern( System ) @nogc nothrow void function( cef_menu_button_delegate_t* self, cef_menu_button_t*, const( cef_point_t )*, cef_menu_button_pressed_lock_t* ) on_menu_button_pressed;
}
// views/cef_panel_capi.h
struct cef_panel_t {
cef_view_t base;
extern( System ) @nogc nothrow {
cef_window_t* function( cef_panel_t* ) as_window;
cef_fill_layout_t* function( cef_panel_t* ) set_to_fill_layout;
cef_box_layout_t* function( cef_panel_t*, const( cef_box_layout_settings_t )* ) set_to_box_layout;
cef_layout_t* function( cef_panel_t* ) get_layout;
void function( cef_panel_t* ) layout;
void function( cef_panel_t*, cef_view_t* ) add_child_view;
void function( cef_panel_t*, cef_view_t*, int ) add_child_view_at;
void function( cef_panel_t*, cef_view_t*, int ) reorder_child_view;
void function( cef_panel_t*, cef_view_t* ) remove_child_view;
void function( cef_panel_t* ) remove_all_child_views;
size_t function( cef_panel_t* ) get_child_view_count;
cef_view_t* function( cef_panel_t*, int ) get_child_view_at;
}
}
// views/cef_panel_delegate_capi.h
struct cef_panel_delegate_t {
cef_view_delegate_t base;
}
// views/cef_scroll_view_capi.h
struct cef_scroll_view_t {
cef_view_t base;
extern( System ) @nogc nothrow {
void function( cef_scroll_view_t*, cef_view_t* ) set_content_view;
cef_view_t* function( cef_scroll_view_t* ) get_content_view;
cef_rect_t function( cef_scroll_view_t* ) get_visible_content_rect;
int function( cef_scroll_view_t* ) has_horizontal_scrollbar ;
int function( cef_scroll_view_t* ) get_horizontal_scrollbar_height;
int function( cef_scroll_view_t* ) has_vertical_scrollbar;
int function( cef_scroll_view_t* ) get_vertical_scrollbar_width;
}
}
// views/cef_scroll_view_capi.h
struct cef_textfield_t {
cef_view_t base;
extern( System ) @nogc nothrow {
void function( cef_textfield_t*, int ) set_password_input;
int function( cef_textfield_t* ) is_password_input;
void function( cef_textfield_t*, int ) set_read_only;
int function( cef_textfield_t* ) is_read_only;
cef_string_userfree_t function( cef_textfield_t* ) get_text;
void function( cef_textfield_t* , const( cef_string_t )* ) set_text;
void function( cef_textfield_t*, const( cef_string_t )* ) append_text;
void function( cef_textfield_t*, const( cef_string_t )* ) insert_or_replace_text;
int function( cef_textfield_t* ) has_selection;
cef_string_userfree_t function( cef_textfield_t* ) get_selected_text;
void function( cef_textfield_t*, int ) select_all;
void function( cef_textfield_t*) clear_selection;
cef_range_t function( cef_textfield_t* ) get_selected_range;
void function( cef_textfield_t*, const( cef_range_t )* ) select_range;
size_t function( cef_textfield_t* ) get_cursor_position;
void function( cef_textfield_t*, cef_color_t ) set_text_color;
cef_color_t function( cef_textfield_t* ) get_text_color;
void function( cef_textfield_t*, cef_color_t ) set_selection_text_color;
cef_color_t function( cef_textfield_t* ) get_selection_text_color;
void function( cef_textfield_t*, cef_color_t ) set_selection_background_color;
cef_color_t function( cef_textfield_t* ) get_selection_background_color;
void function( cef_textfield_t*, cef_string_t* ) set_font_list;
void function( cef_textfield_t*, cef_color_t, const( cef_range_t )* ) apply_text_color;
void function( cef_textfield_t*, cef_text_style_t, int, const( cef_range_t )* ) apply_text_style;
int function( cef_textfield_t*, int ) is_command_enabled;
void function( cef_textfield_t*, int ) execute_command;
void function( cef_textfield_t* )clear_edit_history;
void function( cef_textfield_t*, const( cef_string_t )* text) set_placeholder_text;
cef_string_userfree_t function( cef_textfield_t* ) get_placeholder_text;
void function( cef_textfield_t*, cef_color_t ) set_placeholder_text_color;
void function( cef_textfield_t*, const( cef_string_t )* ) set_accessible_name;
}
}
// views/cef_textfield_delegate_capi.h
struct cef_textfield_delegate_t {
cef_view_delegate_t base;
extern( System ) @nogc nothrow {
int function( cef_textfield_delegate_t*, cef_textfield_t*, const( cef_key_event_t )* ) on_key_event;
void function( cef_textfield_delegate_t*, cef_textfield_t* ) on_after_user_action;
}
}
// views/cef_view_capi.h
struct cef_view_t {
cef_base_t base;
extern( System ) @nogc nothrow {
cef_browser_view_t* function( cef_view_t* ) as_browser_view;
cef_button_t* function( cef_view_t* ) as_button;
cef_panel_t* function( cef_view_t* ) as_panel;
cef_scroll_view_t* function( cef_view_t* ) as_scroll_view;
cef_textfield_t* function( cef_view_t* ) as_textfield;
cef_string_userfree_t function( cef_view_t* ) get_type_string;
cef_string_userfree_t function( cef_view_t* , int ) to_string;
int function( cef_view_t* ) is_valid;
int function( cef_view_t* ) is_attached;
int function( cef_view_t*, cef_view_t* ) is_same;
cef_view_delegate_t* function( cef_view_t* ) get_delegate;
cef_window_t* function( cef_view_t* ) get_window;
int function( cef_view_t* ) get_id;
void function( cef_view_t*, int ) set_id;
int function( cef_view_t*) get_group_id;
void function( cef_view_t*, int ) set_group_id;
cef_view_t* function( cef_view_t* ) get_parent_view;
cef_view_t* function( cef_view_t*, int ) get_view_for_id;
void function( cef_view_t*, const( cef_rect_t )* ) set_bounds;
cef_rect_t function( cef_view_t* ) get_bounds;
cef_rect_t function( cef_view_t* ) get_bounds_in_screen;
void function( cef_view_t*, const( cef_size_t )* ) set_size;
cef_size_t function( cef_view_t* ) get_size;
void function( cef_view_t*, const( cef_point_t )* ) set_position;
cef_point_t function( cef_view_t* ) get_position;
cef_size_t function( cef_view_t* ) get_preferred_size;
void function( cef_view_t* ) size_to_preferred_size;
cef_size_t function( cef_view_t* ) get_minimum_size;
cef_size_t function( cef_view_t* ) get_maximum_size;
int function( cef_view_t*, int) get_height_for_width;
void function( cef_view_t* ) invalidate_layout;
void function( cef_view_t*, int ) set_visible;
int function( cef_view_t* ) is_visible;
int function( cef_view_t* ) is_drawn;
void function( cef_view_t* , int ) set_enabled;
int function( cef_view_t* ) is_enabled;
void function( cef_view_t* , int ) set_focusable;
int function( cef_view_t* ) is_focusable;
int function( cef_view_t* ) is_accessibility_focusable;
void function( cef_view_t* ) request_focus;
void function( cef_view_t*, cef_color_t ) set_background_color;
cef_color_t function( cef_view_t* ) get_background_color;
int function( cef_view_t*, cef_point_t* ) convert_point_to_screen;
int function( cef_view_t*, cef_point_t* ) convert_point_from_screen;
int function( cef_view_t*, cef_point_t* ) convert_point_to_window;
int function( cef_view_t*, cef_point_t* ) convert_point_from_window;
int function( cef_view_t* , cef_view_t*, cef_point_t* ) convert_point_to_view;
int function( cef_view_t*, cef_view_t*, cef_point_t* ) convert_point_from_view;
}
}
// views/cef_view_delegate_capi.h
struct cef_view_delegate_t {
cef_base_t base;
extern( System ) @nogc nothrow {
cef_size_t function( cef_view_delegate_t*, cef_view_t* ) get_preferred_size;
cef_size_t function( cef_view_delegate_t*, cef_view_t* ) get_minimum_size;
cef_size_t function( cef_view_delegate_t*, cef_view_t*) get_maximum_size;
int function( cef_view_delegate_t*, cef_view_t*, int ) get_height_for_width;
void function( cef_view_delegate_t*, cef_view_t*, int , cef_view_t* ) on_parent_view_changed;
void function( cef_view_delegate_t*, cef_view_t*, int, cef_view_t* ) on_child_view_changed;
void function( cef_view_delegate_t* , cef_view_t* ) on_focus;
void function( cef_view_delegate_t*, cef_view_t* ) on_blur;
}
}
// views/cef_window_capi.h
struct cef_window_t {
cef_panel_t base;
extern( System ) @nogc nothrow {
void function( cef_window_t* ) show;
void function( cef_window_t* ) hide;
void function( cef_window_t*, const( cef_size_t )* ) center_window;
void function( cef_window_t* ) close;
int function( cef_window_t* ) is_closed;
void function( cef_window_t* ) activate;
void function( cef_window_t* ) deactivate;
int function( cef_window_t* ) is_active;
void function( cef_window_t* ) bring_to_top;
void function( cef_window_t*, int ) set_always_on_top;
int function( cef_window_t* ) is_always_on_top;
void function( cef_window_t* ) maximize;
void function( cef_window_t* ) minimize;
void function( cef_window_t* ) restore;
void function( cef_window_t*, int ) set_fullscreen;
int function( cef_window_t*) is_maximized;
int function( cef_window_t* ) is_minimized;
int function( cef_window_t* ) is_fullscreen;
void function( cef_window_t*, const( cef_string_t )* ) set_title;
cef_string_userfree_t function( cef_window_t* ) get_title;
void function( cef_window_t*, cef_image_t* ) set_window_icon;
cef_image_t* function( cef_window_t* ) get_window_icon;
void function( cef_window_t*, cef_image_t* ) set_window_app_icon;
cef_image_t* function( cef_window_t* ) get_window_app_icon;
void function( cef_window_t*, cef_menu_model_t*, const( cef_point_t )* , cef_menu_anchor_position_t ) show_menu;
void function( cef_window_t* ) cancel_menu;
cef_display_t* function( cef_window_t* ) get_display;
cef_rect_t function( cef_window_t* ) get_client_area_bounds_in_screen;
void function( cef_window_t* , size_t, const( cef_draggable_region_t* ) ) set_draggable_regions;
cef_window_handle_t function( cef_window_t* ) get_window_handle;
void function( cef_window_t*, int, uint ) send_key_press;
void function( cef_window_t*, int, int ) send_mouse_move;
void function( cef_window_t*, cef_mouse_button_type_t, int, int ) send_mouse_events;
void function( cef_window_t*, int, int, int, int, int ) set_accelerator;
void function( cef_window_t*, int ) remove_accelerator;
void function( cef_window_t* ) remove_all_accelerators;
}
}
// views/cef_window_delegate_capi.h
struct cef_window_delegate_t {
cef_panel_delegate_t base;
extern( System ) @nogc nothrow {
void function( cef_window_delegate_t*, cef_window_t* ) on_window_created;
void function( cef_window_delegate_t*, cef_window_t* ) on_window_destroyed;
cef_window_t* function( cef_window_delegate_t*, cef_window_t*, int*, int* ) get_parent_window;
int function( cef_window_delegate_t*, cef_window_t* ) is_frameless;
int function( cef_window_delegate_t*, cef_window_t* ) can_resize;
int function( cef_window_delegate_t*, cef_window_t* ) can_maximize;
int function( cef_window_delegate_t*, cef_window_t* ) can_minimize;
int function( cef_window_delegate_t*, cef_window_t* ) can_close;
int function( cef_window_delegate_t*, cef_window_t*, int ) on_accelerator;
int function( cef_window_delegate_t*, cef_window_t*, const( cef_key_event_t )* ) on_key_event;
}
}
}
| D |
///* Licensed under the Apache License, Version 2.0 (the "License");
// * you may not use this file except in compliance with the License.
// * You may obtain a copy of the License at
// *
// * http://www.apache.org/licenses/LICENSE-2.0
// *
// * Unless required by applicable law or agreed to in writing, software
// * distributed under the License is distributed on an "AS IS" BASIS,
// * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// * See the License for the specific language governing permissions and
// * limitations under the License.
// */
//module flow.job.service.impl.history.async.transformer.HistoryJsonTransformer;
//
//import hunt.collection.List;
//
//import flow.common.interceptor.CommandContext;
//import flow.job.service.impl.persistence.entity.HistoryJobEntity;
//
//
//interface HistoryJsonTransformer {
//
// string FIELD_NAME_TYPE = "type";
// string FIELD_NAME_DATA = "data";
//
// List!string getTypes();
//
// bool isApplicable(ObjectNode historicalData, CommandContext commandContext);
//
// void transformJson(HistoryJobEntity job, ObjectNode historicalData, CommandContext commandContext);
//
//}
| D |
512 sergei_eisenstein
1 edwin_s_porter
6315 alfred_e_green
6148 stuart_heisler
6662 robert_rosen
4609 erle_c_kenton
6157 s_sylvan_simon
15 dw_griffith
7013 anatole_litvak
6165 leslie_arliss
6678 henry_hathaway
5729 gunther_von_fritsch
2075 leni_riefenstahl
542 rupert_julian
4639 _0478303
1570 wesley_ruggles
2595 cecil_b_demille
2084 george_stevens
5160 john_m_stahl
860 roland_west
4139 john_huston
3250 1043170-george_b_seitz
4654 1010653-david_miller
4144 orson_welles
1585 michael_curtiz
4366 arthur_lubin
563 clyde_bruckman
6198 jean_delannoy
1598 rouben_mamoulian
2099 1028179-william_a_seiter
4878 john_farrow
4675 irving_rapper
583 bonnie_hill
5698 charles_vidor
1463 frank_r_strayer
1613 jean_vigo
2126 sam_wood
591 george_fitzmaurice
5560 edgarulmer
1109 norman_z_mcleod
5206 herman_shumlin
6232 harve_foster
602 albert_parker
3856 christy_cabanne
5989 joseph_kane
1121 rene_clair
1634 george_cukor
100 charlie_chaplin
2149 1050292-david_butler
5224 jacques_tourneur
5737 jean_negulesco
5235 fred_m_wilcox
1140 william_wellman
3702 alfred_l_werker
119 yakov_protazanov
3708 garson_kanin
5248 delmer_daves
2178 robert_n_bradbury
643 josef_von_sternberg
132 daniel_bressanutti
135 fritz_lang
1672 ernest_b_schoedsack
7308 kenji_mizoguchi
655 walter_ruttmann
2192 gregory_la_cava
1169 frank_capra
148 herbert_blache
6805 hc_potter
2657 archie_mayo
4915 frank_tuttle
5511 edward_dmytryk
6811 irving_reis
3231 dmitri_vasilyev
673 ja_howe
1187 mervyn_leroy
166 robert_wiene
681 paul_leni
1706 alexander_korda
3527 dave_fleischer
6832 carol_reed
690 walt_disney
6325 bj_alexander
3767 edward_buzzell
7390 james_algar_and_clyde_geronimi
2234 robert_z_leonard
187 carl_boese
5820 abbasmustan
2762 enrique_tovar_avalos
4800 john_rawlins
705 1051480-david_sutherland
3778 ben_sharpsteen
7184 jules_dassin
714 carl_theodor_dreyer
6263 bob_cormack
1229 frank_borzage
4813 william_keighley
4308 spencer_williams
5582 lew_landers
4825 billy_wilder
6874 abraham_polonsky
2779 lambert_hillyer
1756 mark_sandrich
734 edward_m_sedgwick
223 fw_murnau
5859 erie_c_kenton
2788 david_hand
749 _0064600
4335 sidney_lanfield
3312 _0138893
1270 ernst_lubitsch
5372 mark_robson
1789 john_cromwell
5886 david_lean
7381 stanley_donen
2304 charlie_s_chaplin
6443 sidney_gilliat
260 john_s_robertson
7638 yasujiro_ozu
1798 charley_rogers
775 james_w_horne
3848 james_algar
2826 william_dieterle
2519 1072502-marc_connelly
7436 anthony_pelissier
782 georg_wilhelm_pabst
3344 norman_taurog
5393 vincente_minnelli
274 dorothy_arzner
6532 james_edward_grant
5914 george_sidney_ii
796 dziga_verto
7453 robert_hamer
800 luis_bunuel
1826 stuart_marshall
806 robert_florey
1321 norman_mcleod
3719 vincent_sherman
4908 ray_enright
2351 william_wyler
3208 anthony_asquith
2866 jean_renoir
1331 victor_halperin
821 lewis_milestone
312 benjamin_christensen
3389 richard_thorpe
1860 1059518-alexander_hall
325 robert_flaherty
6986 hamilton_luske
6475 george_seaton
1870 howard_hawks
5455 thorold_dickinson
5971 roberto_rossellini
3470 frank_popper
5518 vittorio_de_sica
348 fred_c_newmeyer
2910 sidney_franklin
6495 mitchell_leisen
1377 irving_pichel
3940 edward-cline
1893 770890969
361 buster-keaton-jr
2926 julien_duvivier
6461 akira_kurosawa
5489 otto_preminger
2622 _0176699
6007 robert_bresson
3962 victor_schertzinger
6523 joseph_l_mankiewicz
5502 norman_ferguson
7552 allan_dwan
5025 roy_william_neill
6020 deryn_warren
1413 charles-brabin
2951 marcel_carne
2442 william_cameron_menzies
3981 jean_yarbrough
1422 leo_mccarey
5187 henrigeorges_clouzot
918 victor_heerman
7321 max-ophuls
1434 frank_lloyd
7071 joseph_losey
4508 michael_powell
6554 anthony_mann
2463 louis_j_gasnier
929 clarence_brown
7586 robert_wise
5028 robert_siodmak
5545 leslie_goodwins
6288 hal_walker
3499 1041609-michael_gordon
5551 reginald_le_borg
6576 elia_kazan
951 edmund_goulding
3000 king_vidor
5050 lewis_seiler
6047 walter_lang
7612 nicholas_ray
1474 robert_f_hill
455 alfred_hitchcock
5577 edward_ludwig
5067 luchino_visconti
3022 henry_king
7633 jacques_tati
979 jean_cocteau
5079 emeric_pressburger
1495 thornton_freeland
3545 1042400-george_marshall
4058 ford_beebe
6063 albert_lewin
991 james_whale
4070 joe_may
7147 charles_walters
6640 douglas_sirk
6642 bill_roberts
5619 alf-sjoberg
6910 harold_d_schuster
3655 a_edward_sutherland
6647 henry_koster
1528 lloyd_bacon
6792 don_hartman
4091 preston_sturges
| D |
// Written in the D programming language.
/**
* This test program pulls in all the library modules in order to run the unit
* tests on them. Then, it prints out the arguments passed to main().
*
* Copyright: Copyright Digital Mars 2000 - 2009.
* License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
* Authors: $(HTTP digitalmars.com, Walter Bright)
*
* Copyright Digital Mars 2000 - 2009.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
public import std.base64;
public import std.compiler;
public import std.concurrency;
public import std.conv;
public import std.container;
public import std.datetime;
public import std.demangle;
public import std.file;
public import std.format;
public import std.getopt;
public import std.math;
public import std.mathspecial;
public import std.mmfile;
public import std.outbuffer;
public import std.parallelism;
public import std.path;
public import std.process;
public import std.random;
public import std.regex;
public import std.signals;
//public import std.slist;
public import std.socket;
public import std.stdint;
public import std.stdio;
public import std.string;
public import std.system;
public import std.traits;
public import std.typetuple;
public import std.uni;
public import std.uri;
public import std.utf;
public import std.uuid;
public import std.variant;
public import std.zip;
public import std.zlib;
public import std.net.isemail;
public import std.net.curl;
public import std.digest.digest;
public import std.digest.crc;
public import std.digest.sha;
public import std.digest.md;
public import std.digest.hmac;
int main(string[] args)
{
// Bring in unit test for module by referencing function in it
cast(void)cmp("foo", "bar"); // string
cast(void)filenameCharCmp('a', 'b'); // path
cast(void)isNaN(1.0); // math
std.conv.to!double("1.0"); // std.conv
OutBuffer b = new OutBuffer(); // outbuffer
auto r = regex(""); // regex
uint ranseed = std.random.unpredictableSeed;
thisTid;
int[] a;
import std.algorithm : sort, reverse;
reverse(a); // adi
sort(a); // qsort
Clock.currTime(); // datetime
cast(void)isValidDchar(cast(dchar)0); // utf
std.uri.ascii2hex(0); // uri
std.zlib.adler32(0,null); // D.zlib
auto t = task!cmp("foo", "bar"); // parallelism
creal c = 3.0 + 4.0i;
c = sqrt(c);
assert(c.re == 2);
assert(c.im == 1);
printf("args.length = %d\n", args.length);
for (int i = 0; i < args.length; i++)
printf("args[%d] = '%.*s'\n", i, args[i].length, args[i].ptr);
int[3] x;
x[0] = 3;
x[1] = 45;
x[2] = -1;
sort(x[]);
assert(x[0] == -1);
assert(x[1] == 3);
assert(x[2] == 45);
cast(void)std.math.sin(3.0);
cast(void)std.mathspecial.gamma(6.2);
std.demangle.demangle("hello");
cast(void)std.uni.isAlpha('A');
std.file.exists("foo");
foreach_reverse (dchar d; "hello"c) { }
foreach_reverse (k, dchar d; "hello"c) { }
std.signals.linkin();
bool isEmail = std.net.isemail.isEmail("abc");
auto http = std.net.curl.HTTP("dlang.org");
auto uuid = randomUUID();
auto md5 = md5Of("hello");
auto sha1 = sha1Of("hello");
auto crc = crc32Of("hello");
auto string = toHexString(crc);
puts("Success!");
return 0;
}
| D |
module android.java.android.icu.text.UnicodeSet;
public import android.java.android.icu.text.UnicodeSet_d_interface;
import arsd.jni : ImportExportImpl;
mixin ImportExportImpl!UnicodeSet;
import import3 = android.java.java.lang.StringBuffer;
import import6 = android.java.java.util.Collection;
import import11 = android.java.java.lang.Class;
import import13 = android.java.java.util.Spliterator;
import import9 = android.java.java.util.Iterator;
| D |
module dwt.internal.mozilla.nsIHelperAppLauncher_1_9;
private import dwt.internal.mozilla.Common;
private import dwt.internal.mozilla.nsID;
private import dwt.internal.mozilla.nsICancelable;
private import dwt.internal.mozilla.nsIURI;
private import dwt.internal.mozilla.nsIMIMEInfo;
private import dwt.internal.mozilla.nsIFile;
private import dwt.internal.mozilla.nsIWebProgressListener2;
private import dwt.internal.mozilla.nsStringAPI;
private import dwt.internal.mozilla.prtime;
const char[] NS_IHELPERAPPLAUNCHER_1_9_IID_STR = "cc75c21a-0a79-4f68-90e1-563253d0c555";
const nsIID NS_IHELPERAPPLAUNCHER_1_9_IID=
{0xcc75c21a, 0x0a79, 0x4f68,
[ 0x90, 0xe1, 0x56, 0x32, 0x53, 0xd0, 0xc5, 0x55 ]};
interface nsIHelperAppLauncher_1_9 : nsICancelable {
static const char[] IID_STR = NS_IHELPERAPPLAUNCHER_1_9_IID_STR;
static const nsIID IID = NS_IHELPERAPPLAUNCHER_1_9_IID;
extern(System):
nsresult GetMIMEInfo(nsIMIMEInfo *aMIMEInfo);
nsresult GetSource(nsIURI *aSource);
nsresult GetSuggestedFileName(nsAString * aSuggestedFileName);
nsresult SaveToDisk(nsIFile aNewFileLocation, PRBool aRememberThisPreference);
nsresult LaunchWithApplication(nsIFile aApplication, PRBool aRememberThisPreference);
nsresult SetWebProgressListener(nsIWebProgressListener2 aWebProgressListener);
nsresult CloseProgressWindow();
nsresult GetTargetFile(nsIFile *aTargetFile);
nsresult GetTargetFileIsExecutable(PRBool* aTargetFileIsExecutable);
nsresult GetTimeDownloadStarted(PRTime *aTimeDownloadStarted);
} | D |
/**
HTML character entity escaping.
TODO: Make things @safe once Appender is.
Copyright: © 2012-2014 RejectedSoftware e.K.
License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file.
Authors: Sönke Ludwig
*/
module dmarkdown.html;
import std.array;
import std.conv;
import std.range;
package:
/** Writes the HTML escaped version of a given string to an output range.
*/
void filterHTMLEscape(R, S)(ref R dst, S str, HTMLEscapeFlags flags = HTMLEscapeFlags.escapeNewline)
if (isOutputRange!(R, dchar) && isInputRange!S)
{
for (;!str.empty;str.popFront())
filterHTMLEscape(dst, str.front, flags);
}
/** Writes the HTML escaped version of a given string to an output range (also escapes double quotes).
*/
void filterHTMLAttribEscape(R, S)(ref R dst, S str)
if (isOutputRange!(R, dchar) && isInputRange!S)
{
for (; !str.empty; str.popFront())
filterHTMLEscape(dst, str.front, HTMLEscapeFlags.escapeNewline|HTMLEscapeFlags.escapeQuotes);
}
/** Writes the HTML escaped version of a given string to an output range (escapes every character).
*/
void filterHTMLAllEscape(R, S)(ref R dst, S str)
if (isOutputRange!(R, dchar) && isInputRange!S)
{
for (; !str.empty; str.popFront()) {
dst.put("&#");
dst.put(to!string(cast(uint)str.front));
dst.put(';');
}
}
/**
Writes the HTML escaped version of a character to an output range.
*/
void filterHTMLEscape(R)(ref R dst, dchar ch, HTMLEscapeFlags flags = HTMLEscapeFlags.escapeNewline )
{
switch (ch) {
default:
if (flags & HTMLEscapeFlags.escapeUnknown) {
dst.put("&#");
dst.put(to!string(cast(uint)ch));
dst.put(';');
} else dst.put(ch);
break;
case '"':
if (flags & HTMLEscapeFlags.escapeQuotes) dst.put(""");
else dst.put('"');
break;
case '\'':
if (flags & HTMLEscapeFlags.escapeQuotes) dst.put("'");
else dst.put('\'');
break;
case '\r', '\n':
if (flags & HTMLEscapeFlags.escapeNewline) {
dst.put("&#");
dst.put(to!string(cast(uint)ch));
dst.put(';');
} else dst.put(ch);
break;
case 'a': .. case 'z': goto case;
case 'A': .. case 'Z': goto case;
case '0': .. case '9': goto case;
case ' ', '\t', '-', '_', '.', ':', ',', ';',
'#', '+', '*', '?', '=', '(', ')', '/', '!',
'%' , '{', '}', '[', ']', '`', '´', '$', '^', '~':
dst.put(cast(char)ch);
break;
case '<': dst.put("<"); break;
case '>': dst.put(">"); break;
case '&': dst.put("&"); break;
}
}
enum HTMLEscapeFlags {
escapeMinimal = 0,
escapeQuotes = 1<<0,
escapeNewline = 1<<1,
escapeUnknown = 1<<2
}
| D |
/**
A package supplier using the registry server.
Copyright: © 2012 Matthias Dondorff
License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file.
Authors: Matthias Dondorff
*/
module dub.registry;
import dub.dependency;
import dub.packagesupplier;
import dub.utils;
import vibecompat.core.file;
import vibecompat.core.log;
import vibecompat.data.json;
import vibecompat.inet.url;
import vibecompat.inet.urltransfer;
import std.conv;
import std.exception;
import std.file;
private const string PackagesPath = "packages";
/// Client PackageSupplier using the registry available via registerVpmRegistry
class RegistryPS : PackageSupplier {
this(Url registry) { m_registryUrl = registry; }
void storePackage(const Path path, const string packageId, const Dependency dep) {
Json best = bestPackage(packageId, dep);
auto url = m_registryUrl ~ Path("packages/"~packageId~"/"~best["version"].get!string~".zip");
logDebug("Found download URL: '%s'", url);
download(url, path);
}
Json packageJson(const string packageId, const Dependency dep) {
return bestPackage(packageId, dep);
}
private {
Url m_registryUrl;
Json[string] m_allMetadata;
}
private Json metadata(const string packageId) {
if( auto json = packageId in m_allMetadata )
return *json;
auto url = m_registryUrl ~ Path(PackagesPath ~ "/" ~ packageId ~ ".json");
logTrace("Downloading metadata for %s", packageId);
logTrace("Getting from %s", url);
import std.net.curl;
auto conn = HTTP();
static if( is(typeof(&conn.verifyPeer)) )
conn.verifyPeer = false;
auto jsonData = cast(string)get(url.toString(), conn);
Json json = parseJson(jsonData);
m_allMetadata[packageId] = json;
return json;
}
private Json bestPackage(const string packageId, const Dependency dep) {
Json md = metadata(packageId);
Json best = null;
foreach(json; md["versions"]) {
auto cur = Version(cast(string)json["version"]);
if(dep.matches(cur) && (best == null || Version(cast(string)best["version"]) < cur))
best = json;
}
enforce(best != null, "No package candidate found for "~packageId~" "~dep.toString());
return best;
}
} | D |
# 1 "foo_c.h"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "foo_c.h"
int foo();
int aaaaa()
{
int j = 0;
for( int i=12; i< 100; i++ )
j+=i;
}
| D |
/*-
* Copyright (c) 2009-2010 Doug Rabson
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
/*-
* Copyright (c) 1998 John D. Polstra.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
module objfile.elf;
//debug = elf;
import std.stdint;
version (GDC)
import std.c.unix.unix;
else
import std.c.posix.posix;
import std.c.string;
import endian;
import target.target;
import objfile.objfile;
import machine.machine;
import machine.x86;
import machine.arm;
struct Note {
uint32_t n_namesz;
uint32_t n_descsz;
uint32_t n_type;
}
struct Ident {
uint8_t ei_magic[4]; // Magic number 0x7f, 'E', 'L', 'F'
uint8_t ei_class; // Machine class
uint8_t ei_data; // Data formant
uint8_t ei_version; // ELF format version
uint8_t ei_osabi; // OS / ABI identification
uint8_t ei_abiversion; // ABI version
uint8_t ei_pad[7]; // pad to 16 bytes
}
bool IsElf(Ident* i)
{
return i.ei_magic[0] == 0x7f
&& i.ei_magic[1] == 'E'
&& i.ei_magic[2] == 'L'
&& i.ei_magic[3] == 'F';
}
// Values for Ident.ei_version
enum {
EV_NONE = 0,
EV_CURRENT = 1,
}
// Values for Ident.ei_class
enum {
ELFCLASSNONE = 0, // Unknown class
ELFCLASS32 = 1, // 32-bit architecture
ELFCLASS64 = 2 // 64-bit architecture
}
// Values for Ident.ei_data
enum {
ELFDATANONE = 0, // Unknown data formst
ELFDATA2LSB = 1, // 2's complement little-endian
ELFDATA2MSB = 2 // 2's complement big-endian
}
// Values for Ident.ei_osabi
enum {
ELFOSABI_NONE = 0, // UNIX System V ABI
ELFOSABI_HPUX = 1, // HP-UX operating system
ELFOSABI_NETBSD = 2, // NetBSD
ELFOSABI_LINUX = 3, // GNU/Linux
ELFOSABI_HURD = 4, // GNU/Hurd
ELFOSABI_86OPEN = 5, // 86Open common IA32 ABI
ELFOSABI_SOLARIS = 6, // Solaris
ELFOSABI_AIX = 7, // AIX
ELFOSABI_IRIX = 8, // IRIX
ELFOSABI_FREEBSD = 9, // FreeBSD
ELFOSABI_TRU64 = 10, // TRU64 UNIX
ELFOSABI_MODESTO = 11, // Novell Modesto
ELFOSABI_OPENBSD = 12, // OpenBSD
ELFOSABI_OPENVMS = 13, // Open VMS
ELFOSABI_NSK = 14, // HP Non-Stop Kernel
ELFOSABI_ARM = 97, // ARM
ELFOSABI_STANDALONE = 255 // Standalone (embedded) application
}
// Values for e_type.
enum {
ET_NONE = 0, // Unknown type.
ET_REL = 1, // Relocatable.
ET_EXEC = 2, // Executable.
ET_DYN = 3, // Shared object.
ET_CORE = 4, // Core file.
ET_LOOS = 0xfe00, // First operating system specific.
ET_HIOS = 0xfeff, // Last operating system-specific.
ET_LOPROC = 0xff00, // First processor-specific.
ET_HIPROC = 0xffff, // Last processor-specific.
}
// Values for e_machine.
enum {
EM_NONE = 0, // Unknown machine.
EM_M32 = 1, // AT&T WE32100.
EM_SPARC = 2, // Sun SPARC.
EM_386 = 3, // Intel i386.
EM_68K = 4, // Motorola 68000.
EM_88K = 5, // Motorola 88000.
EM_860 = 7, // Intel i860.
EM_MIPS = 8, // MIPS R3000 Big-Endian only.
EM_S370 = 9, // IBM System/370.
EM_MIPS_RS3_LE = 10, // MIPS R3000 Little-Endian.
EM_PARISC = 15, // HP PA-RISC.
EM_VPP500 = 17, // Fujitsu VPP500.
EM_SPARC32PLUS = 18, // SPARC v8plus.
EM_960 = 19, // Intel 80960.
EM_PPC = 20, // PowerPC 32-bit.
EM_PPC64 = 21, // PowerPC 64-bit.
EM_S390 = 22, // IBM System/390.
EM_V800 = 36, // NEC V800.
EM_FR20 = 37, // Fujitsu FR20.
EM_RH32 = 38, // TRW RH-32.
EM_RCE = 39, // Motorola RCE.
EM_ARM = 40, // ARM.
EM_SH = 42, // Hitachi SH.
EM_SPARCV9 = 43, // SPARC v9 64-bit.
EM_TRICORE = 44, // Siemens TriCore embedded processor.
EM_ARC = 45, // Argonaut RISC Core.
EM_H8_300 = 46, // Hitachi H8/300.
EM_H8_300H = 47, // Hitachi H8/300H.
EM_H8S = 48, // Hitachi H8S.
EM_H8_500 = 49, // Hitachi H8/500.
EM_IA_64 = 50, // Intel IA-64 Processor.
EM_MIPS_X = 51, // Stanford MIPS-X.
EM_COLDFIRE = 52, // Motorola ColdFire.
EM_68HC12 = 53, // Motorola M68HC12.
EM_MMA = 54, // Fujitsu MMA.
EM_PCP = 55, // Siemens PCP.
EM_NCPU = 56, // Sony nCPU.
EM_NDR1 = 57, // Denso NDR1 microprocessor.
EM_STARCORE = 58, // Motorola Star*Core processor.
EM_ME16 = 59, // Toyota ME16 processor.
EM_ST100 = 60, // STMicroelectronics ST100 processor.
EM_TINYJ = 61, // Advanced Logic Corp. TinyJ processor.
EM_X86_64 = 62, // Advanced Micro Devices x86-64
EM_AMD64 = EM_X86_64, // Advanced Micro Devices x86-64 (compat)
// Non-standard or deprecated.
EM_486 = 6, // Intel i486.
EM_MIPS_RS4_BE = 10, // MIPS R4000 Big-Endian
EM_ALPHA_STD = 41, // Digital Alpha (standard value).
EM_ALPHA = 0x9026, // Alpha (written in the absence of an ABI)
}
// Special section indexes.
enum {
SHN_UNDEF = 0, // Undefined, missing, irrelevant.
SHN_LORESERVE = 0xff00, // First of reserved range.
SHN_LOPROC = 0xff00, // First processor-specific.
SHN_HIPROC = 0xff1f, // Last processor-specific.
SHN_LOOS = 0xff20, // First operating system-specific.
SHN_HIOS = 0xff3f, // Last operating system-specific.
SHN_ABS = 0xfff1, // Absolute values.
SHN_COMMON = 0xfff2, // Common data.
SHN_XINDEX = 0xffff, // Escape -- index stored elsewhere.
SHN_HIRESERVE = 0xffff, // Last of reserved range.
}
// sh_type
enum {
SHT_NULL = 0, // inactive
SHT_PROGBITS = 1, // program defined information
SHT_SYMTAB = 2, // symbol table section
SHT_STRTAB = 3, // string table section
SHT_RELA = 4, // relocation section with addends
SHT_HASH = 5, // symbol hash table section
SHT_DYNAMIC = 6, // dynamic section
SHT_NOTE = 7, // note section
SHT_NOBITS = 8, // no space section
SHT_REL = 9, // relocation section - no addends
SHT_SHLIB = 10, // reserved - purpose unknown
SHT_DYNSYM = 11, // dynamic symbol table section
SHT_INIT_ARRAY = 14, // Initialization function pointers.
SHT_FINI_ARRAY = 15, // Termination function pointers.
SHT_PREINIT_ARRAY = 16, // Pre-initialization function ptrs.
SHT_GROUP = 17, // Section group.
SHT_SYMTAB_SHNDX = 18, // Section indexes (see SHN_XINDEX).
SHT_LOOS = 0x60000000, // First of OS specific semantics
SHT_LOSUNW = 0x6ffffff4,
SHT_SUNW_dof = 0x6ffffff4,
SHT_SUNW_cap = 0x6ffffff5,
SHT_SUNW_SIGNATURE = 0x6ffffff6,
SHT_SUNW_ANNOTATE = 0x6ffffff7,
SHT_SUNW_DEBUGSTR = 0x6ffffff8,
SHT_SUNW_DEBUG = 0x6ffffff9,
SHT_SUNW_move = 0x6ffffffa,
SHT_SUNW_COMDAT = 0x6ffffffb,
SHT_SUNW_syminfo = 0x6ffffffc,
SHT_SUNW_verdef = 0x6ffffffd,
SHT_GNU_verdef = 0x6ffffffd, // Symbol versions provided
SHT_SUNW_verneed = 0x6ffffffe,
SHT_GNU_verneed = 0x6ffffffe, // Symbol versions required
SHT_SUNW_versym = 0x6fffffff,
SHT_GNU_versym = 0x6fffffff, // Symbol version table
SHT_HISUNW = 0x6fffffff,
SHT_HIOS = 0x6fffffff, // Last of OS specific semantics
SHT_LOPROC = 0x70000000, // reserved range for processor
SHT_AMD64_UNWIND = 0x70000001, // unwind information
SHT_HIPROC = 0x7fffffff, // specific section header types
SHT_LOUSER = 0x80000000, // reserved range for application
SHT_HIUSER = 0xffffffff, // specific indexes
}
// Flags for sh_flags.
enum {
SHF_WRITE = 0x1, // Section contains writable data.
SHF_ALLOC = 0x2, // Section occupies memory.
SHF_EXECINSTR = 0x4, // Section contains instructions.
SHF_MERGE = 0x10, // Section may be merged.
SHF_STRINGS = 0x20, // Section contains strings.
SHF_INFO_LINK = 0x40, // sh_info holds section index.
SHF_LINK_ORDER = 0x80, // Special ordering requirements.
SHF_OS_NONCONFORMING = 0x100, // OS-specific processing required.
SHF_GROUP = 0x200, // Member of section group.
SHF_TLS = 0x400, // Section contains TLS data.
SHF_MASKOS = 0x0ff00000, // OS-specific semantics.
SHF_MASKPROC = 0xf0000000, // Processor-specific semantics.
}
// Values for p_type.
enum {
PT_NULL = 0, // Unused entry.
PT_LOAD = 1, // Loadable segment.
PT_DYNAMIC = 2, // Dynamic linking information segment.
PT_INTERP = 3, // Pathname of interpreter.
PT_NOTE = 4, // Auxiliary information.
PT_SHLIB = 5, // Reserved (not used).
PT_PHDR = 6, // Location of program header itself.
PT_TLS = 7, // Thread local storage segment
PT_LOOS = 0x60000000, // First OS-specific.
PT_SUNW_UNWIND = 0x6464e550, // amd64 UNWIND program header
PT_GNU_EH_FRAME = 0x6474e550,
PT_LOSUNW = 0x6ffffffa,
PT_SUNWBSS = 0x6ffffffa, // Sun Specific segment
PT_SUNWSTACK = 0x6ffffffb, // describes the stack segment
PT_SUNWDTRACE = 0x6ffffffc, // private
PT_SUNWCAP = 0x6ffffffd, // hard/soft capabilities segment
PT_HISUNW = 0x6fffffff,
PT_HIOS = 0x6fffffff, // Last OS-specific.
PT_LOPROC = 0x70000000, // First processor-specific type.
PT_HIPROC = 0x7fffffff, // Last processor-specific type.
}
// Values for p_flags.
enum {
PF_X = 0x1, // Executable.
PF_W = 0x2, // Writable.
PF_R = 0x4, // Readable.
PF_MASKOS = 0x0ff00000, // Operating system-specific.
PF_MASKPROC = 0xf0000000, // Processor-specific.
}
// Extended program header index.
const int PN_XNUM = 0xffff;
// Values for d_tag.
enum {
DT_NULL = 0, // Terminating entry.
DT_NEEDED = 1, // String table offset of a needed shared library.
DT_PLTRELSZ = 2, // Total size in bytes of PLT relocations.
DT_PLTGOT = 3, // Processor-dependent address.
DT_HASH = 4, // Address of symbol hash table.
DT_STRTAB = 5, // Address of string table.
DT_SYMTAB = 6, // Address of symbol table.
DT_RELA = 7, // Address of ElfNN_Rela relocations.
DT_RELASZ = 8, // Total size of ElfNN_Rela relocations.
DT_RELAENT = 9, // Size of each ElfNN_Rela relocation entry.
DT_STRSZ = 10, // Size of string table.
DT_SYMENT = 11, // Size of each symbol table entry.
DT_INIT = 12, // Address of initialization function.
DT_FINI = 13, // Address of finalization function.
DT_SONAME = 14, // String table offset of shared object name.
DT_RPATH = 15, // String table offset of library path. [sup]
DT_SYMBOLIC = 16, // Indicates "symbolic" linking. [sup]
DT_REL = 17, // Address of ElfNN_Rel relocations.
DT_RELSZ = 18, // Total size of ElfNN_Rel relocations.
DT_RELENT = 19, // Size of each ElfNN_Rel relocation.
DT_PLTREL = 20, // Type of relocation used for PLT.
DT_DEBUG = 21, // Reserved (not used).
DT_TEXTREL = 22, // Indicates there may be relocations in
// non-writable segments. [sup]
DT_JMPREL = 23, // Address of PLT relocations.
DT_BIND_NOW = 24, // [sup]
DT_INIT_ARRAY = 25, // Address of the array of pointers to
// initialization functions
DT_FINI_ARRAY = 26, // Address of the array of pointers to
// termination functions
DT_INIT_ARRAYSZ = 27, // Size in bytes of the array of
// initialization functions.
DT_FINI_ARRAYSZ = 28, // Size in bytes of the array of
// terminationfunctions.
DT_RUNPATH = 29, // String table offset of a null-terminated
// library search path string.
DT_FLAGS = 30, // Object specific flag values.
DT_ENCODING = 32, // Values greater than or equal to DT_ENCODING
// and less than DT_LOOS follow the rules for
// the interpretation of the d_un union
// as follows: even == 'd_ptr', even == 'd_val'
// or none
DT_PREINIT_ARRAY =32, // Address of the array of pointers to
// pre-initialization functions.
DT_PREINIT_ARRAYSZ = 33, // Size in bytes of the array of
// pre-initialization functions.
DT_MAXPOSTAGS = 34, // number of positive tags
DT_LOOS = 0x6000000d, // First OS-specific
DT_SUNW_AUXILIARY = 0x6000000d, // symbol auxiliary name
DT_SUNW_RTLDINF = 0x6000000e, // ld.so.1 info (private)
DT_SUNW_FILTER = 0x6000000f, // symbol filter name
DT_SUNW_CAP = 0x60000010, // hardware/software
DT_HIOS = 0x6ffff000, // Last OS-specific
// DT_* entries which fall between DT_VALRNGHI & DT_VALRNGLO use
// the Dyn.d_un.d_val field of the Elf*_Dyn structure.
DT_VALRNGLO = 0x6ffffd00,
DT_CHECKSUM = 0x6ffffdf8, // elf checksum
DT_PLTPADSZ = 0x6ffffdf9, // pltpadding size
DT_MOVEENT = 0x6ffffdfa, // move table entry size
DT_MOVESZ = 0x6ffffdfb, // move table size
DT_FEATURE_1 = 0x6ffffdfc, // feature holder
DT_POSFLAG_1 = 0x6ffffdfd, // flags for DT_* entries, effecting
// the following DT_* entry.
// See DF_P1_* definitions
DT_SYMINSZ = 0x6ffffdfe, // syminfo table size (in bytes)
DT_SYMINENT = 0x6ffffdff, // syminfo entry size (in bytes)
DT_VALRNGHI = 0x6ffffdff,
// DT_* entries which fall between DT_ADDRRNGHI & DT_ADDRRNGLO use the
// Dyn.d_un.d_ptr field of the Elf*_Dyn structure.
//
// If any adjustment is made to the ELF object after it has been
// built, these entries will need to be adjusted.
DT_ADDRRNGLO = 0x6ffffe00,
DT_CONFIG = 0x6ffffefa, // configuration information
DT_DEPAUDIT = 0x6ffffefb, // dependency auditing
DT_AUDIT = 0x6ffffefc, // object auditing
DT_PLTPAD = 0x6ffffefd, // pltpadding (sparcv9)
DT_MOVETAB = 0x6ffffefe, // move table
DT_SYMINFO = 0x6ffffeff, // syminfo table
DT_ADDRRNGHI = 0x6ffffeff,
DT_VERSYM = 0x6ffffff0, // Address of versym section.
DT_RELACOUNT = 0x6ffffff9, // number of RELATIVE relocations
DT_RELCOUNT = 0x6ffffffa, // number of RELATIVE relocations
DT_FLAGS_1 = 0x6ffffffb, // state flags - see DF_1_* defs
DT_VERDEF = 0x6ffffffc, // Address of verdef section.
DT_VERDEFNUM = 0x6ffffffd, // Number of elems in verdef section
DT_VERNEED = 0x6ffffffe, // Address of verneed section.
DT_VERNEEDNUM = 0x6fffffff, // Number of elems in verneed section
DT_LOPROC = 0x70000000, // First processor-specific type.
DT_DEPRECATED_SPARC_REGISTER = 0x7000001,
DT_AUXILIARY = 0x7ffffffd, // shared library auxiliary name
DT_USED = 0x7ffffffe, // ignored - same as needed
DT_FILTER = 0x7fffffff, // shared library filter name
DT_HIPROC = 0x7fffffff, // Last processor-specific type.
// Values for DT_FLAGS
DF_ORIGIN = 0x0001, // Indicates that the object being loaded may
// make reference to the $ORIGIN substitution
// string
DF_SYMBOLIC = 0x0002, // Indicates "symbolic" linking.
DF_TEXTREL = 0x0004, // Indicates there may be relocations in
// non-writable segments.
DF_BIND_NOW = 0x0008, // Indicates that the dynamic linker should
// process all relocations for the object
// containing this entry before transferring
// control to the program.
DF_STATIC_TLS = 0x0010, // Indicates that the shared object or
// executable contains code using a static
// thread-local storage scheme.
}
// Values for n_type. Used in core files.
enum {
NT_PRSTATUS = 1, // Process status.
NT_FPREGSET = 2, // Floating point registers.
NT_PRPSINFO = 3, // Process state info.
}
// Symbol Binding - ELFNN_ST_BIND - st_info
enum {
STB_LOCAL = 0, // Local symbol
STB_GLOBAL = 1, // Global symbol
STB_WEAK = 2, // like global - lower precedence
STB_LOOS = 10, // Reserved range for operating system
STB_HIOS = 12, // specific semantics.
STB_LOPROC = 13, // reserved range for processor
STB_HIPROC = 15, // specific semantics.
}
// Symbol type - ELFNN_ST_TYPE - st_info
enum {
STT_NOTYPE = 0, // Unspecified type.
STT_OBJECT = 1, // Data object.
STT_FUNC = 2, // Function.
STT_SECTION = 3, // Section.
STT_FILE = 4, // Source file.
STT_COMMON = 5, // Uninitialized common block.
STT_TLS = 6, // TLS object.
STT_NUM = 7,
STT_LOOS = 10, // Reserved range for operating system
STT_HIOS = 12, // specific semantics.
STT_LOPROC = 13, // reserved range for processor
STT_HIPROC = 15, // specific semantics.
}
// Symbol visibility - ELFNN_ST_VISIBILITY - st_other
enum {
STV_DEFAULT = 0x0, // Default visibility (see binding).
STV_INTERNAL = 0x1, // Special meaning in relocatable objects.
STV_HIDDEN = 0x2, // Not visible.
STV_PROTECTED = 0x3, // Visible but not preemptible.
STV_EXPORTED = 0x4,
STV_SINGLETON = 0x5,
STV_ELIMINATE = 0x6,
}
// Special symbol table indexes.
const int STN_UNDEF = 0; // Undefined symbol index.
// Symbol versioning flags.
const int VER_NDX_LOCAL = 0;
const int VER_NDX_GLOBAL = 1;
const int VER_NDX_GIVEN = 2;
const int VER_NDX_HIDDEN = (1u << 15);
int VER_NDX(int x)
{
return x & ~(1u << 15);
}
const int VER_DEF_CURRENT = 1;
int VER_DEF_IDX(int x)
{
return VER_NDX(x);
}
const int VER_FLG_BASE = 0x01;
const int VER_FLG_WEAK = 0x02;
const int VER_NEED_CURRENT = 1;
const int VER_NEED_WEAK = (1u << 15);
const int VER_NEED_HIDDEN = VER_NDX_HIDDEN;
int VER_NEED_IDX(int x)
{
return VER_NDX(x);
}
enum {
CA_SUNW_NULL = 0,
CA_SUNW_HW_1 = 1, // first hardware capabilities entry
CA_SUNW_SF_1 = 2, // first software capabilities entry
}
// Syminfo flag values
enum {
SYMINFO_FLG_DIRECT = 0x0001, // symbol ref has direct association
// to object containing defn.
SYMINFO_FLG_PASSTHRU = 0x0002, // ignored - see SYMINFO_FLG_FILTER
SYMINFO_FLG_COPY = 0x0004, // symbol is a copy-reloc
SYMINFO_FLG_LAZYLOAD = 0x0008, // object containing defn should be
// lazily-loaded
SYMINFO_FLG_DIRECTBIND = 0x0010, // ref should be bound directly to
// object containing defn.
SYMINFO_FLG_NOEXTDIRECT = 0x0020, // don't let an external reference
// directly bind to this symbol
SYMINFO_FLG_FILTER = 0x0002, // symbol ref is associated to a
SYMINFO_FLG_AUXILIARY = 0x0040, // standard or auxiliary filter
}
// Syminfo.si_boundto values.
enum {
SYMINFO_BT_SELF = 0xffff, // symbol bound to self
SYMINFO_BT_PARENT = 0xfffe, // symbol bound to parent
SYMINFO_BT_NONE = 0xfffd, // no special symbol binding
SYMINFO_BT_EXTERN = 0xfffc, // symbol defined as external
SYMINFO_BT_LOWRESERVE = 0xff00, // beginning of reserved entries
}
// Syminfo version values.
enum {
SYMINFO_NONE = 0, // Syminfo version
SYMINFO_CURRENT = 1,
SYMINFO_NUM = 2,
}
//
// Relocation types.
//
// All machine architectures are defined here to allow tools on one to
// handle others.
enum {
R_386_NONE = 0, // No relocation.
R_386_32 = 1, // Add symbol value.
R_386_PC32 = 2, // Add PC-relative symbol value.
R_386_GOT32 = 3, // Add PC-relative GOT offset.
R_386_PLT32 = 4, // Add PC-relative PLT offset.
R_386_COPY = 5, // Copy data from shared object.
R_386_GLOB_DAT = 6, // Set GOT entry to data address.
R_386_JMP_SLOT = 7, // Set GOT entry to code address.
R_386_RELATIVE = 8, // Add load address of shared object.
R_386_GOTOFF = 9, // Add GOT-relative symbol address.
R_386_GOTPC = 10, // Add PC-relative GOT table address.
R_386_TLS_TPOFF = 14, // Negative offset in static TLS block
R_386_TLS_IE = 15, // Absolute address of GOT for -ve static TLS
R_386_TLS_GOTIE = 16, // GOT entry for negative static TLS block
R_386_TLS_LE = 17, // Negative offset relative to static TLS
R_386_TLS_GD = 18, // 32 bit offset to GOT (index,off) pair
R_386_TLS_LDM = 19, // 32 bit offset to GOT (index,zero) pair
R_386_TLS_GD_32 = 24, // 32 bit offset to GOT (index,off) pair
R_386_TLS_GD_PUSH = 25, // pushl instruction for Sun ABI GD sequence
R_386_TLS_GD_CALL = 26, // call instruction for Sun ABI GD sequence
R_386_TLS_GD_POP = 27, // popl instruction for Sun ABI GD sequence
R_386_TLS_LDM_32 = 28, // 32 bit offset to GOT (index,zero) pair
R_386_TLS_LDM_PUSH = 29, // pushl instruction for Sun ABI LD sequence
R_386_TLS_LDM_CALL = 30, // call instruction for Sun ABI LD sequence
R_386_TLS_LDM_POP = 31, // popl instruction for Sun ABI LD sequence
R_386_TLS_LDO_32 = 32, // 32 bit offset from start of TLS block
R_386_TLS_IE_32 = 33, // 32 bit offset to GOT static TLS offset entry
R_386_TLS_LE_32 = 34, // 32 bit offset within static TLS block
R_386_TLS_DTPMOD32 = 35, // GOT entry containing TLS index
R_386_TLS_DTPOFF32 = 36, // GOT entry containing TLS offset
R_386_TLS_TPOFF32 = 37, // GOT entry of -ve static TLS offset
R_ARM_NONE = 0, // No relocation.
R_ARM_PC24 = 1,
R_ARM_ABS32 = 2,
R_ARM_REL32 = 3,
R_ARM_PC13 = 4,
R_ARM_ABS16 = 5,
R_ARM_ABS12 = 6,
R_ARM_THM_ABS5 = 7,
R_ARM_ABS8 = 8,
R_ARM_SBREL32 = 9,
R_ARM_THM_PC22 = 10,
R_ARM_THM_PC8 = 11,
R_ARM_AMP_VCALL9 = 12,
R_ARM_SWI24 = 13,
R_ARM_THM_SWI8 = 14,
R_ARM_XPC25 = 15,
R_ARM_THM_XPC22 = 16,
R_ARM_COPY = 20, // Copy data from shared object.
R_ARM_GLOB_DAT = 21, // Set GOT entry to data address.
R_ARM_JUMP_SLOT = 22, // Set GOT entry to code address.
R_ARM_RELATIVE = 23, // Add load address of shared object.
R_ARM_GOTOFF = 24, // Add GOT-relative symbol address.
R_ARM_GOTPC = 25, // Add PC-relative GOT table address.
R_ARM_GOT32 = 26, // Add PC-relative GOT offset.
R_ARM_PLT32 = 27, // Add PC-relative PLT offset.
R_ARM_GNU_VTENTRY = 100,
R_ARM_GNU_VTINHERIT = 101,
R_ARM_RSBREL32 = 250,
R_ARM_THM_RPC22 = 251,
R_ARM_RREL32 = 252,
R_ARM_RABS32 = 253,
R_ARM_RPC24 = 254,
R_ARM_RBASE = 255,
// Name Value Field Calculation
R_IA_64_NONE = 0, // None
R_IA_64_IMM14 = 0x21, // immediate14 S + A
R_IA_64_IMM22 = 0x22, // immediate22 S + A
R_IA_64_IMM64 = 0x23, // immediate64 S + A
R_IA_64_DIR32MSB = 0x24, // word32 MSB S + A
R_IA_64_DIR32LSB = 0x25, // word32 LSB S + A
R_IA_64_DIR64MSB = 0x26, // word64 MSB S + A
R_IA_64_DIR64LSB = 0x27, // word64 LSB S + A
R_IA_64_GPREL22 = 0x2a, // immediate22 @gprel(S + A)
R_IA_64_GPREL64I = 0x2b, // immediate64 @gprel(S + A)
R_IA_64_GPREL32MSB = 0x2c, // word32 MSB @gprel(S + A)
R_IA_64_GPREL32LSB = 0x2d, // word32 LSB @gprel(S + A)
R_IA_64_GPREL64MSB = 0x2e, // word64 MSB @gprel(S + A)
R_IA_64_GPREL64LSB = 0x2f, // word64 LSB @gprel(S + A)
R_IA_64_LTOFF22 = 0x32, // immediate22 @ltoff(S + A)
R_IA_64_LTOFF64I = 0x33, // immediate64 @ltoff(S + A)
R_IA_64_PLTOFF22 = 0x3a, // immediate22 @pltoff(S + A)
R_IA_64_PLTOFF64I = 0x3b, // immediate64 @pltoff(S + A)
R_IA_64_PLTOFF64MSB = 0x3e, // word64 MSB @pltoff(S + A)
R_IA_64_PLTOFF64LSB = 0x3f, // word64 LSB @pltoff(S + A)
R_IA_64_FPTR64I = 0x43, // immediate64 @fptr(S + A)
R_IA_64_FPTR32MSB = 0x44, // word32 MSB @fptr(S + A)
R_IA_64_FPTR32LSB = 0x45, // word32 LSB @fptr(S + A)
R_IA_64_FPTR64MSB = 0x46, // word64 MSB @fptr(S + A)
R_IA_64_FPTR64LSB = 0x47, // word64 LSB @fptr(S + A)
R_IA_64_PCREL60B = 0x48, // immediate60 form1 S + A - P
R_IA_64_PCREL21B = 0x49, // immediate21 form1 S + A - P
R_IA_64_PCREL21M = 0x4a, // immediate21 form2 S + A - P
R_IA_64_PCREL21F = 0x4b, // immediate21 form3 S + A - P
R_IA_64_PCREL32MSB = 0x4c, // word32 MSB S + A - P
R_IA_64_PCREL32LSB = 0x4d, // word32 LSB S + A - P
R_IA_64_PCREL64MSB = 0x4e, // word64 MSB S + A - P
R_IA_64_PCREL64LSB = 0x4f, // word64 LSB S + A - P
R_IA_64_LTOFF_FPTR22 = 0x52, // immediate22 @ltoff(@fptr(S + A))
R_IA_64_LTOFF_FPTR64I = 0x53, // immediate64 @ltoff(@fptr(S + A))
R_IA_64_LTOFF_FPTR32MSB = 0x54, // word32 MSB @ltoff(@fptr(S + A))
R_IA_64_LTOFF_FPTR32LSB = 0x55, // word32 LSB @ltoff(@fptr(S + A))
R_IA_64_LTOFF_FPTR64MSB = 0x56, // word64 MSB @ltoff(@fptr(S + A))
R_IA_64_LTOFF_FPTR64LSB = 0x57, // word64 LSB @ltoff(@fptr(S + A))
R_IA_64_SEGREL32MSB = 0x5c, // word32 MSB @segrel(S + A)
R_IA_64_SEGREL32LSB = 0x5d, // word32 LSB @segrel(S + A)
R_IA_64_SEGREL64MSB = 0x5e, // word64 MSB @segrel(S + A)
R_IA_64_SEGREL64LSB = 0x5f, // word64 LSB @segrel(S + A)
R_IA_64_SECREL32MSB = 0x64, // word32 MSB @secrel(S + A)
R_IA_64_SECREL32LSB = 0x65, // word32 LSB @secrel(S + A)
R_IA_64_SECREL64MSB = 0x66, // word64 MSB @secrel(S + A)
R_IA_64_SECREL64LSB = 0x67, // word64 LSB @secrel(S + A)
R_IA_64_REL32MSB = 0x6c, // word32 MSB BD + A
R_IA_64_REL32LSB = 0x6d, // word32 LSB BD + A
R_IA_64_REL64MSB = 0x6e, // word64 MSB BD + A
R_IA_64_REL64LSB = 0x6f, // word64 LSB BD + A
R_IA_64_LTV32MSB = 0x74, // word32 MSB S + A
R_IA_64_LTV32LSB = 0x75, // word32 LSB S + A
R_IA_64_LTV64MSB = 0x76, // word64 MSB S + A
R_IA_64_LTV64LSB = 0x77, // word64 LSB S + A
R_IA_64_PCREL21BI = 0x79, // immediate21 form1 S + A - P
R_IA_64_PCREL22 = 0x7a, // immediate22 S + A - P
R_IA_64_PCREL64I = 0x7b, // immediate64 S + A - P
R_IA_64_IPLTMSB = 0x80, // function descriptor MSB special
R_IA_64_IPLTLSB = 0x81, // function descriptor LSB speciaal
R_IA_64_SUB = 0x85, // immediate64 A - S
R_IA_64_LTOFF22X = 0x86, // immediate22 special
R_IA_64_LDXMOV = 0x87, // immediate22 special
R_IA_64_TPREL14 = 0x91, // imm14 @tprel(S + A)
R_IA_64_TPREL22 = 0x92, // imm22 @tprel(S + A)
R_IA_64_TPREL64I = 0x93, // imm64 @tprel(S + A)
R_IA_64_TPREL64MSB = 0x96, // word64 MSB @tprel(S + A)
R_IA_64_TPREL64LSB = 0x97, // word64 LSB @tprel(S + A)
R_IA_64_LTOFF_TPREL22 = 0x9a, // imm22 @ltoff(@tprel(S+A))
R_IA_64_DTPMOD64MSB = 0xa6, // word64 MSB @dtpmod(S + A)
R_IA_64_DTPMOD64LSB = 0xa7, // word64 LSB @dtpmod(S + A)
R_IA_64_LTOFF_DTPMOD22 = 0xaa, // imm22 @ltoff(@dtpmod(S+A))
R_IA_64_DTPREL14 = 0xb1, // imm14 @dtprel(S + A)
R_IA_64_DTPREL22 = 0xb2, // imm22 @dtprel(S + A)
R_IA_64_DTPREL64I = 0xb3, // imm64 @dtprel(S + A)
R_IA_64_DTPREL32MSB = 0xb4, // word32 MSB @dtprel(S + A)
R_IA_64_DTPREL32LSB = 0xb5, // word32 LSB @dtprel(S + A)
R_IA_64_DTPREL64MSB = 0xb6, // word64 MSB @dtprel(S + A)
R_IA_64_DTPREL64LSB = 0xb7, // word64 LSB @dtprel(S + A)
R_IA_64_LTOFF_DTPREL22 = 0xba, // imm22 @ltoff(@dtprel(S+A))
R_PPC_NONE = 0, // No relocation.
R_PPC_ADDR32 = 1,
R_PPC_ADDR24 = 2,
R_PPC_ADDR16 = 3,
R_PPC_ADDR16_LO = 4,
R_PPC_ADDR16_HI = 5,
R_PPC_ADDR16_HA = 6,
R_PPC_ADDR14 = 7,
R_PPC_ADDR14_BRTAKEN = 8,
R_PPC_ADDR14_BRNTAKEN = 9,
R_PPC_REL24 = 10,
R_PPC_REL14 = 11,
R_PPC_REL14_BRTAKEN = 12,
R_PPC_REL14_BRNTAKEN = 13,
R_PPC_GOT16 = 14,
R_PPC_GOT16_LO = 15,
R_PPC_GOT16_HI = 16,
R_PPC_GOT16_HA = 17,
R_PPC_PLTREL24 = 18,
R_PPC_COPY = 19,
R_PPC_GLOB_DAT = 20,
R_PPC_JMP_SLOT = 21,
R_PPC_RELATIVE = 22,
R_PPC_LOCAL24PC = 23,
R_PPC_UADDR32 = 24,
R_PPC_UADDR16 = 25,
R_PPC_REL32 = 26,
R_PPC_PLT32 = 27,
R_PPC_PLTREL32 = 28,
R_PPC_PLT16_LO = 29,
R_PPC_PLT16_HI = 30,
R_PPC_PLT16_HA = 31,
R_PPC_SDAREL16 = 32,
R_PPC_SECTOFF = 33,
R_PPC_SECTOFF_LO = 34,
R_PPC_SECTOFF_HI = 35,
R_PPC_SECTOFF_HA = 36,
//
// TLS relocations
R_PPC_TLS = 67,
R_PPC_DTPMOD32 = 68,
R_PPC_TPREL16 = 69,
R_PPC_TPREL16_LO = 70,
R_PPC_TPREL16_HI = 71,
R_PPC_TPREL16_HA = 72,
R_PPC_TPREL32 = 73,
R_PPC_DTPREL16 = 74,
R_PPC_DTPREL16_LO = 75,
R_PPC_DTPREL16_HI = 76,
R_PPC_DTPREL16_HA = 77,
R_PPC_DTPREL32 = 78,
R_PPC_GOT_TLSGD16 = 79,
R_PPC_GOT_TLSGD16_LO = 80,
R_PPC_GOT_TLSGD16_HI = 81,
R_PPC_GOT_TLSGD16_HA = 82,
R_PPC_GOT_TLSLD16 = 83,
R_PPC_GOT_TLSLD16_LO = 84,
R_PPC_GOT_TLSLD16_HI = 85,
R_PPC_GOT_TLSLD16_HA = 86,
R_PPC_GOT_TPREL16 = 87,
R_PPC_GOT_TPREL16_LO = 88,
R_PPC_GOT_TPREL16_HI = 89,
R_PPC_GOT_TPREL16_HA = 90,
//
// The remaining relocs are from the Embedded ELF ABI, and are not in the
// SVR4 ELF ABI.
R_PPC_EMB_NADDR32 = 101,
R_PPC_EMB_NADDR16 = 102,
R_PPC_EMB_NADDR16_LO = 103,
R_PPC_EMB_NADDR16_HI = 104,
R_PPC_EMB_NADDR16_HA = 105,
R_PPC_EMB_SDAI16 = 106,
R_PPC_EMB_SDA2I16 = 107,
R_PPC_EMB_SDA2REL = 108,
R_PPC_EMB_SDA21 = 109,
R_PPC_EMB_MRKREF = 110,
R_PPC_EMB_RELSEC16 = 111,
R_PPC_EMB_RELST_LO = 112,
R_PPC_EMB_RELST_HI = 113,
R_PPC_EMB_RELST_HA = 114,
R_PPC_EMB_BIT_FLD = 115,
R_PPC_EMB_RELSDA = 116,
R_SPARC_NONE = 0,
R_SPARC_8 = 1,
R_SPARC_16 = 2,
R_SPARC_32 = 3,
R_SPARC_DISP8 = 4,
R_SPARC_DISP16 = 5,
R_SPARC_DISP32 = 6,
R_SPARC_WDISP30 = 7,
R_SPARC_WDISP22 = 8,
R_SPARC_HI22 = 9,
R_SPARC_22 = 10,
R_SPARC_13 = 11,
R_SPARC_LO10 = 12,
R_SPARC_GOT10 = 13,
R_SPARC_GOT13 = 14,
R_SPARC_GOT22 = 15,
R_SPARC_PC10 = 16,
R_SPARC_PC22 = 17,
R_SPARC_WPLT30 = 18,
R_SPARC_COPY = 19,
R_SPARC_GLOB_DAT = 20,
R_SPARC_JMP_SLOT = 21,
R_SPARC_RELATIVE = 22,
R_SPARC_UA32 = 23,
R_SPARC_PLT32 = 24,
R_SPARC_HIPLT22 = 25,
R_SPARC_LOPLT10 = 26,
R_SPARC_PCPLT32 = 27,
R_SPARC_PCPLT22 = 28,
R_SPARC_PCPLT10 = 29,
R_SPARC_10 = 30,
R_SPARC_11 = 31,
R_SPARC_64 = 32,
R_SPARC_OLO10 = 33,
R_SPARC_HH22 = 34,
R_SPARC_HM10 = 35,
R_SPARC_LM22 = 36,
R_SPARC_PC_HH22 = 37,
R_SPARC_PC_HM10 = 38,
R_SPARC_PC_LM22 = 39,
R_SPARC_WDISP16 = 40,
R_SPARC_WDISP19 = 41,
R_SPARC_GLOB_JMP = 42,
R_SPARC_7 = 43,
R_SPARC_5 = 44,
R_SPARC_6 = 45,
R_SPARC_DISP64 = 46,
R_SPARC_PLT64 = 47,
R_SPARC_HIX22 = 48,
R_SPARC_LOX10 = 49,
R_SPARC_H44 = 50,
R_SPARC_M44 = 51,
R_SPARC_L44 = 52,
R_SPARC_REGISTER = 53,
R_SPARC_UA64 = 54,
R_SPARC_UA16 = 55,
R_SPARC_TLS_GD_HI22 = 56,
R_SPARC_TLS_GD_LO10 = 57,
R_SPARC_TLS_GD_ADD = 58,
R_SPARC_TLS_GD_CALL = 59,
R_SPARC_TLS_LDM_HI22 = 60,
R_SPARC_TLS_LDM_LO10 = 61,
R_SPARC_TLS_LDM_ADD = 62,
R_SPARC_TLS_LDM_CALL = 63,
R_SPARC_TLS_LDO_HIX22 = 64,
R_SPARC_TLS_LDO_LOX10 = 65,
R_SPARC_TLS_LDO_ADD = 66,
R_SPARC_TLS_IE_HI22 = 67,
R_SPARC_TLS_IE_LO10 = 68,
R_SPARC_TLS_IE_LD = 69,
R_SPARC_TLS_IE_LDX = 70,
R_SPARC_TLS_IE_ADD = 71,
R_SPARC_TLS_LE_HIX22 = 72,
R_SPARC_TLS_LE_LOX10 = 73,
R_SPARC_TLS_DTPMOD32 = 74,
R_SPARC_TLS_DTPMOD64 = 75,
R_SPARC_TLS_DTPOFF32 = 76,
R_SPARC_TLS_DTPOFF64 = 77,
R_SPARC_TLS_TPOFF32 = 78,
R_SPARC_TLS_TPOFF64 = 79,
R_X86_64_NONE = 0, // No relocation.
R_X86_64_64 = 1, // Add 64 bit symbol value.
R_X86_64_PC32 = 2, // PC-relative 32 bit signed sym value.
R_X86_64_GOT32 = 3, // PC-relative 32 bit GOT offset.
R_X86_64_PLT32 = 4, // PC-relative 32 bit PLT offset.
R_X86_64_COPY = 5, // Copy data from shared object.
R_X86_64_GLOB_DAT = 6, // Set GOT entry to data address.
R_X86_64_JMP_SLOT = 7, // Set GOT entry to code address.
R_X86_64_RELATIVE = 8, // Add load address of shared object.
R_X86_64_GOTPCREL = 9, // Add 32 bit signed pcrel offset to GOT.
R_X86_64_32 = 10, // Add 32 bit zero extended symbol value
R_X86_64_32S = 11, // Add 32 bit sign extended symbol value
R_X86_64_16 = 12, // Add 16 bit zero extended symbol value
R_X86_64_PC16 = 13, // Add 16 bit signed extended pc relative symbol value
R_X86_64_8 = 14, // Add 8 bit zero extended symbol value
R_X86_64_PC8 = 15, // Add 8 bit signed extended pc relative symbol value
R_X86_64_DTPMOD64 = 16, // ID of module containing symbol
R_X86_64_DTPOFF64 = 17, // Offset in TLS block
R_X86_64_TPOFF64 = 18, // Offset in static TLS block
R_X86_64_TLSGD = 19, // PC relative offset to GD GOT entry
R_X86_64_TLSLD = 20, // PC relative offset to LD GOT entry
R_X86_64_DTPOFF32 = 21, // Offset in TLS block
R_X86_64_GOTTPOFF = 22, // PC relative offset to IE GOT entry
R_X86_64_TPOFF32 = 23, // Offset in static TLS block
}
/**
* Values for r_debug.r_state
*/
enum {
RT_CONSISTENT, // things are stable
RT_ADD, // adding a shared library
RT_DELETE // removing a shared library
}
import std.stdio;
import std.string;
//import std.c.unix.unix;
import sys.pread;
class Elffile: Objfile
{
static Objfile open(string file, TargetAddress base)
{
int fd = .open(toStringz(file), O_RDONLY);
if (fd > 0) {
Ident ei;
if (pread(fd, &ei, ei.sizeof, 0) != ei.sizeof
|| !IsElf(&ei)) {
.close(fd);
return null;
}
switch (ei.ei_class) {
case ELFCLASS32:
debug (elf)
writefln("Elf32 format file %s", file);
return new Elffile32(fd, base);
break;
case ELFCLASS64:
debug (elf)
writefln("Elf64 format file %s", file);
return new Elffile64(fd, base);
break;
default:
return null;
}
}
.close(fd);
return null;
}
static this()
{
Objfile.addFileType(&open);
}
override {
ulong read(ubyte[] bytes)
{
return endian_.read(bytes);
}
ushort read(ushort v)
{
return endian_.read(v);
}
uint read(uint v)
{
return endian_.read(v);
}
ulong read(ulong v)
{
return endian_.read(v);
}
void write(ulong val, ubyte[] bytes)
{
return endian_.write(val, bytes);
}
void write(ushort v, out ushort res)
{
return endian_.write(v, res);
}
void write(uint v, out uint res)
{
return endian_.write(v, res);
}
void write(ulong v, out ulong res)
{
return endian_.write(v, res);
}
}
short read(short v)
{
return endian_.read(cast(ushort) v);
}
int read(int v)
{
return endian_.read(cast(uint) v);
}
long read(long v)
{
return endian_.read(cast(ulong) v);
}
abstract bool is64();
abstract Symbol* lookupSymbol(TargetAddress addr);
abstract Symbol* lookupSymbol(string name);
abstract TargetAddress offset();
abstract uint tlsindex();
abstract void tlsindex(uint);
abstract bool hasSection(string name);
abstract char[] readSection(string name);
abstract string interpreter();
abstract void enumerateProgramHeaders(void delegate(uint, TargetAddress, TargetAddress) dg);
abstract void enumerateNotes(void delegate(uint, string, ubyte*) dg);
abstract ubyte[] readProgram(TargetAddress addr, TargetSize len);
abstract void digestDynamic(Target target);
abstract TargetAddress findSharedLibraryBreakpoint(Target target);
abstract uint sharedLibraryState(Target target);
abstract void enumerateLinkMap(Target target,
void delegate(string, TargetAddress, TargetAddress) dg);
abstract void enumerateNeededLibraries(Target target,
void delegate(string) dg);
abstract bool inPLT(TargetAddress pc);
private:
Endian endian_;
}
template ElfFileBase()
{
this(int fd, TargetAddress base)
{
fd_ = fd;
Ehdr eh;
if (pread(fd, &eh, eh.sizeof, 0) != eh.sizeof)
throw new Exception("Can't read Elf header");
if (eh.e_ident.ei_data == ELFDATA2LSB)
endian_ = new LittleEndian;
else
endian_ = new BigEndian;
type_ = read(eh.e_type);
machine_ = read(eh.e_machine);
debug (elf)
writefln("%d program headers", read(eh.e_phnum));
ph_.length = read(eh.e_phnum);
foreach (i, ref ph; ph_) {
if (pread(fd, &ph, eh.e_phentsize,
eh.e_phoff + i * eh.e_phentsize) != eh.e_phentsize)
throw new Exception("Can't read program headers");
}
if (base > 0 && ph_.length > 0) {
foreach (ph; ph_) {
if (read(ph.p_type) == PT_LOAD) {
offset_ = cast(TargetAddress) (base - read(ph.p_vaddr));
break;
}
}
} else {
offset_ = cast(TargetAddress) 0;
}
entry_ = cast(TargetAddress) (read(eh.e_entry) + offset_);
debug (elf)
writefln("%d sections", read(eh.e_shnum));
sections_.length = read(eh.e_shnum);
foreach (i, ref sh; sections_) {
if (pread(fd, &sh, eh.e_shentsize,
eh.e_shoff + i * eh.e_shentsize) != eh.e_shentsize)
throw new Exception("Can't read section headers");
}
if (read(eh.e_shstrndx) != SHN_UNDEF) {
shStrings_ = readSection(read(eh.e_shstrndx));
}
debug (elf)
foreach (i, ref sh; sections_) {
if (read(sh.sh_type) == SHT_NULL)
continue;
writefln("Section %d type %d, name %s, off %d, size %d",
i, read(sh.sh_type),
std.string.toString(&shStrings_[sh.sh_name]),
read(sh.sh_offset), read(sh.sh_size));
}
foreach (ref sh; sections_) {
if (read(sh.sh_type) == SHT_NULL)
continue;
if (.toString(&shStrings_[sh.sh_name]) != ".plt")
continue;
pltStart_ = cast(TargetAddress) (read(sh.sh_addr) + offset_);
pltEnd_ = cast(TargetAddress) (pltStart_ + read(sh.sh_size));
}
Symbol[] symtab;
Symbol[] dynsym;
foreach (i, ref sh; sections_) {
if (read(sh.sh_type) == SHT_SYMTAB)
symtab = readSymbols(i);
else if (read(sh.sh_type) == SHT_DYNSYM)
dynsym = readSymbols(i);
}
this(symtab, dynsym);
}
this(Symbol[] symtab, Symbol[] dynsym)
{
symtab_ = symtab;
dynsym_ = dynsym;
}
~this()
{
if (fd_ >= 0) {
.close(fd_);
fd_ = -1;
}
}
bool isExecutable()
{
return type_ == ET_EXEC;
}
MachineState getState(Target target)
{
switch (machine_) {
case EM_386:
return new X86State(target);
case EM_X86_64:
return new X86_64State(target);
case EM_ARM:
return new ArmState(target);
default:
throw new TargetException("Unsupported target machine type");
}
}
Symbol* lookupSymbol(TargetAddress addr)
{
Symbol *sp;
sp = _lookupSymbol(addr, symtab_);
if (sp)
return sp;
sp = _lookupSymbol(addr, dynsym_);
if (sp)
return sp;
return null;
}
Symbol* lookupSymbol(string name)
{
Symbol *sp;
sp = _lookupSymbol(name, symtab_);
if (sp)
return sp;
sp = _lookupSymbol(name, dynsym_);
if (sp)
return sp;
return null;
}
TargetAddress entry()
{
return entry_;
}
TargetAddress offset()
{
return offset_;
}
uint tlsindex()
{
return tlsindex_;
}
void tlsindex(uint i)
{
tlsindex_ = i;
}
int lookupSection(string name)
{
foreach (i, ref sh; sections_) {
if (std.string.toString(&shStrings_[sh.sh_name]) == name)
return i;
}
return -1;
}
bool hasSection(string name)
{
return (lookupSection(name) >= 0);
}
char[] readSection(string name)
{
int i = lookupSection(name);
if (i < 0)
throw new Exception("no such section");
return readSection(i);
}
string interpreter()
{
foreach (ph; ph_)
if (ph.p_type == PT_INTERP) {
string s;
s.length = read(ph.p_filesz);
if (s.length == 0)
return s;
if (pread(fd_, &s[0], s.length, read(ph.p_offset))
!= s.length)
throw new Exception("Can't read from file");
return s;
}
return null;
}
void enumerateProgramHeaders(void delegate(uint, TargetAddress, TargetAddress) dg)
{
foreach (ph; ph_)
dg(read(ph.p_type),
cast(TargetAddress) (read(ph.p_vaddr) + offset_),
cast(TargetAddress) (read(ph.p_vaddr) + read(ph.p_memsz)
+ offset_));
}
void enumerateNotes(void delegate(uint, string, ubyte*) dg)
{
foreach (ph; ph_) {
if (read(ph.p_type) == PT_NOTE) {
ubyte[] notes;
notes.length = read(ph.p_filesz);
if (pread(fd_, ¬es[0], notes.length, read(ph.p_offset))
!= notes.length)
throw new Exception("Can't read from file");
ulong roundup(ulong n, size_t sz = Size.sizeof)
{
return ((n + sz - 1) & ~(sz - 1));
}
size_t i = 0;
while (i < notes.length) {
Note* n = cast(Note*) ¬es[i];
char* name = cast(char*) (n + 1);
ubyte* desc = cast(ubyte*)
(name + roundup(read(n.n_namesz)));
dg(n.n_type, .toString(name), desc);
i += Note.sizeof;
i += roundup(read(n.n_namesz))
+ roundup(read(n.n_descsz));
}
}
}
}
void enumerateDynamic(Target target, void delegate(uint, TargetAddress) dg)
{
TargetAddress s, e;
bool found = false;
void getDynamic(uint tag, TargetAddress start, TargetAddress end)
{
if (tag == PT_DYNAMIC) {
s = start;
e = end;
found = true;
}
}
enumerateProgramHeaders(&getDynamic);
if (!found)
return;
debug (elf)
writefln("Found dynamic at %#x .. %#x", s, e);
ubyte[] dyn;
dyn = target.readMemory(s, cast(TargetSize) (e - s));
if (dyn.length == 0)
return;
ubyte* p = &dyn[0], end = p + dyn.length;
while (p < end) {
Dyn* d = cast(Dyn*) p;
dg(read(d.d_tag), cast(TargetAddress) read(d.d_val));
p += Dyn.sizeof;
}
}
ubyte[] readProgram(TargetAddress addr, TargetSize len)
{
ubyte[] res;
res.length = len;
if (!len)
return res;
memset(&res[0], 0, len);
auto sa = addr;
auto ea = addr + len;
foreach (ph; ph_) {
if (read(ph.p_type) == PT_LOAD) {
auto psa = read(ph.p_vaddr) + offset_;
auto pea = psa + read(ph.p_filesz);
if (ea > psa && sa < pea) {
/*
* Some bytes are in this section.
*/
auto s = psa;
if (sa > s) s = sa;
auto e = pea;
if (ea < e) e = ea;
if (pread(fd_, &res[s - sa], e - s,
read(ph.p_offset) + s - psa) != e - s)
throw new Exception("Can't read from file");
}
}
}
return res;
}
void digestDynamic(Target target)
{
void dg(uint tag, TargetAddress val)
{
if (tag == DT_DEBUG)
r_debug_ = val + offset_;
}
enumerateDynamic(target, &dg);
debug (elf)
if (r_debug_)
writefln("r_debug @ %#x", r_debug_);
}
TargetAddress findSharedLibraryBreakpoint(Target target)
{
if (!r_debug_)
return cast(TargetAddress) 0;
ubyte[] t = target.readMemory(r_debug_,
cast(TargetSize) r_debug.sizeof);
r_debug* p = cast(r_debug*) &t[0];
return cast(TargetAddress) read(p.r_brk);
}
uint sharedLibraryState(Target target)
{
if (!r_debug_)
return RT_CONSISTENT;
ubyte[] t = target.readMemory(r_debug_,
cast(TargetSize) r_debug.sizeof);
r_debug* p = cast(r_debug*) &t[0];
return read(p.r_state);
}
void enumerateLinkMap(Target target,
void delegate(string, TargetAddress, TargetAddress) dg)
{
if (!r_debug_)
return;
string readString(Target target, TargetAddress addr)
{
string s;
char c;
do {
ubyte[] t = target.readMemory(addr++, TS1);
c = cast(char) t[0];
if (c)
s ~= c;
} while (c);
return s;
}
ubyte[] t = target.readMemory(r_debug_,
cast(TargetSize) r_debug.sizeof);
r_debug* p = cast(r_debug*) &t[0];
auto lp = read(p.r_map);
while (lp) {
t = target.readMemory(cast(TargetAddress) lp,
cast(TargetSize) link_map.sizeof);
link_map *lm = cast(link_map*) &t[0];
dg(readString(target, cast(TargetAddress) read(lm.l_name)),
cast(TargetAddress) lp,
cast(TargetAddress) read(lm.l_addr));
lp = read(lm.l_next);
}
}
void enumerateNeededLibraries(Target target, void delegate(string) dg)
{
TargetAddress strtabAddr;
TargetSize strtabSize;
string strtab;
void findStrtab(uint tag, TargetAddress val)
{
if (tag == DT_STRTAB)
strtabAddr = val + offset_;
else if (tag == DT_STRSZ)
strtabSize = cast(TargetSize) val;
}
void findNeeded(uint tag, TargetAddress val)
{
if (tag == DT_NEEDED && val < strtab.length)
dg(.toString(&strtab[val]));
}
enumerateDynamic(target, &findStrtab);
strtab.length = strtabSize;
if (strtab.length > 0)
strtab = cast(string) target.readMemory(strtabAddr, strtabSize);
enumerateDynamic(target, &findNeeded);
}
bool inPLT(TargetAddress pc)
{
return pc >= pltStart_ && pc < pltEnd_;
}
private:
char[] readSection(int si)
{
Shdr *sh = §ions_[si];
char[] s;
s.length = read(sh.sh_size);
if (s.length > 0)
if (pread(fd_, &s[0], s.length, read(sh.sh_offset)) != s.length)
throw new Exception("Can't read section");
return s;
}
Symbol[] readSymbols(int si)
{
Shdr* sh = §ions_[si];
if (read(sh.sh_entsize) != Sym.sizeof)
throw new Exception("Symbol section has unsupported entry size");
Sym[] syms;
syms.length = read(sh.sh_size) / read(sh.sh_entsize);
if (pread(fd_, &syms[0], sh.sh_size, sh.sh_offset) != sh.sh_size)
throw new Exception("Can't read section");
char[] strings = readSection(sh.sh_link);
Symbol[] symbols;
symbols.length = syms.length;
foreach (i, ref sym; syms) {
Symbol* s = &symbols[i];
s.name = std.string.toString(&strings[read(sym.st_name)]);
s.value = cast(TargetAddress) (read(sym.st_value) + offset_);
s.size = cast(TargetSize) sym.st_size;
s.type = sym.st_type;
s.binding = sym.st_bind;
s.section = sym.st_shndx;
}
return symbols;
}
Symbol* _lookupSymbol(uintptr_t addr, Symbol[] syms)
{
Symbol* best = null;
foreach (ref s; syms) {
if (s.type != STT_FUNC && s.type != STT_OBJECT)
continue;
if (addr >= s.value && addr < s.value + s.size)
return &s;
if (addr >= s.value
&& (!best || addr - s.value < addr - best.value))
best = &s;
}
return best;
}
Symbol* _lookupSymbol(string name, Symbol[] syms)
{
foreach (ref s; syms) {
if (s.name == name)
return &s;
}
return null;
}
int fd_ = -1;
int type_;
uint machine_;
TargetAddress entry_;
TargetAddress offset_;
uint tlsindex_;
TargetAddress r_debug_;
TargetAddress pltStart_;
TargetAddress pltEnd_;
Phdr[] ph_;
Shdr[] sections_;
char[] shStrings_;
Symbol[] symtab_;
Symbol[] dynsym_;
}
class Elffile32: Elffile
{
import objfile.elf32;
mixin ElfFileBase;
bool is64()
{
return false;
}
}
class Elffile64: Elffile
{
import objfile.elf64;
mixin ElfFileBase;
bool is64()
{
return true;
}
}
| D |
PLONG PLAT ED95 KD LOMAGAGE HIMAGAGE SLAT SLONG RESULTNO DP DM WT ROCKTYPE
238 77 6 77 15 60 64.5999985 -127.900002 1745 11.6000004 11.8000002 0.472669284 sediments, redbeds
4.5 80.5 11.8999996 29 8 9 35.7000008 -106.5 304 14.1999998 14.1999998 0.865007985 extrusives, basalts, rhyolites
219.300003 68.9000015 2.79999995 90.9000015 15 60 64.5 -128.5 343 5.5999999 5.5999999 0.502475445 sediments, redbeds
256.399994 77.0999985 13 0 2 56 46 -112 3368 21.7000008 21.7000008 0.417527853 extrusives, intrusives
164 83 5.80000019 32.2000008 15 65 58.5 -119.300003 7737 10 10 0.473985146 sediments, dolomite
240 82 34 55 2 65 45 -110 2808 49 58 0.10180238 intrusives, porphyry
83.5 79.8000031 17.2000008 8.80000019 15 17 30.7000008 -84.9000015 6882 11.8000002 20.2000008 0.509092675 sediments
275.5 83.5999985 3.4000001 0 0 20 46.7999992 -90.6999969 5904 3.4000001 3.4000001 0.687319131 sediments
45.2999992 81.0999985 12.8999996 51.9000015 14 17 45.2999992 -110.800003 5975 13.5 18.6000004 0.678769587 sediments
| D |
/home/serlog/Escritorio/Raúl/Semestre-2020-II/Paralelos/parallel_computing/lab1/target/rls/debug/deps/cfg_if-ab1bd98be96b57b3.rmeta: /home/serlog/.cargo/registry/src/github.com-1ecc6299db9ec823/cfg-if-0.1.10/src/lib.rs
/home/serlog/Escritorio/Raúl/Semestre-2020-II/Paralelos/parallel_computing/lab1/target/rls/debug/deps/libcfg_if-ab1bd98be96b57b3.rlib: /home/serlog/.cargo/registry/src/github.com-1ecc6299db9ec823/cfg-if-0.1.10/src/lib.rs
/home/serlog/Escritorio/Raúl/Semestre-2020-II/Paralelos/parallel_computing/lab1/target/rls/debug/deps/cfg_if-ab1bd98be96b57b3.d: /home/serlog/.cargo/registry/src/github.com-1ecc6299db9ec823/cfg-if-0.1.10/src/lib.rs
/home/serlog/.cargo/registry/src/github.com-1ecc6299db9ec823/cfg-if-0.1.10/src/lib.rs:
| D |
/**
* D header file for OSX.
*
* Copyright: Copyright Sean Kelly 2008 - 2009.
* License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.
* Authors: Sean Kelly
*/
/* Copyright Sean Kelly 2008 - 2009.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
module core.sys.osx.mach.semaphore;
version (OSX):
public import core.sys.osx.mach.kern_return;
public import core.sys.osx.mach.port;
extern (C):
alias mach_port_t task_t;
alias mach_port_t thread_t;
alias mach_port_t semaphore_t;
alias int sync_policy_t;
alias int clock_res_t;
struct mach_timespec_t
{
uint tv_sec;
clock_res_t tv_nsec;
}
enum
{
SYNC_POLICY_FIFO = 0x0,
SYNC_POLICY_FIXED_PRIORITY = 0x1,
SYNC_POLICY_REVERSED = 0x2,
SYNC_POLICY_ORDER_MASK = 0x3,
SYNC_POLICY_LIFO = (SYNC_POLICY_FIFO | SYNC_POLICY_REVERSED),
SYNC_POLICY_MAX = 0x7,
}
task_t mach_task_self();
kern_return_t semaphore_create(task_t, semaphore_t*, int, int);
kern_return_t semaphore_destroy(task_t, semaphore_t);
kern_return_t semaphore_signal(semaphore_t);
kern_return_t semaphore_signal_all(semaphore_t);
kern_return_t semaphore_signal_thread(semaphore_t, thread_t);
kern_return_t semaphore_wait(semaphore_t);
kern_return_t semaphore_wait_signal(semaphore_t, semaphore_t);
kern_return_t semaphore_timedwait(semaphore_t, mach_timespec_t);
kern_return_t semaphore_timedwait_signal(semaphore_t, semaphore_t, mach_timespec_t);
| D |
instance MENU_STATUS(C_MENU_DEF)
{
// Spielername und Gilde
items[0] = "MENU_ITEM_PLAYERNAME_TITLE";
items[2] = "MENU_ITEM_PLAYERNAME";
items[0] = "MENU_ITEM_PLAYERGUILD_TITLE";
items[1] = "MENU_ITEM_PLAYERGUILD";
//
// Level und Erfahrung
//
items[2] = "MENU_ITEM_LEVEL_TITLE";
items[3] = "MENU_ITEM_EXP_TITLE";
items[4] = "MENU_ITEM_LEVEL_NEXT_TITLE";
items[5] = "MENU_ITEM_LEARN_TITLE";
items[6] = "MENU_ITEM_LEVEL";
items[7] = "MENU_ITEM_EXP";
items[8] = "MENU_ITEM_LEVEL_NEXT";
items[9] = "MENU_ITEM_LEARN";
//
// Attribute
//
items[10] = "MENU_ITEM_ATTRIBUTE_HEADING";
items[11] = "MENU_ITEM_ATTRIBUTE_1_TITLE";
items[12] = "MENU_ITEM_ATTRIBUTE_2_TITLE";
items[13] = "MENU_ITEM_ATTRIBUTE_3_TITLE";
items[14] = "MENU_ITEM_ATTRIBUTE_4_TITLE";
items[15] = "MENU_ITEM_ATTRIBUTE_1";
items[16] = "MENU_ITEM_ATTRIBUTE_2";
items[17] = "MENU_ITEM_ATTRIBUTE_3";
items[18] = "MENU_ITEM_ATTRIBUTE_4";
// Schutz
items[19] = "MENU_ITEM_ARMOR_HEADING";
items[20] = "MENU_ITEM_ARMOR_1_TITLE";
items[21] = "MENU_ITEM_ARMOR_2_TITLE";
items[22] = "MENU_ITEM_ARMOR_3_TITLE";
items[23] = "MENU_ITEM_ARMOR_4_TITLE";
items[24] = "MENU_ITEM_ARMOR_1";
items[25] = "MENU_ITEM_ARMOR_2";
items[26] = "MENU_ITEM_ARMOR_3";
items[27] = "MENU_ITEM_ARMOR_4";
//
// Waffentalente
//
// Ueberschriften
items[28] = "MENU_ITEM_TALENTS_WEAPON_HEADING";
items[29] = "MENU_ITEM_TALENTS_THIEF_HEADING";
items[30] = "MENU_ITEM_TALENTS_SPECIAL_HEADING";
// Talent-Liste (Weapons)
items[31] = "MENU_ITEM_TALENT_1_TITLE";
items[32] = "MENU_ITEM_TALENT_1_SKILL";
items[33] = "MENU_ITEM_TALENT_1";
items[34] = "MENU_ITEM_TALENT_2_TITLE";
items[35] = "MENU_ITEM_TALENT_2_SKILL";
items[36] = "MENU_ITEM_TALENT_2";
items[37] = "MENU_ITEM_TALENT_3_TITLE";
items[38] = "MENU_ITEM_TALENT_3_SKILL";
items[39] = "MENU_ITEM_TALENT_3";
items[40] = "MENU_ITEM_TALENT_4_TITLE";
items[41] = "MENU_ITEM_TALENT_4_SKILL";
items[42] = "MENU_ITEM_TALENT_4";
// Talent-Liste Fortsetzung (Thief)
items[43] = "MENU_ITEM_TALENT_5_TITLE";
items[44] = "MENU_ITEM_TALENT_5_SKILL";
items[45] = "MENU_ITEM_TALENT_5";
items[46] = "MENU_ITEM_TALENT_6_TITLE";
items[47] = "MENU_ITEM_TALENT_6_SKILL";
items[48] = "MENU_ITEM_TALENT_6";
// Talent-Liste Fortsetzung (Mage)
items[49] = "MENU_ITEM_TALENT_7_TITLE";
items[50] = "MENU_ITEM_TALENT_7_SKILL";
// Talent-Liste Fortsetzung (Special)
items[51] = "MENU_ITEM_TALENT_8_TITLE";
items[52] = "MENU_ITEM_TALENT_8_SKILL";
items[53] = "MENU_ITEM_TALENT_9_TITLE";
items[54] = "MENU_ITEM_TALENT_9_SKILL";
items[55] = "MENU_ITEM_TALENT_10_TITLE";
items[56] = "MENU_ITEM_TALENT_10_SKILL";
items[57] = "MENU_ITEM_TALENT_11_TITLE";
items[58] = "MENU_ITEM_TALENT_11_SKILL";
items[59] = "MENU_ITEM_TALENT_12_TITLE";
items[60] = "MENU_ITEM_TALENT_12_SKILL";
items[61] = "MENU_ITEM_TALENT_13_TITLE";
items[62] = "MENU_ITEM_TALENT_13_SKILL";
//
// Eigenschaften
//
dimx = 9592;
//dimy = 8192;
//dimx = 15000;
//dimy = 10000;
flags = flags | MENU_OVERTOP|MENU_NOANI;
flags = flags | MENU_SHOW_INFO;
backPic = STAT_BACK_PIC;
};
const int STAT_DY = 300;
//
// Spiel- und Spielerdaten
//
const int STAT_PLY_Y = 1000; // 1000;
const int STAT_ATR_Y = 2800; // 2800;
const int STAT_ARM_Y = 5200; // 5200;
const int STAT_TAL_Y = 1000;
const int STAT_TAL_FIGHT_Y = 1500; // 1000;
const int STAT_TAL_EVASION_Y = 3000; // 1000;
const int STAT_TAL_REGENERATION_Y = 3600; // 1000;
const int STAT_TAL_THEFT_Y = 4500; // 1000;
const int STAT_TAL_SPECIAL_Y = 5300; // 1000;
const int STAT_A_X1 = 800; // 500;
const int STAT_A_X2 = 1300; //1300;
const int STAT_A_X3 = 2650; //2300;
const int STAT_B_X1 = 3500; //3500;
const int STAT_B_X2 = 5700; //5700;
const int STAT_B_X3 = 6800; //7200;
instance MENU_ITEM_PLAYERGUILD_TITLE(C_MENU_ITEM_DEF)
{
text[0] = "Gildia:";
posx = STAT_A_X1; posy = STAT_PLY_Y+STAT_DY*0;
fontName = STAT_FONT_DEFAULT;
flags = flags & ~IT_SELECTABLE;
};
instance MENU_ITEM_PLAYERGUILD(C_MENU_ITEM_DEF)
{
posx = 1750; posy = STAT_PLY_Y+STAT_DY*0;
dimx = STAT_B_X1 - STAT_A_X2;
dimy = STAT_DY;
fontName = STAT_FONT_DEFAULT;
flags = flags & ~IT_SELECTABLE;
};
INSTANCE MENU_ITEM_PLAYERNAME_TITLE(C_MENU_ITEM_DEF)
{
text[0] = "Klasa:";
posx = STAT_A_X1; posy = STAT_PLY_Y+STAT_DY*1;
fontName = STAT_FONT_DEFAULT;
flags = flags & ~IT_SELECTABLE;
};
INSTANCE MENU_ITEM_PLAYERNAME(C_MENU_ITEM_DEF)
{
posx = STAT_A_X2; posy = STAT_PLY_Y+STAT_DY*1;
dimx = STAT_B_X1 - STAT_A_X2;
dimy = STAT_DY;
fontName = STAT_FONT_DEFAULT;
flags = flags & ~IT_SELECTABLE;
};
//
// Sonderattribute-Werte
//
// Texte
INSTANCE MENU_ITEM_LEVEL_TITLE(C_MENU_ITEM_DEF)
{
posx = STAT_A_X1; posy = STAT_PLY_Y + 1*STAT_DY;
text[0] = "Poziom";
fontName= STAT_FONT_DEFAULT;
flags = flags & ~IT_SELECTABLE;
};
INSTANCE MENU_ITEM_EXP_TITLE(C_MENU_ITEM_DEF)
{
posx = STAT_A_X1; posy = STAT_PLY_Y + 2*STAT_DY;
text[0] = "Doświadczenie";
fontName = STAT_FONT_DEFAULT;
flags = flags & ~IT_SELECTABLE;
};
INSTANCE MENU_ITEM_LEVEL_NEXT_TITLE(C_MENU_ITEM_DEF)
{
posx = STAT_A_X1; posy = STAT_PLY_Y + 3*STAT_DY;
text[0] = "Nast. poziom";
fontName = STAT_FONT_DEFAULT;
flags = flags & ~IT_SELECTABLE;
};
INSTANCE MENU_ITEM_LEARN_TITLE(C_MENU_ITEM_DEF)
{
posx = STAT_A_X1; posy = STAT_PLY_Y + 4*STAT_DY;
text[0] = "Punkty nauki";
fontName = STAT_FONT_DEFAULT;
flags = flags & ~IT_SELECTABLE;
};
// Werte
INSTANCE MENU_ITEM_LEVEL(C_MENU_ITEM_DEF)
{
posx = STAT_A_X3; posy = STAT_PLY_Y + 1*STAT_DY;
fontName= STAT_FONT_DEFAULT;
flags = flags & ~IT_SELECTABLE;
};
INSTANCE MENU_ITEM_EXP(C_MENU_ITEM_DEF)
{
posx = STAT_A_X3; posy = STAT_PLY_Y + 2*STAT_DY;
fontName = STAT_FONT_DEFAULT;
flags = flags & ~IT_SELECTABLE;
};
INSTANCE MENU_ITEM_LEVEL_NEXT(C_MENU_ITEM_DEF)
{
posx = STAT_A_X3; posy = STAT_PLY_Y + 3*STAT_DY;
fontName = STAT_FONT_DEFAULT;
flags = flags & ~IT_SELECTABLE;
};
INSTANCE MENU_ITEM_LEARN(C_MENU_ITEM_DEF)
{
posx = STAT_A_X3; posy = STAT_PLY_Y + 4*STAT_DY;
fontName = STAT_FONT_DEFAULT;
flags = flags & ~IT_SELECTABLE;
};
//
// Attribute
//
// Titel
INSTANCE MENU_ITEM_ATTRIBUTE_HEADING(C_MENU_ITEM_DEF)
{
posx = STAT_A_X1; posy = STAT_ATR_Y + 0*STAT_DY;
text[0] = "ATRYBUTY";
fontName = STAT_FONT_TITLE;
flags = flags & ~IT_SELECTABLE;
};
// Texte
INSTANCE MENU_ITEM_ATTRIBUTE_1_TITLE(C_MENU_ITEM_DEF)
{
posx = STAT_A_X1; posy = STAT_ATR_Y + 1*STAT_DY;
text[0] = "Siła";
fontName = STAT_FONT_DEFAULT;
flags = flags & ~IT_SELECTABLE;
};
INSTANCE MENU_ITEM_ATTRIBUTE_2_TITLE(C_MENU_ITEM_DEF)
{
posx = STAT_A_X1; posy = STAT_ATR_Y + 2*STAT_DY;
text[0] = "Zręczność";
fontName = STAT_FONT_DEFAULT;
flags = flags & ~IT_SELECTABLE;
};
INSTANCE MENU_ITEM_ATTRIBUTE_3_TITLE(C_MENU_ITEM_DEF)
{
posx = STAT_A_X1; posy = STAT_ATR_Y + 3*STAT_DY;
text[0] = "Mana";
fontName = STAT_FONT_DEFAULT;
flags = flags & ~IT_SELECTABLE;
};
INSTANCE MENU_ITEM_ATTRIBUTE_4_TITLE(C_MENU_ITEM_DEF)
{
posx = STAT_A_X1; posy = STAT_ATR_Y + 4*STAT_DY;
text[0] = "PŻ";
fontName = STAT_FONT_DEFAULT;
flags = flags & ~IT_SELECTABLE;
};
// Werte
INSTANCE MENU_ITEM_ATTRIBUTE_1(C_MENU_ITEM_DEF)
{
posx = STAT_A_X3; posy = STAT_ATR_Y + 1*STAT_DY;
fontName = STAT_FONT_DEFAULT;
flags = flags & ~IT_SELECTABLE;
};
INSTANCE MENU_ITEM_ATTRIBUTE_2(C_MENU_ITEM_DEF)
{
posx = STAT_A_X3; posy = STAT_ATR_Y + 2*STAT_DY;
fontName = STAT_FONT_DEFAULT;
flags = flags & ~IT_SELECTABLE;
};
INSTANCE MENU_ITEM_ATTRIBUTE_3(C_MENU_ITEM_DEF)
{
posx = STAT_A_X3; posy = STAT_ATR_Y + 3*STAT_DY;
fontName = STAT_FONT_DEFAULT;
flags = flags & ~IT_SELECTABLE;
};
INSTANCE MENU_ITEM_ATTRIBUTE_4(C_MENU_ITEM_DEF)
{
posx = STAT_A_X3; posy = STAT_ATR_Y + 4*STAT_DY;
fontName = STAT_FONT_DEFAULT;
flags = flags & ~IT_SELECTABLE;
};
//
// Schutz
//
INSTANCE MENU_ITEM_ARMOR_HEADING(C_MENU_ITEM_DEF)
{
text[0] = "OCHRONA";
fontName = STAT_FONT_TITLE;
posx = STAT_A_X1; posy = STAT_ARM_Y + 0*STAT_DY;
flags = flags & ~IT_SELECTABLE;
};
INSTANCE MENU_ITEM_ARMOR_1_TITLE(C_MENU_ITEM_DEF)
{
text[0] = "przed bronią";
posx = STAT_A_X1; posy = STAT_ARM_Y + 1*STAT_DY; fontName = STAT_FONT_DEFAULT;
flags = flags & ~IT_SELECTABLE;
};
INSTANCE MENU_ITEM_ARMOR_2_TITLE(C_MENU_ITEM_DEF)
{
text[0] = "przed pociskami";
posx = STAT_A_X1; posy = STAT_ARM_Y + 2*STAT_DY; fontName = STAT_FONT_DEFAULT;
flags = flags & ~IT_SELECTABLE;
};
INSTANCE MENU_ITEM_ARMOR_3_TITLE(C_MENU_ITEM_DEF)
{
text[0] = "przed ogniem";
posx = STAT_A_X1; posy = STAT_ARM_Y + 3*STAT_DY; fontName = STAT_FONT_DEFAULT;
flags = flags & ~IT_SELECTABLE;
};
INSTANCE MENU_ITEM_ARMOR_4_TITLE(C_MENU_ITEM_DEF)
{
text[0] = "przed magią";
posx = STAT_A_X1; posy = STAT_ARM_Y + 4*STAT_DY; fontName = STAT_FONT_DEFAULT;
flags = flags & ~IT_SELECTABLE;
};
INSTANCE MENU_ITEM_ARMOR_1(C_MENU_ITEM_DEF)
{
posx = STAT_A_X3; posy = STAT_ARM_Y + 1*STAT_DY; fontName = STAT_FONT_DEFAULT;
flags = flags & ~IT_SELECTABLE;
};
INSTANCE MENU_ITEM_ARMOR_2(C_MENU_ITEM_DEF)
{
posx = STAT_A_X3; posy = STAT_ARM_Y + 2*STAT_DY; fontName = STAT_FONT_DEFAULT;
flags = flags & ~IT_SELECTABLE;
};
INSTANCE MENU_ITEM_ARMOR_3(C_MENU_ITEM_DEF)
{
posx = STAT_A_X3; posy = STAT_ARM_Y + 3*STAT_DY; fontName = STAT_FONT_DEFAULT;
flags = flags & ~IT_SELECTABLE;
};
INSTANCE MENU_ITEM_ARMOR_4(C_MENU_ITEM_DEF)
{
posx = STAT_A_X3; posy = STAT_ARM_Y + 4*STAT_DY; fontName = STAT_FONT_DEFAULT;
flags = flags & ~IT_SELECTABLE;
};
//
// Talente
//
// Headings
INSTANCE MENU_ITEM_TALENTS_WEAPON_HEADING(C_MENU_ITEM_DEF)
{
text[0] = "WALKA / TRAFIENIE KRYTYCZNE";
posx = STAT_B_X1; posy = STAT_TAL_Y + STAT_DY*0;
fontName = STAT_FONT_TITLE;
flags = flags & ~IT_SELECTABLE;
};
INSTANCE MENU_ITEM_TALENTS_THIEF_HEADING(C_MENU_ITEM_DEF)
{
text[0] = "KRADZIEŻ / SZANSE PORAŻKI";
posx = STAT_B_X1; posy = STAT_TAL_Y + STAT_DY*6;
fontName = STAT_FONT_TITLE;
flags = flags & ~IT_SELECTABLE;
};
INSTANCE MENU_ITEM_TALENTS_SPECIAL_HEADING(C_MENU_ITEM_DEF)
{
text[0] = "SPECJALNE";
posx = STAT_B_X1; posy = STAT_TAL_Y + STAT_DY*14;
fontName = STAT_FONT_TITLE;
flags = flags & ~IT_SELECTABLE;
};
//
// Liste der Talente
//
// Waffentalente...
// Talent 1
INSTANCE MENU_ITEM_TALENT_1_TITLE(C_MENU_ITEM_DEF) { posx = STAT_B_X1;posy = STAT_TAL_Y + 1*STAT_DY; fontName = STAT_FONT_DEFAULT;flags=flags & ~IT_SELECTABLE; };
INSTANCE MENU_ITEM_TALENT_1_SKILL(C_MENU_ITEM_DEF) { posx = STAT_B_X2;posy = STAT_TAL_Y + 1*STAT_DY; fontName = STAT_FONT_DEFAULT;flags=flags & ~IT_SELECTABLE; };
INSTANCE MENU_ITEM_TALENT_1(C_MENU_ITEM_DEF) { posx = STAT_B_X3;posy = STAT_TAL_Y + 1*STAT_DY; fontName = STAT_FONT_DEFAULT;flags=flags & ~IT_SELECTABLE; };
// Talent 2
INSTANCE MENU_ITEM_TALENT_2_TITLE(C_MENU_ITEM_DEF) { posx = STAT_B_X1;posy = STAT_TAL_Y + 2*STAT_DY; fontName = STAT_FONT_DEFAULT;flags=flags & ~IT_SELECTABLE; };
instance MENU_ITEM_TALENT_2_SKILL(C_MENU_ITEM_DEF) { posx = STAT_B_X2;posy = STAT_TAL_Y + 2*STAT_DY; fontName = STAT_FONT_DEFAULT;flags=flags & ~IT_SELECTABLE; };
INSTANCE MENU_ITEM_TALENT_2(C_MENU_ITEM_DEF) { posx = STAT_B_X3;posy = STAT_TAL_Y + 2*STAT_DY; fontName = STAT_FONT_DEFAULT;flags=flags & ~IT_SELECTABLE; };
// Talent 3
INSTANCE MENU_ITEM_TALENT_3_TITLE(C_MENU_ITEM_DEF) { posx = STAT_B_X1;posy = STAT_TAL_Y + 3*STAT_DY; fontName = STAT_FONT_DEFAULT;flags=flags & ~IT_SELECTABLE; };
instance MENU_ITEM_TALENT_3_SKILL(C_MENU_ITEM_DEF) { posx = STAT_B_X2;posy = STAT_TAL_Y + 3*STAT_DY; fontName = STAT_FONT_DEFAULT;flags=flags & ~IT_SELECTABLE; };
INSTANCE MENU_ITEM_TALENT_3(C_MENU_ITEM_DEF) { posx = STAT_B_X3;posy = STAT_TAL_Y + 3*STAT_DY; fontName = STAT_FONT_DEFAULT;flags=flags & ~IT_SELECTABLE; };
// Talent 4
INSTANCE MENU_ITEM_TALENT_4_TITLE(C_MENU_ITEM_DEF) { posx = STAT_B_X1;posy = STAT_TAL_Y + 4*STAT_DY; fontName = STAT_FONT_DEFAULT;flags=flags & ~IT_SELECTABLE; };
instance MENU_ITEM_TALENT_4_SKILL(C_MENU_ITEM_DEF) { posx = STAT_B_X2;posy = STAT_TAL_Y + 4*STAT_DY; fontName = STAT_FONT_DEFAULT;flags=flags & ~IT_SELECTABLE; };
INSTANCE MENU_ITEM_TALENT_4(C_MENU_ITEM_DEF) { posx = STAT_B_X3;posy = STAT_TAL_Y + 4*STAT_DY; fontName = STAT_FONT_DEFAULT;flags=flags & ~IT_SELECTABLE; };
// Diebestalente
// Talent 5
INSTANCE MENU_ITEM_TALENT_5_TITLE(C_MENU_ITEM_DEF) { posx = STAT_B_X1;posy = STAT_TAL_Y + 7*STAT_DY; fontName = STAT_FONT_DEFAULT;flags=flags & ~IT_SELECTABLE; };
instance MENU_ITEM_TALENT_5_SKILL(C_MENU_ITEM_DEF) { posx = STAT_B_X2;posy = STAT_TAL_Y + 7*STAT_DY; fontName = STAT_FONT_DEFAULT;flags=flags & ~IT_SELECTABLE; };
INSTANCE MENU_ITEM_TALENT_5(C_MENU_ITEM_DEF) { posx = STAT_B_X3;posy = STAT_TAL_Y + 7*STAT_DY; fontName = STAT_FONT_DEFAULT;flags=flags & ~IT_SELECTABLE; };
// Talent 6
INSTANCE MENU_ITEM_TALENT_6_TITLE(C_MENU_ITEM_DEF) { posx = STAT_B_X1;posy = STAT_TAL_Y + 8*STAT_DY; fontName = STAT_FONT_DEFAULT;flags=flags & ~IT_SELECTABLE; };
instance MENU_ITEM_TALENT_6_SKILL(C_MENU_ITEM_DEF) { posx = STAT_B_X2;posy = STAT_TAL_Y + 8*STAT_DY; fontName = STAT_FONT_DEFAULT;flags=flags & ~IT_SELECTABLE; };
INSTANCE MENU_ITEM_TALENT_6(C_MENU_ITEM_DEF) { posx = STAT_B_X3;posy = STAT_TAL_Y + 8*STAT_DY; fontName = STAT_FONT_DEFAULT;flags=flags & ~IT_SELECTABLE; };
// Magie
// Talent 7
INSTANCE MENU_ITEM_TALENT_7_TITLE(C_MENU_ITEM_DEF) { posx = STAT_B_X1;posy = STAT_TAL_Y + 11*STAT_DY; fontName = STAT_FONT_DEFAULT;flags=flags & ~IT_SELECTABLE; };
instance MENU_ITEM_TALENT_7_SKILL(C_MENU_ITEM_DEF) { posx = STAT_B_X2;posy = STAT_TAL_Y + 11*STAT_DY; fontName = STAT_FONT_DEFAULT;flags=flags & ~IT_SELECTABLE; };
// Spezial
// Talent 8
INSTANCE MENU_ITEM_TALENT_8_TITLE(C_MENU_ITEM_DEF) { posx = STAT_B_X1;posy = STAT_TAL_Y + 15*STAT_DY; fontName = STAT_FONT_DEFAULT;flags=flags & ~IT_SELECTABLE; };
instance MENU_ITEM_TALENT_8_SKILL(C_MENU_ITEM_DEF) { posx = STAT_B_X2;posy = STAT_TAL_Y + 15*STAT_DY; fontName = STAT_FONT_DEFAULT;flags=flags & ~IT_SELECTABLE; };
// Talent 9
INSTANCE MENU_ITEM_TALENT_9_TITLE(C_MENU_ITEM_DEF) { posx = STAT_B_X1;posy = STAT_TAL_Y + 16*STAT_DY; fontName = STAT_FONT_DEFAULT;flags=flags & ~IT_SELECTABLE; };
instance MENU_ITEM_TALENT_9_SKILL(C_MENU_ITEM_DEF) { posx = STAT_B_X2;posy = STAT_TAL_Y + 16*STAT_DY; fontName = STAT_FONT_DEFAULT;flags=flags & ~IT_SELECTABLE; };
// Talent 10
INSTANCE MENU_ITEM_TALENT_10_TITLE(C_MENU_ITEM_DEF) { posx = STAT_B_X1;posy = STAT_TAL_Y + 17*STAT_DY; fontName = STAT_FONT_DEFAULT;flags=flags & ~IT_SELECTABLE; };
instance MENU_ITEM_TALENT_10_SKILL(C_MENU_ITEM_DEF) { posx = STAT_B_X2;posy = STAT_TAL_Y + 17*STAT_DY; fontName = STAT_FONT_DEFAULT;flags=flags & ~IT_SELECTABLE; };
// Talent 11
INSTANCE MENU_ITEM_TALENT_11_TITLE(C_MENU_ITEM_DEF) { posx = STAT_B_X1;posy = STAT_TAL_Y + 18*STAT_DY; fontName = STAT_FONT_DEFAULT;flags=flags & ~IT_SELECTABLE; };
instance MENU_ITEM_TALENT_11_SKILL(C_MENU_ITEM_DEF) { posx = STAT_B_X2;posy = STAT_TAL_Y + 18*STAT_DY; fontName = STAT_FONT_DEFAULT;flags=flags & ~IT_SELECTABLE; };
// Talent 12
INSTANCE MENU_ITEM_TALENT_12_TITLE(C_MENU_ITEM_DEF) { posx = STAT_B_X1;posy = STAT_TAL_Y + 19*STAT_DY; fontName = STAT_FONT_DEFAULT;flags=flags & ~IT_SELECTABLE; };
instance MENU_ITEM_TALENT_12_SKILL(C_MENU_ITEM_DEF) { posx = STAT_B_X2;posy = STAT_TAL_Y + 19*STAT_DY; fontName = STAT_FONT_DEFAULT;flags=flags & ~IT_SELECTABLE; };
// Talent 13
INSTANCE MENU_ITEM_TALENT_13_TITLE(C_MENU_ITEM_DEF) { posx = STAT_B_X1;posy = STAT_TAL_Y + 20*STAT_DY; fontName = STAT_FONT_DEFAULT;flags=flags & ~IT_SELECTABLE; };
instance MENU_ITEM_TALENT_13_SKILL(C_MENU_ITEM_DEF) { posx = STAT_B_X2;posy = STAT_TAL_Y + 20*STAT_DY; fontName = STAT_FONT_DEFAULT;flags=flags & ~IT_SELECTABLE; };
| D |
module android.java.java.util.function_.ToLongFunction;
public import android.java.java.util.function_.ToLongFunction_d_interface;
import arsd.jni : ImportExportImpl;
mixin ImportExportImpl!ToLongFunction;
import import0 = android.java.java.lang.Class;
| D |
/*
* This file is part of EvinceD.
* EvinceD is based on GtkD.
*
* EvinceD is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 3
* of the License, or (at your option) any later version, with
* some exceptions, please read the COPYING file.
*
* EvinceD 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 Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with EvinceD; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
*/
// generated automatically - do not change
// find conversion definition on APILookup.txt
module evince.document.DocumentImagesIF;
private import evince.document.Image;
private import evince.document.MappingList;
private import evince.document.Page;
private import evince.document.c.functions;
public import evince.document.c.types;
private import gdkpixbuf.Pixbuf;
private import gobject.ObjectG;
/** */
public interface DocumentImagesIF{
/** Get the main Gtk struct */
public EvDocumentImages* getDocumentImagesStruct(bool transferOwnership = false);
/** the main Gtk struct as a void* */
protected void* getStruct();
/** */
public static GType getType()
{
return ev_document_images_get_type();
}
/**
*
* Params:
* image = an #EvImage
* Returns: a #GdkPixbuf
*/
public Pixbuf getImage(Image image);
/** */
public MappingList getImageMapping(Page page);
}
| D |
/*******************************************************************************
* Copyright (c) 2000, 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*
* Port to the D programming language:
* Jacob Carlborg <[email protected]>
*******************************************************************************/
module dwt.internal.cocoa.NSURL;
import dwt.dwthelper.utils;
import cocoa = dwt.internal.cocoa.id;
import dwt.internal.cocoa.NSObject;
import dwt.internal.cocoa.NSPasteboard;
import dwt.internal.cocoa.NSString;
import dwt.internal.cocoa.OS;
import objc = dwt.internal.objc.runtime;
public class NSURL : NSObject {
public this() {
super();
}
public this(objc.id id) {
super(id);
}
public this(cocoa.id id) {
super(id);
}
public static NSURL URLFromPasteboard(NSPasteboard pasteBoard) {
objc.id result = OS.objc_msgSend(OS.class_NSURL, OS.sel_URLFromPasteboard_, pasteBoard !is null ? pasteBoard.id : null);
return result !is null ? new NSURL(result) : null;
}
public void writeToPasteboard(NSPasteboard pasteBoard) {
OS.objc_msgSend(this.id, OS.sel_writeToPasteboard_, pasteBoard !is null ? pasteBoard.id : null);
}
public static NSURL URLWithString(NSString URLString) {
objc.id result = OS.objc_msgSend(OS.class_NSURL, OS.sel_URLWithString_, URLString !is null ? URLString.id : null);
return result !is null ? new NSURL(result) : null;
}
public NSString absoluteString() {
objc.id result = OS.objc_msgSend(this.id, OS.sel_absoluteString);
return result !is null ? new NSString(result) : null;
}
public static NSURL fileURLWithPath(NSString path) {
objc.id result = OS.objc_msgSend(OS.class_NSURL, OS.sel_fileURLWithPath_, path !is null ? path.id : null);
return result !is null ? new NSURL(result) : null;
}
public bool isFileURL() {
return OS.objc_msgSend_bool(this.id, OS.sel_isFileURL);
}
}
| D |
module qstruct;
import core.stdc.stdint;
// compiler.h
extern(C)
{
struct qstruct_definition
{
char *name;
size_t name_len;
qstruct_item *items;
size_t num_items;
uint32_t body_size;
qstruct_definition *next;
}
struct qstruct_item
{
char *name;
size_t name_len;
int type;
uint32_t fixed_array_size;
uint32_t byte_offset;
int bit_offset;
qstruct_definition *nested_def;
char *nested_name;
size_t nested_name_len;
size_t item_order;
}
qstruct_definition *parse_qstructs(
char *schema, size_t schema_size, char *err_buf, size_t err_buf_size
);
void free_qstruct_definitions(qstruct_definition *def);
}
// builder.h
extern(C)
{
struct qstruct_builder
{
ubyte *buf;
size_t buf_size;
size_t msg_size;
uint32_t body_size;
uint32_t body_count;
}
int qstruct_builder_emplace_glue(
qstruct_builder *builder, uint64_t magic_id, uint32_t body_size, uint32_t body_count
);
qstruct_builder *qstruct_builder_new_glue(
uint64_t magic_id, uint32_t body_size, uint32_t body_count
);
void qstruct_builder_free_buf_glue(qstruct_builder *builder);
void qstruct_builder_free_glue(qstruct_builder *builder);
size_t qstruct_builder_get_msg_size_glue(qstruct_builder *builder);
ubyte *qstruct_builder_get_buf_glue(qstruct_builder *builder);
ubyte *qstruct_builder_steal_buf_glue(qstruct_builder *builder);
int qstruct_builder_give_buf_glue(
qstruct_builder *builder,
ubyte *buf,
size_t buf_size
);
int qstruct_builder_expand_msg_glue(
qstruct_builder *builder,
size_t new_buf_size
);
int qstruct_builder_set_uint64_glue(
qstruct_builder *builder,
uint32_t body_index,
uint32_t byte_offset,
uint64_t value
);
int qstruct_builder_set_uint32_glue(
qstruct_builder *builder,
uint32_t body_index,
uint32_t byte_offset,
uint32_t value
);
int qstruct_builder_set_uint16_glue(
qstruct_builder *builder,
uint32_t body_index,
uint32_t byte_offset,
uint16_t value
);
int qstruct_builder_set_uint8_glue(
qstruct_builder *builder,
uint32_t body_index,
uint32_t byte_offset,
uint8_t value
);
int qstruct_builder_set_bool_glue(
qstruct_builder *builder,
uint32_t body_index,
uint32_t byte_offset,
int bit_offset,
int value
);
int qstruct_builder_set_pointer_glue(
qstruct_builder *builder,
uint32_t body_index,
uint32_t byte_offset,
char *value,
size_t value_size,
int alignment,
size_t *output_data_start
);
int qstruct_builder_set_raw_bytes_glue(
qstruct_builder *builder,
uint32_t body_index,
uint32_t byte_offset,
ubyte *value,
size_t value_size
);
}
// loader.h
extern(C)
{
int qstruct_sanity_check_glue(
const ubyte *buf,
size_t buf_size
);
int qstruct_unpack_header_glue(
const ubyte *buf,
size_t buf_size,
uint64_t *output_magic_id,
uint32_t *output_body_size,
uint32_t *output_body_count
);
int qstruct_get_uint64_glue(
const ubyte *buf,
size_t buf_size,
uint32_t body_index,
uint32_t byte_offset,
uint64_t *output
);
int qstruct_get_uint32_glue(
const ubyte *buf,
size_t buf_size,
uint32_t body_index,
uint32_t byte_offset,
uint32_t *output
);
int qstruct_get_uint16_glue(
const ubyte *buf,
size_t buf_size,
uint32_t body_index,
uint32_t byte_offset,
uint16_t *output
);
int qstruct_get_uint8_glue(
const ubyte *buf,
size_t buf_size,
uint32_t body_index,
uint32_t byte_offset,
uint8_t *output
);
int qstruct_get_bool_glue(
const ubyte *buf,
size_t buf_size,
uint32_t body_index,
uint32_t byte_offset,
int bit_offset,
int *output
);
int qstruct_get_pointer_glue(
const ubyte *buf,
size_t buf_size,
uint32_t body_index,
uint32_t byte_offset,
char **output,
size_t *output_size,
int alignment
);
int qstruct_get_raw_bytes_glue(
const ubyte *buf,
size_t buf_size,
uint32_t body_index,
uint32_t byte_offset,
size_t length,
ubyte **output,
size_t *output_size
);
}
| D |
/******************************************************************************
This module contains functions for serializing and deserializing compiled Croc
functions and modules.
License:
Copyright (c) 2008 Jarrett Billingsley
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from the
use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it freely,
subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software in a
product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not
be misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
******************************************************************************/
module croc.serialization;
import tango.core.BitManip;
import tango.core.Exception;
import tango.io.model.IConduit;
// This import violates layering. STUPID SERIALIZATION LIB.
import croc.ex;
import croc.api_interpreter;
import croc.api_stack;
import croc.base_hash;
import croc.types;
import croc.types_function;
import croc.types_instance;
import croc.utils;
import croc.vm;
// ================================================================================================================================================
// Public
// ================================================================================================================================================
public:
void serializeGraph(CrocThread* t, word idx, word trans, OutputStream output)
{
auto s = Serializer(t, output);
s.writeGraph(idx, trans);
}
word deserializeGraph(CrocThread* t, word trans, InputStream input)
{
auto d = Deserializer(t, input);
return d.readGraph(trans);
}
void serializeModule(CrocThread* t, word idx, char[] name, OutputStream output)
{
append(t, output, (&FileHeader.init)[0 .. 1]);
put!(uword)(t, output, name.length);
append(t, output, name);
auto s = Serializer(t, output);
idx = absIndex(t, idx);
newTable(t);
s.writeGraph(idx, -1);
pop(t);
}
void deserializeModule(CrocThread* t, out char[] name, InputStream input)
{
FileHeader fh = void;
readExact(t, input, (&fh)[0 .. 1]);
if(fh != FileHeader.init)
throwStdException(t, "ValueException", "Serialized module header mismatch");
uword len = void;
get!(uword)(t, input, len);
name = new char[](len);
readExact(t, input, name);
newTable(t);
auto d = Deserializer(t, input);
auto ret = d.readGraph(-1);
pop(t);
}
// ================================================================================================================================================
// Private
// ================================================================================================================================================
private:
align(1) struct FileHeader
{
uint magic = FOURCC!("Croc");
uint _version = CrocVersion;
ubyte platformBits = uword.sizeof * 8;
version(BigEndian)
ubyte endianness = 1;
else
ubyte endianness = 0;
ubyte intSize = crocint.sizeof;
ubyte floatSize = crocfloat.sizeof;
ubyte[4] _padding;
}
static assert(FileHeader.sizeof == 16);
struct Serializer
{
private:
CrocThread* t;
OutputStream mOutput;
Hash!(CrocBaseObject*, uword) mObjTable;
uword mObjIndex;
CrocTable* mTrans;
CrocInstance* mStream;
CrocFunction* mSerializeFunc;
enum
{
Backref = -1,
Transient = -2
}
static Serializer opCall(CrocThread* t, OutputStream output)
{
Serializer ret;
ret.t = t;
ret.mOutput = output;
return ret;
}
static class Goober
{
Serializer* s;
this(Serializer* s) { this.s = s; }
}
static uword serializeFunc(CrocThread* t)
{
if(!isValidIndex(t, 1))
throwStdException(t, "ParamException", "Expected at least one parameter");
getUpval(t, 0);
auto g = cast(Goober)getNativeObj(t, -1);
g.s.serialize(*getValue(t, 1));
return 0;
}
void writeGraph(word value, word trans)
{
if(opis(t, value, trans))
throwStdException(t, "ValueException", "Object to serialize is the same as the transients table");
if(!isTable(t, trans))
{
pushTypeString(t, trans);
throwStdException(t, "TypeException", "Transients table must be a table, not '{}'", getString(t, -1));
}
mTrans = getTable(t, trans);
auto v = *getValue(t, value);
auto size = stackSize(t);
mObjTable.clear(t.vm.alloc);
mObjIndex = 0;
scope(exit)
{
setStackSize(t, size);
mObjTable.clear(t.vm.alloc);
}
// we leave these on the stack so they won't be collected, but we get 'real' references
// to them so we can push them in opSerialize callbacks.
importModuleNoNS(t, "stream");
lookup(t, "stream.OutStream");
pushNull(t);
pushNativeObj(t, cast(Object)mOutput);
pushBool(t, false);
rawCall(t, -4, 1);
mStream = getInstance(t, -1);
pushNativeObj(t, new Goober(this));
newFunction(t, 1, &serializeFunc, "serialize", 1);
mSerializeFunc = getFunction(t, -1);
serialize(v);
mOutput.flush();
}
void tag(byte v)
{
put(t, mOutput, v);
}
void integer(long v)
{
if(v == 0)
{
put!(byte)(t, mOutput, 0);
return;
}
else if(v == long.min)
{
// this is special-cased since -long.min == long.min!
put(t, mOutput, cast(byte)0xFF);
return;
}
int numBytes = void;
bool neg = v < 0;
if(neg)
v = -v;
if(v & 0xFFFF_FFFF_0000_0000)
numBytes = (bsr(cast(uint)(v >>> 32)) / 8) + 5;
else
numBytes = (bsr(cast(uint)v) / 8) + 1;
put(t, mOutput, cast(ubyte)(neg ? numBytes | 0x80 : numBytes));
while(v)
{
put(t, mOutput, cast(ubyte)(v & 0xFF));
v >>>= 8;
}
}
void serialize(CrocValue v)
{
// check to see if it's an transient value
push(t, CrocValue(mTrans));
push(t, v);
idx(t, -2);
if(!isNull(t, -1))
{
tag(Transient);
serialize(*getValue(t, -1));
pop(t, 2);
return;
}
pop(t, 2);
// serialize it
switch(v.type)
{
case CrocValue.Type.Null: serializeNull(); break;
case CrocValue.Type.Bool: serializeBool(v.mBool); break;
case CrocValue.Type.Int: serializeInt(v.mInt); break;
case CrocValue.Type.Float: serializeFloat(v.mFloat); break;
case CrocValue.Type.Char: serializeChar(v.mChar); break;
case CrocValue.Type.String: serializeString(v.mString); break;
case CrocValue.Type.Table: serializeTable(v.mTable); break;
case CrocValue.Type.Array: serializeArray(v.mArray); break;
case CrocValue.Type.Memblock: serializeMemblock(v.mMemblock); break;
case CrocValue.Type.Function: serializeFunction(v.mFunction); break;
case CrocValue.Type.Class: serializeClass(v.mClass); break;
case CrocValue.Type.Instance: serializeInstance(v.mInstance); break;
case CrocValue.Type.Namespace: serializeNamespace(v.mNamespace); break;
case CrocValue.Type.Thread: serializeThread(v.mThread); break;
case CrocValue.Type.WeakRef: serializeWeakRef(v.mWeakRef); break;
case CrocValue.Type.NativeObj: serializeNativeObj(v.mNativeObj); break;
case CrocValue.Type.FuncDef: serializeFuncDef(v.mFuncDef); break;
case CrocValue.Type.Upvalue: serializeUpval(cast(CrocUpval*)v.mBaseObj); break;
default: assert(false);
}
}
void serializeNull()
{
tag(CrocValue.Type.Null);
}
void serializeBool(bool v)
{
tag(CrocValue.Type.Bool);
put(t, mOutput, v);
}
void serializeInt(crocint v)
{
tag(CrocValue.Type.Int);
integer(v);
}
void serializeFloat(crocfloat v)
{
tag(CrocValue.Type.Float);
put(t, mOutput, v);
}
void serializeChar(dchar v)
{
tag(CrocValue.Type.Char);
integer(v);
}
void serializeString(CrocString* v)
{
if(alreadyWritten(cast(CrocBaseObject*)v))
return;
tag(CrocValue.Type.String);
auto data = v.toString();
integer(data.length);
append(t, mOutput, data);
}
void serializeTable(CrocTable* v)
{
if(alreadyWritten(cast(CrocBaseObject*)v))
return;
tag(CrocValue.Type.Table);
integer(v.data.length);
foreach(ref key, ref val; v.data)
{
serialize(key);
serialize(val);
}
}
void serializeArray(CrocArray* v)
{
if(alreadyWritten(cast(CrocBaseObject*)v))
return;
tag(CrocValue.Type.Array);
integer(v.length);
foreach(ref slot; v.toArray())
serialize(slot.value);
}
void serializeMemblock(CrocMemblock* v)
{
if(alreadyWritten(cast(CrocBaseObject*)v))
return;
if(!v.ownData)
throwStdException(t, "ValueException", "Attempting to persist a memblock which does not own its data");
tag(CrocValue.Type.Memblock);
integer(v.data.length);
append(t, mOutput, v.data);
}
void serializeFunction(CrocFunction* v)
{
if(alreadyWritten(cast(CrocBaseObject*)v))
return;
tag(CrocValue.Type.Function);
if(v.isNative)
{
push(t, CrocValue(v));
throwStdException(t, "ValueException", "Attempting to persist a native function '{}'", funcName(t, -1));
}
// we do this first so we can allocate it at the beginning of deserialization
integer(v.numUpvals);
integer(v.maxParams);
serialize(CrocValue(v.name));
serialize(CrocValue(cast(CrocBaseObject*)v.scriptFunc));
if(v.environment is t.vm.globals)
put(t, mOutput, false);
else
{
put(t, mOutput, true);
serialize(CrocValue(v.environment));
}
foreach(val; v.scriptUpvals)
serialize(CrocValue(cast(CrocBaseObject*)val));
}
void serializeUpval(CrocUpval* v)
{
if(alreadyWritten(cast(CrocBaseObject*)v))
return;
tag(CrocValue.Type.Upvalue);
serialize(*v.value);
}
void serializeFuncDef(CrocFuncDef* v)
{
if(alreadyWritten(cast(CrocBaseObject*)v))
return;
tag(CrocValue.Type.FuncDef);
serialize(CrocValue(v.locFile));
integer(v.locLine);
integer(v.locCol);
put(t, mOutput, v.isVararg);
serialize(CrocValue(v.name));
integer(v.numParams);
integer(v.paramMasks.length);
foreach(mask; v.paramMasks)
integer(mask);
integer(v.numUpvals);
integer(v.upvals.length);
foreach(ref uv; v.upvals)
{
put(t, mOutput, uv.isUpvalue);
integer(uv.index);
}
integer(v.stackSize);
integer(v.innerFuncs.length);
foreach(func; v.innerFuncs)
serialize(CrocValue(cast(CrocBaseObject*)func));
integer(v.constants.length);
foreach(ref val; v.constants)
serialize(val);
integer(v.code.length);
append(t, mOutput, v.code);
if(auto e = v.environment)
{
put(t, mOutput, true);
serialize(CrocValue(e));
}
else
put(t, mOutput, false);
if(auto f = v.cachedFunc)
{
put(t, mOutput, true);
serialize(CrocValue(f));
}
else
put(t, mOutput, false);
integer(v.switchTables.length);
foreach(ref st; v.switchTables)
{
integer(st.offsets.length);
foreach(ref k, v; st.offsets)
{
serialize(k);
integer(v);
}
integer(st.defaultOffset);
}
integer(v.lineInfo.length);
append(t, mOutput, v.lineInfo);
integer(v.upvalNames.length);
foreach(name; v.upvalNames)
serialize(CrocValue(name));
integer(v.locVarDescs.length);
foreach(ref desc; v.locVarDescs)
{
serialize(CrocValue(desc.name));
integer(desc.pcStart);
integer(desc.pcEnd);
integer(desc.reg);
}
}
void serializeClass(CrocClass* v)
{
if(alreadyWritten(cast(CrocBaseObject*)v))
return;
if(v.allocator || v.finalizer)
{
push(t, CrocValue(v));
pushToString(t, -1);
throwStdException(t, "ValueException", "Attempting to serialize '{}', which has an allocator or finalizer", getString(t, -1));
}
tag(CrocValue.Type.Class);
serialize(CrocValue(v.name));
if(v.parent)
{
put(t, mOutput, true);
serialize(CrocValue(v.parent));
}
else
put(t, mOutput, false);
assert(v.fields !is null);
serialize(CrocValue(v.fields));
}
void serializeInstance(CrocInstance* v)
{
if(alreadyWritten(cast(CrocBaseObject*)v))
return;
tag(CrocValue.Type.Instance);
integer(v.numValues);
integer(v.extraBytes);
serialize(CrocValue(v.parent));
push(t, CrocValue(v));
if(hasField(t, -1, "opSerialize"))
{
field(t, -1, "opSerialize");
if(isFunction(t, -1))
{
put(t, mOutput, true);
pop(t);
pushNull(t);
push(t, CrocValue(mStream));
push(t, CrocValue(mSerializeFunc));
methodCall(t, -4, "opSerialize", 0);
return;
}
else if(isBool(t, -1))
{
if(!getBool(t, -1))
{
pushToString(t, -2, true);
throwStdException(t, "ValueException", "Attempting to serialize '{}', whose opSerialize field is 'false'", getString(t, -1));
}
pop(t);
// fall out, serialize literally.
}
else
{
pushToString(t, -2, true);
pushTypeString(t, -2);
throwStdException(t, "TypeException", "Attempting to serialize '{}', whose opSerialize is a '{}', not a bool or function", getString(t, -2), getString(t, -1));
}
}
pop(t);
put(t, mOutput, false);
if(v.numValues || v.extraBytes)
{
push(t, CrocValue(v));
pushToString(t, -1, true);
throwStdException(t, "ValueException", "Attempting to serialize '{}', which has extra values or extra bytes", getString(t, -1));
}
if(v.parent.allocator || v.parent.finalizer)
{
push(t, CrocValue(v));
pushToString(t, -1, true);
throwStdException(t, "ValueException", "Attempting to serialize '{}', whose class has an allocator or finalizer", getString(t, -1));
}
if(v.fields)
{
put(t, mOutput, true);
serialize(CrocValue(v.fields));
}
else
put(t, mOutput, false);
}
void serializeNamespace(CrocNamespace* v)
{
if(alreadyWritten(cast(CrocBaseObject*)v))
return;
tag(CrocValue.Type.Namespace);
serialize(CrocValue(v.name));
if(v.parent is null)
put(t, mOutput, false);
else
{
put(t, mOutput, true);
serialize(CrocValue(v.parent));
}
integer(v.data.length);
foreach(key, ref val; v.data)
{
serialize(CrocValue(key));
serialize(val);
}
}
void serializeThread(CrocThread* v)
{
if(alreadyWritten(cast(CrocBaseObject*)v))
return;
if(t is v)
throwStdException(t, "ValueException", "Attempting to serialize the currently-executing thread");
if(v.nativeCallDepth > 0)
throwStdException(t, "ValueException", "Attempting to serialize a thread with at least one native or metamethod call on its call stack");
tag(CrocValue.Type.Thread);
version(CrocExtendedCoro)
{
put(t, mOutput, true);
}
else
{
put(t, mOutput, false);
integer(v.savedCallDepth);
}
integer(v.arIndex);
foreach(ref rec; v.actRecs[0 .. v.arIndex])
{
integer(rec.base);
integer(rec.savedTop);
integer(rec.vargBase);
integer(rec.returnSlot);
if(rec.func is null)
put(t, mOutput, false);
else
{
put(t, mOutput, true);
serialize(CrocValue(rec.func));
uword diff = rec.pc - rec.func.scriptFunc.code.ptr;
integer(diff);
}
integer(rec.numReturns);
if(rec.proto)
{
put(t, mOutput, true);
serialize(CrocValue(rec.proto));
}
else
put(t, mOutput, false);
integer(rec.numTailcalls);
integer(rec.firstResult);
integer(rec.numResults);
integer(rec.unwindCounter);
if(rec.unwindReturn)
{
put(t, mOutput, true);
uword diff = rec.unwindReturn - rec.func.scriptFunc.code.ptr;
integer(diff);
}
else
put(t, mOutput, false);
}
integer(v.trIndex);
foreach(ref rec; v.tryRecs[0 .. v.trIndex])
{
put(t, mOutput, rec.isCatch);
integer(rec.slot);
integer(rec.actRecord);
uword diff = rec.pc - v.actRecs[rec.actRecord].func.scriptFunc.code.ptr;
integer(diff);
}
integer(v.stackIndex);
uword stackTop;
if(v.arIndex > 0)
stackTop = v.currentAR.savedTop;
else
stackTop = v.stackIndex;
integer(stackTop);
foreach(ref val; v.stack[0 .. stackTop])
serialize(val);
integer(v.stackBase);
integer(v.resultIndex);
foreach(ref val; v.results[0 .. v.resultIndex])
serialize(val);
put(t, mOutput, v.shouldHalt);
if(v.coroFunc)
{
put(t, mOutput, true);
serialize(CrocValue(v.coroFunc));
}
else
put(t, mOutput, false);
integer(v.state);
integer(v.numYields);
// TODO: hooks?!
for(auto uv = t.upvalHead; uv !is null; uv = uv.nextuv)
{
assert(uv.value !is &uv.closedValue);
serialize(CrocValue(cast(CrocBaseObject*)uv));
uword diff = uv.value - v.stack.ptr;
integer(diff);
}
tag(CrocValue.Type.Null);
}
void serializeWeakRef(CrocWeakRef* v)
{
if(alreadyWritten(cast(CrocBaseObject*)v))
return;
tag(CrocValue.Type.WeakRef);
if(v.obj is null)
put(t, mOutput, true);
else
{
put(t, mOutput, false);
serialize(CrocValue(v.obj));
}
}
void serializeNativeObj(CrocNativeObj* v)
{
throwStdException(t, "TypeException", "Attempting to serialize a nativeobj. Please use the transients table.");
}
void writeRef(uword idx)
{
tag(Backref);
integer(idx);
}
void addObject(CrocBaseObject* v)
{
*mObjTable.insert(t.vm.alloc, v) = mObjIndex++;
}
bool alreadyWritten(CrocValue v)
{
return alreadyWritten(v.mBaseObj);
}
bool alreadyWritten(CrocBaseObject* v)
{
if(auto idx = mObjTable.lookup(v))
{
writeRef(*idx);
return true;
}
addObject(v);
return false;
}
}
struct Deserializer
{
private:
CrocThread* t;
InputStream mInput;
CrocBaseObject*[] mObjTable;
CrocTable* mTrans;
CrocInstance* mStream;
CrocFunction* mDeserializeFunc;
static Deserializer opCall(CrocThread* t, InputStream input)
{
Deserializer ret;
ret.t = t;
ret.mInput = input;
return ret;
}
static class Goober
{
Deserializer* d;
this(Deserializer* d) { this.d = d; }
}
static uword deserializeFunc(CrocThread* t)
{
getUpval(t, 0);
auto g = cast(Goober)getNativeObj(t, -1);
g.d.deserializeValue();
return 1;
}
word readGraph(word trans)
{
if(!isTable(t, trans))
{
pushTypeString(t, trans);
throwStdException(t, "TypeException", "Transients table must be a table, not '{}'", getString(t, -1));
}
mTrans = getTable(t, trans);
auto size = stackSize(t);
t.vm.alloc.resizeArray(mObjTable, 0);
disableGC(t.vm);
scope(failure)
setStackSize(t, size);
scope(exit)
{
t.vm.alloc.resizeArray(mObjTable, 0);
enableGC(t.vm);
}
// we leave these on the stack so they won't be collected, but we get 'real' references
// to them so we can push them in opSerialize callbacks.
importModuleNoNS(t, "stream");
lookup(t, "stream.InStream");
pushNull(t);
pushNativeObj(t, cast(Object)mInput);
pushBool(t, false);
rawCall(t, -4, 1);
mStream = getInstance(t, -1);
pushNativeObj(t, new Goober(this));
newFunction(t, 0, &deserializeFunc, "deserialize", 1);
mDeserializeFunc = getFunction(t, -1);
deserializeValue();
insertAndPop(t, -3);
maybeGC(t);
return stackSize(t) - 1;
}
byte tag()
{
byte ret = void;
get(t, mInput, ret);
return ret;
}
long integer()()
{
byte v = void;
get(t, mInput, v);
if(v == 0)
return 0;
else if(v == 0xFF)
return long.min;
else
{
bool neg = (v & 0x80) != 0;
if(neg)
v &= ~0x80;
auto numBytes = v;
long ret = 0;
for(int shift = 0; numBytes; numBytes--, shift += 8)
{
get(t, mInput, v);
ret |= v << shift;
}
return neg ? -ret : ret;
}
}
void integer(T)(ref T x)
{
x = cast(T)integer();
}
void deserializeValue()
{
switch(tag())
{
case CrocValue.Type.Null: deserializeNullImpl(); break;
case CrocValue.Type.Bool: deserializeBoolImpl(); break;
case CrocValue.Type.Int: deserializeIntImpl(); break;
case CrocValue.Type.Float: deserializeFloatImpl(); break;
case CrocValue.Type.Char: deserializeCharImpl(); break;
case CrocValue.Type.String: deserializeStringImpl(); break;
case CrocValue.Type.Table: deserializeTableImpl(); break;
case CrocValue.Type.Array: deserializeArrayImpl(); break;
case CrocValue.Type.Memblock: deserializeMemblockImpl(); break;
case CrocValue.Type.Function: deserializeFunctionImpl(); break;
case CrocValue.Type.Class: deserializeClassImpl(); break;
case CrocValue.Type.Instance: deserializeInstanceImpl(); break;
case CrocValue.Type.Namespace: deserializeNamespaceImpl(); break;
case CrocValue.Type.Thread: deserializeThreadImpl(); break;
case CrocValue.Type.WeakRef: deserializeWeakrefImpl(); break;
case CrocValue.Type.FuncDef: deserializeFuncDefImpl(); break;
case CrocValue.Type.Upvalue: deserializeUpvalImpl(); break;
case Serializer.Backref: push(t, CrocValue(mObjTable[cast(uword)integer()])); break;
case Serializer.Transient:
push(t, CrocValue(mTrans));
deserializeValue();
idx(t, -2);
insertAndPop(t, -2);
break;
default: throwStdException(t, "ValueException", "Malformed data");
}
}
void checkTag(byte type)
{
if(tag() != type)
throwStdException(t, "ValueException", "Malformed data");
}
void deserializeNull()
{
checkTag(CrocValue.Type.Null);
deserializeNullImpl();
}
void deserializeNullImpl()
{
pushNull(t);
}
void deserializeBool()
{
checkTag(CrocValue.Type.Bool);
deserializeBoolImpl();
}
void deserializeBoolImpl()
{
bool v = void;
get(t, mInput, v);
pushBool(t, v);
}
void deserializeInt()
{
checkTag(CrocValue.Type.Int);
deserializeIntImpl();
}
void deserializeIntImpl()
{
pushInt(t, integer());
}
void deserializeFloat()
{
checkTag(CrocValue.Type.Float);
deserializeFloatImpl();
}
void deserializeFloatImpl()
{
crocfloat v = void;
get(t, mInput, v);
pushFloat(t, v);
}
void deserializeChar()
{
checkTag(CrocValue.Type.Char);
deserializeCharImpl();
}
void deserializeCharImpl()
{
pushChar(t, cast(dchar)integer());
}
bool checkObjTag(byte type)
{
auto tmp = tag();
if(tmp == type)
return true;
else if(tmp == Serializer.Backref)
{
auto ret = mObjTable[cast(uword)integer()];
assert(ret.mType == type);
push(t, CrocValue(ret));
return false;
}
else if(tmp == Serializer.Transient)
{
push(t, CrocValue(mTrans));
deserializeValue();
idx(t, -2);
insertAndPop(t, -2);
if(.type(t, -1) != type)
throwStdException(t, "ValueException", "Invalid transient table");
return false;
}
else
throwStdException(t, "ValueException", "Malformed data");
assert(false);
}
void deserializeString()
{
if(checkObjTag(CrocValue.Type.String))
deserializeStringImpl();
}
void deserializeStringImpl()
{
auto len = integer();
auto data = t.vm.alloc.allocArray!(char)(cast(uword)len);
scope(exit) t.vm.alloc.freeArray(data);
readExact(t, mInput, data);
pushString(t, data);
addObject(getValue(t, -1).mBaseObj);
}
void deserializeTable()
{
if(checkObjTag(CrocValue.Type.Table))
deserializeTableImpl();
}
void deserializeTableImpl()
{
auto len = integer();
auto v = newTable(t);
addObject(getValue(t, -1).mBaseObj);
for(uword i = 0; i < len; i++)
{
deserializeValue();
deserializeValue();
idxa(t, v);
}
}
void deserializeArray()
{
if(checkObjTag(CrocValue.Type.Array))
deserializeArrayImpl();
}
void deserializeArrayImpl()
{
auto arr = t.vm.alloc.allocate!(CrocArray);
addObject(cast(CrocBaseObject*)arr);
auto len = integer();
auto v = newArray(t, cast(uword)len);
for(uword i = 0; i < len; i++)
{
deserializeValue();
idxai(t, v, cast(crocint)i);
}
}
void deserializeMemblock()
{
if(checkObjTag(CrocValue.Type.Memblock))
deserializeMemblockImpl();
}
void deserializeMemblockImpl()
{
newMemblock(t, cast(uword)integer());
addObject(getValue(t, -1).mBaseObj);
insertAndPop(t, -2);
readExact(t, mInput, getMemblock(t, -1).data);
}
void deserializeFunction()
{
if(checkObjTag(CrocValue.Type.Function))
deserializeFunctionImpl();
}
void deserializeFunctionImpl()
{
auto numUpvals = cast(uword)integer();
auto func = t.vm.alloc.allocate!(CrocFunction)(func.ScriptClosureSize(numUpvals));
addObject(cast(CrocBaseObject*)func);
// Future Me: if this causes some kind of horrible bug down the road, feel free to come back in time
// and beat the shit out of me. But since you haven't yet, I'm guessing that it doesn't. So ha.
func.maxParams = cast(uword)integer();
func.isNative = false;
func.numUpvals = numUpvals;
deserializeString();
func.name = getStringObj(t, -1);
pop(t);
deserializeFuncDef();
func.scriptFunc = getValue(t, -1).mFuncDef;
pop(t);
bool haveEnv;
get(t, mInput, haveEnv);
if(haveEnv)
deserializeNamespace();
else
pushGlobal(t, "_G");
func.environment = getNamespace(t, -1);
pop(t);
foreach(ref val; func.scriptUpvals())
{
deserializeUpval();
val = cast(CrocUpval*)getValue(t, -1).mBaseObj;
pop(t);
}
push(t, CrocValue(func));
}
void deserializeUpval()
{
if(checkObjTag(CrocValue.Type.Upvalue))
deserializeUpvalImpl();
}
void deserializeUpvalImpl()
{
auto uv = t.vm.alloc.allocate!(CrocUpval)();
addObject(cast(CrocBaseObject*)uv);
uv.value = &uv.closedValue;
deserializeValue();
uv.closedValue = *getValue(t, -1);
pop(t);
push(t, CrocValue(cast(CrocBaseObject*)uv));
}
void deserializeFuncDef()
{
if(checkObjTag(CrocValue.Type.FuncDef))
deserializeFuncDefImpl();
}
void deserializeFuncDefImpl()
{
auto def = t.vm.alloc.allocate!(CrocFuncDef);
addObject(cast(CrocBaseObject*)def);
deserializeString();
def.locFile = getStringObj(t, -1);
pop(t);
integer(def.locLine);
integer(def.locCol);
get(t, mInput, def.isVararg);
deserializeString();
def.name = getStringObj(t, -1);
pop(t);
integer(def.numParams);
t.vm.alloc.resizeArray(def.paramMasks, cast(uword)integer());
foreach(ref mask; def.paramMasks)
integer(mask);
integer(def.numUpvals);
t.vm.alloc.resizeArray(def.upvals, cast(uword)integer());
foreach(ref uv; def.upvals)
{
get(t, mInput, uv.isUpvalue);
integer(uv.index);
}
integer(def.stackSize);
t.vm.alloc.resizeArray(def.innerFuncs, cast(uword)integer());
foreach(ref func; def.innerFuncs)
{
deserializeFuncDef();
func = getValue(t, -1).mFuncDef;
pop(t);
}
t.vm.alloc.resizeArray(def.constants, cast(uword)integer());
foreach(ref val; def.constants)
{
deserializeValue();
val = *getValue(t, -1);
pop(t);
}
t.vm.alloc.resizeArray(def.code, cast(uword)integer());
readExact(t, mInput, def.code);
bool haveEnvironment;
get(t, mInput, haveEnvironment);
if(haveEnvironment)
{
deserializeNamespace();
def.environment = getNamespace(t, -1);
pop(t);
}
else
def.environment = null;
bool haveCached;
get(t, mInput, haveCached);
if(haveCached)
{
deserializeFunction();
def.cachedFunc = getFunction(t, -1);
pop(t);
}
else
def.cachedFunc = null;
t.vm.alloc.resizeArray(def.switchTables, cast(uword)integer());
foreach(ref st; def.switchTables)
{
auto numOffsets = cast(uword)integer();
for(uword i = 0; i < numOffsets; i++)
{
deserializeValue();
integer(*st.offsets.insert(t.vm.alloc, *getValue(t, -1)));
pop(t);
}
integer(st.defaultOffset);
}
t.vm.alloc.resizeArray(def.lineInfo, cast(uword)integer());
readExact(t, mInput, def.lineInfo);
t.vm.alloc.resizeArray(def.upvalNames, cast(uword)integer());
foreach(ref name; def.upvalNames)
{
deserializeString();
name = getStringObj(t, -1);
pop(t);
}
t.vm.alloc.resizeArray(def.locVarDescs, cast(uword)integer());
foreach(ref desc; def.locVarDescs)
{
deserializeString();
desc.name = getStringObj(t, -1);
pop(t);
integer(desc.pcStart);
integer(desc.pcEnd);
integer(desc.reg);
}
push(t, CrocValue(cast(CrocBaseObject*)def));
}
void deserializeClass()
{
if(checkObjTag(CrocValue.Type.Class))
deserializeClassImpl();
}
void deserializeClassImpl()
{
auto cls = t.vm.alloc.allocate!(CrocClass)();
addObject(cast(CrocBaseObject*)cls);
deserializeString();
cls.name = getStringObj(t, -1);
pop(t);
bool haveParent;
get(t, mInput, haveParent);
if(haveParent)
{
deserializeClass();
cls.parent = getClass(t, -1);
pop(t);
}
else
cls.parent = null;
deserializeNamespace();
cls.fields = getNamespace(t, -1);
pop(t);
assert(!cls.parent || cls.fields.parent);
push(t, CrocValue(cls));
}
void deserializeInstance()
{
if(checkObjTag(CrocValue.Type.Instance))
deserializeInstanceImpl();
}
void deserializeInstanceImpl()
{
auto numValues = cast(uword)integer();
auto extraBytes = cast(uword)integer();
// if it was custom-allocated, we can't necessarily do this.
// well, can we? I mean technically, a custom allocator can't do anything *terribly* weird,
// like using malloc.. and besides, we wouldn't know what params to call it with.
// I suppose we can assume that if a class writer is providing an opDeserialize method, they're
// going to expect this.
auto inst = t.vm.alloc.allocate!(CrocInstance)(instance.InstanceSize(numValues, extraBytes));
inst.numValues = numValues;
inst.extraBytes = extraBytes;
inst.extraValues()[] = CrocValue.nullValue;
addObject(cast(CrocBaseObject*)inst);
deserializeClass();
inst.parent = getClass(t, -1);
pop(t);
bool isSpecial;
get(t, mInput, isSpecial);
if(isSpecial)
{
push(t, CrocValue(inst));
if(!hasMethod(t, -1, "opDeserialize"))
{
pushToString(t, -1, true);
throwStdException(t, "ValueException", "'{}' was serialized with opSerialize, but does not have a matching opDeserialize", getString(t, -1));
}
pushNull(t);
push(t, CrocValue(mStream));
push(t, CrocValue(mDeserializeFunc));
methodCall(t, -4, "opDeserialize", 0);
}
else
{
assert(numValues == 0 && extraBytes == 0);
bool haveFields;
get(t, mInput, haveFields);
if(haveFields)
{
deserializeNamespace();
inst.fields = getNamespace(t, -1);
pop(t);
}
}
push(t, CrocValue(inst));
}
void deserializeNamespace()
{
if(checkObjTag(CrocValue.Type.Namespace))
deserializeNamespaceImpl();
}
void deserializeNamespaceImpl()
{
auto ns = t.vm.alloc.allocate!(CrocNamespace);
addObject(cast(CrocBaseObject*)ns);
deserializeString();
ns.name = getStringObj(t, -1);
pop(t);
push(t, CrocValue(ns));
bool haveParent;
get(t, mInput, haveParent);
if(haveParent)
{
deserializeNamespace();
ns.parent = getNamespace(t, -1);
pop(t);
}
else
ns.parent = null;
auto len = cast(uword)integer();
for(uword i = 0; i < len; i++)
{
deserializeString();
deserializeValue();
fielda(t, -3);
}
}
void deserializeThread()
{
if(checkObjTag(CrocValue.Type.Thread))
deserializeThreadImpl();
}
void deserializeThreadImpl()
{
auto ret = t.vm.alloc.allocate!(CrocThread);
addObject(cast(CrocBaseObject*)ret);
ret.vm = t.vm;
bool isExtended;
get(t, mInput, isExtended);
version(CrocExtendedCoro)
{
if(!isExtended)
throwStdException(t, "ValueException", "Attempting to deserialize a non-extended coroutine, but extended coroutine support was compiled in");
// not sure how to handle deserialization of extended coros yet..
// the issue is that we have to somehow create a ThreadFiber object and have it resume from where
// it yielded...? is that even possible?
throwStdException(t, "ValueException", "AGH I don't know how to deserialize extended coros");
}
else
{
if(isExtended)
throwStdException(t, "ValueException", "Attempting to deserialize an extended coroutine, but extended coroutine support was not compiled in");
integer(ret.savedCallDepth);
}
integer(ret.arIndex);
t.vm.alloc.resizeArray(ret.actRecs, ret.arIndex < 10 ? 10 : ret.arIndex);
if(ret.arIndex > 0)
ret.currentAR = &ret.actRecs[ret.arIndex - 1];
else
ret.currentAR = null;
foreach(ref rec; ret.actRecs[0 .. ret.arIndex])
{
integer(rec.base);
integer(rec.savedTop);
integer(rec.vargBase);
integer(rec.returnSlot);
bool haveFunc;
get(t, mInput, haveFunc);
if(haveFunc)
{
deserializeFunction();
rec.func = getFunction(t, -1);
pop(t);
uword diff;
integer(diff);
rec.pc = rec.func.scriptFunc.code.ptr + diff;
}
else
{
rec.func = null;
rec.pc = null;
}
integer(rec.numReturns);
bool haveProto;
get(t, mInput, haveProto);
if(haveProto)
{
deserializeClass();
rec.proto = getClass(t, -1);
pop(t);
}
else
rec.proto = null;
integer(rec.numTailcalls);
integer(rec.firstResult);
integer(rec.numResults);
integer(rec.unwindCounter);
bool haveUnwindRet;
get(t, mInput, haveUnwindRet);
if(haveUnwindRet)
{
uword diff;
integer(diff);
rec.unwindReturn = rec.func.scriptFunc.code.ptr + diff;
}
else
rec.unwindReturn = null;
}
integer(ret.trIndex);
t.vm.alloc.resizeArray(ret.tryRecs, ret.trIndex < 10 ? 10 : ret.trIndex);
if(ret.trIndex > 0)
ret.currentTR = &ret.tryRecs[ret.trIndex - 1];
else
ret.currentTR = null;
foreach(ref rec; ret.tryRecs[0 .. ret.trIndex])
{
get(t, mInput, rec.isCatch);
integer(rec.slot);
integer(rec.actRecord);
uword diff;
integer(diff);
rec.pc = ret.actRecs[rec.actRecord].func.scriptFunc.code.ptr + diff;
}
integer(ret.stackIndex);
uword stackTop;
integer(stackTop);
t.vm.alloc.resizeArray(ret.stack, stackTop < 20 ? 20 : stackTop);
foreach(ref val; ret.stack[0 .. stackTop])
{
deserializeValue();
val = *getValue(t, -1);
pop(t);
}
integer(ret.stackBase);
integer(ret.resultIndex);
t.vm.alloc.resizeArray(ret.results, ret.resultIndex < 8 ? 8 : ret.resultIndex);
foreach(ref val; ret.results[0 .. ret.resultIndex])
{
deserializeValue();
val = *getValue(t, -1);
pop(t);
}
get(t, mInput, ret.shouldHalt);
bool haveCoroFunc;
get(t, mInput, haveCoroFunc);
if(haveCoroFunc)
{
deserializeFunction();
ret.coroFunc = getFunction(t, -1);
pop(t);
}
else
ret.coroFunc = null;
integer(ret.state);
integer(ret.numYields);
// TODO: hooks?!
auto next = &t.upvalHead;
while(true)
{
deserializeValue();
if(isNull(t, -1))
{
pop(t);
break;
}
auto uv = cast(CrocUpval*)getValue(t, -1).mBaseObj;
pop(t);
uword diff;
integer(diff);
uv.value = ret.stack.ptr + diff;
*next = uv;
next = &uv.nextuv;
}
*next = null;
pushThread(t, ret);
}
void deserializeWeakref()
{
if(checkObjTag(CrocValue.Type.WeakRef))
deserializeWeakrefImpl();
}
void deserializeWeakrefImpl()
{
auto wr = t.vm.alloc.allocate!(CrocWeakRef);
wr.obj = null;
addObject(cast(CrocBaseObject*)wr);
bool isNull;
get(t, mInput, isNull);
if(!isNull)
{
deserializeValue();
wr.obj = getValue(t, -1).mBaseObj;
pop(t);
*t.vm.weakRefTab.insert(t.vm.alloc, wr.obj) = wr;
}
push(t, CrocValue(wr));
}
void addObject(CrocBaseObject* v)
{
t.vm.alloc.resizeArray(mObjTable, mObjTable.length + 1);
mObjTable[$ - 1] = v;
}
}
void get(T)(CrocThread* t, InputStream i, ref T ret)
{
if(i.read(cast(void[])(&ret)[0 .. 1]) != T.sizeof)
throwStdException(t, "IOException", "End of stream while reading");
}
void put(T)(CrocThread* t, OutputStream o, T val)
{
if(o.write(cast(void[])(&val)[0 .. 1]) != T.sizeof)
throwStdException(t, "IOException", "End of stream while writing");
}
void readExact(CrocThread* t, InputStream i, void[] dest)
{
if(i.read(dest) != dest.length)
throwStdException(t, "IOException", "End of stream while reading");
}
void append(CrocThread* t, OutputStream o, void[] val)
{
if(o.write(val) != val.length)
throwStdException(t, "IOException", "End of stream while writing");
} | D |
/Users/Michael/Desktop/Key9Pi/DerivedData/Key9pi/Build/Intermediates/Key9pi.build/Debug-iphoneos/customKeyboard.build/Objects-normal/arm64/KeyboardViewController.o : /Users/Michael/Desktop/Key9Pi/customKeyboard/SequenceModel.swift /Users/Michael/Desktop/Key9Pi/Key9pi/AppDelegate.swift /Users/Michael/Desktop/Key9Pi/Key9pi/ColorPicker.swift /Users/Michael/Desktop/Key9Pi/customKeyboard/KeyboardViewController.swift /Users/Michael/Desktop/Key9Pi/customKeyboard/DictionaryModel.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Metal.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/UIKit.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreImage.swiftmodule
/Users/Michael/Desktop/Key9Pi/DerivedData/Key9pi/Build/Intermediates/Key9pi.build/Debug-iphoneos/customKeyboard.build/Objects-normal/arm64/KeyboardViewController~partial.swiftmodule : /Users/Michael/Desktop/Key9Pi/customKeyboard/SequenceModel.swift /Users/Michael/Desktop/Key9Pi/Key9pi/AppDelegate.swift /Users/Michael/Desktop/Key9Pi/Key9pi/ColorPicker.swift /Users/Michael/Desktop/Key9Pi/customKeyboard/KeyboardViewController.swift /Users/Michael/Desktop/Key9Pi/customKeyboard/DictionaryModel.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Metal.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/UIKit.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreImage.swiftmodule
/Users/Michael/Desktop/Key9Pi/DerivedData/Key9pi/Build/Intermediates/Key9pi.build/Debug-iphoneos/customKeyboard.build/Objects-normal/arm64/KeyboardViewController~partial.swiftdoc : /Users/Michael/Desktop/Key9Pi/customKeyboard/SequenceModel.swift /Users/Michael/Desktop/Key9Pi/Key9pi/AppDelegate.swift /Users/Michael/Desktop/Key9Pi/Key9pi/ColorPicker.swift /Users/Michael/Desktop/Key9Pi/customKeyboard/KeyboardViewController.swift /Users/Michael/Desktop/Key9Pi/customKeyboard/DictionaryModel.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Metal.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/UIKit.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreImage.swiftmodule
| D |
instance STRF_1118_Addon_Patrick(Npc_Default)
{
name[0] = "Patrick";
guild = GIL_STRF;
id = 1118;
voice = 7;
flags = 0;
npcType = npctype_main;
aivar[AIV_NoFightParker] = TRUE;
aivar[AIV_IgnoresArmor] = TRUE;
aivar[AIV_ToughGuy] = TRUE;
aivar[AIV_ToughGuyNewsOverride] = TRUE;
aivar[AIV_IGNORE_Murder] = TRUE;
aivar[AIV_IGNORE_Theft] = TRUE;
aivar[AIV_IGNORE_Sheepkiller] = TRUE;
aivar[AIV_NewsOverride] = TRUE;
B_SetAttributesToChapter(self,3);
fight_tactic = FAI_HUMAN_NORMAL;
EquipItem(self,ItMw_2H_Axe_L_01);
B_CreateAmbientInv(self);
B_SetNpcVisual(self,MALE,"Hum_Head_Bald",Face_L_NormalBart02,BodyTex_L,ITAR_Prisoner);
Mdl_SetModelFatness(self,1);
Mdl_ApplyOverlayMds(self,"Humans_Tired.mds");
B_GiveNpcTalents(self);
B_SetFightSkills(self,30);
daily_routine = Rtn_Start_1118;
};
func void Rtn_Start_1118()
{
TA_Pick_Ore(8,0,23,0,"ADW_MINE_LAGER_05");
TA_Pick_Ore(23,0,8,0,"ADW_MINE_LAGER_05");
};
func void Rtn_Flucht_1118()
{
TA_RunToWP(8,0,23,0,"ADW_BL_HOEHLE_04");
TA_RunToWP(23,0,8,0,"ADW_BL_HOEHLE_04");
};
| D |
module mutils.entity;
import std.algorithm : clamp, max, min;
import std.format : format;
import std.meta;
import std.traits;
import mutils.container.buckets_chain;
import mutils.container.hash_map;
import mutils.container.string_intern;
import mutils.time : useconds;
import mutils.container.hash_map_tow_way;
/**
* EntityId No Reference
* Struct representing EntityId but without compile time information of EntityManager
* Used to bypass forward reference problems
**/
struct EntityIdNR {
@disable this(this);
private StringIntern name;
private StableId id;
StringIntern triggerEventOnDestroy;
bool doSerialization = true;
int type = int.max;
StableId stableIdNoAutoAdd() {
return id;
}
}
bool hasComponent(Entity, Components...)() {
bool has = true;
foreach (Component; Components) {
enum componentNum = staticIndexOf!(Component, Fields!Entity);
has = has & (componentNum != -1);
}
return has;
}
Component* getComponent(Component, Entity)(ref Entity ent) if (!isPointer!Entity) {
enum componentNum = staticIndexOf!(Component, Fields!Entity);
static assert(componentNum != -1, "Entity don't have this component.");
return &ent.tupleof[componentNum];
}
Component* getComponent(Component, Entity)(Entity* ent) {
enum componentNum = staticIndexOf!(Component, Fields!Entity);
static assert(componentNum != -1, "Entity don't have this component.");
return &ent.tupleof[componentNum];
}
struct StableId {
private @("noserialize") ulong id;
}
struct EntityManager(ENTS) {
alias Entities = ENTS.Entities;
alias FromEntities = Entities;
alias UniqueComponents = NoDuplicates!(staticMap!(Fields, Entities));
template EntitiesWithComponents(Components...) {
template EntityHasComponents(EEE) {
alias EntityHasComponents = hasComponent!(EEE, Components);
}
alias EntitiesWithComponents = Filter!(EntityHasComponents, FromEntities);
}
//Enum elements are well defined, 0->Entities[0], 1->Entities[1],
//Enum EntityEnumM {...} // form mixin
mixin(createEnumCode());
alias EntityEnum = EntityEnumM; //Alias for autocompletion
enum memoryDtId = 32;
private __gshared static HashMapTwoWay!(StringIntern, EntityId*) nameIdMap;
private __gshared static HashMapTwoWay!(StableId, EntityId*) stableIdEntityIdMap;
private __gshared static ulong lastStableId = 0;
// Keep this struct in sync with EntityIdNR
static struct EntityId {
@disable this(this);
private StringIntern entityName;
private StableId id;
StringIntern triggerEventOnDestroy;
bool doSerialization = true;
EntityEnum type = EntityEnum.none;
StableId stableId() {
if (id.id != 0) {
return id;
}
lastStableId++;
id = StableId(lastStableId);
stableIdEntityIdMap.add(id, &this);
return id;
}
StableId stableIdNoAutoAdd() {
return id;
}
StringIntern name() {
return entityName;
}
void name(StringIntern newName) {
if (newName == entityName) {
return;
}
if (newName.length != 0) {
EntityId* otherEnt = nameIdMap.get(newName, null);
if (otherEnt !is null) {
otherEnt.entityName = StringIntern();
//nameIdMap.remove(newName);
}
}
entityName = newName;
nameIdMap.add(newName, &this);
}
auto get(EntityType)() {
enum int entityEnumIndex = staticIndexOf!(EntityType, FromEntities);
static assert(entityEnumIndex != -1, "There is no entity like: " ~ EntityType.stringof);
assert(type == entityEnumIndex);
return cast(EntityType*)(cast(void*)&this + memoryDtId);
}
Return apply(alias fun, Return = void)() {
final switch (type) {
foreach (i, Ent; Entities) {
case cast(EntityEnum) i:
Ent* el = get!Ent;
if (is(Return == void)) {
fun(el);
break;
} else {
return fun(el);
}
}
}
assert(0);
}
Component* getComponent(Component)() {
static assert(staticIndexOf!(Component, UniqueComponents) != -1,
"No entity has such component");
switch (type) {
foreach (uint i, Entity; Entities) {
enum componentNum = staticIndexOf!(Component, Fields!Entity);
static if (componentNum != -1) {
case cast(EntityEnumM) i:
Entity* el = cast(Entity*)(cast(void*)&this + memoryDtId); // Inline get!Entity for debug performance
return &el.tupleof[componentNum];
}
}
default:
break;
}
assert(0, "This entity does not have this component.");
}
auto hasComponent(Components...)() {
foreach (C; Components) {
static assert(staticIndexOf!(C, UniqueComponents) != -1,
"No entity has such component");
}
switch (type) {
foreach (uint i, Entity; Entities) {
case cast(EntityEnumM) i:
enum has = mutils.entity.hasComponent!(Entity, Components);
return has;
}
default:
break;
}
assert(0, "There is no entity represented by this EntityId enum."); //TODO log
//return false;
}
}
static struct EntityData(Ent) {
EntityId entityId;
Ent entity;
static assert(entity.offsetof == memoryDtId);
alias entity this;
}
template getEntityContainer(T) {
alias getEntityContainer = BucketsChain!(EntityData!(T), 64, false);
}
alias EntityContainers = staticMap!(getEntityContainer, Entities);
EntityContainers entityContainers;
// Check compile time Entites requirements
void checkEntities() {
foreach (Entity; Entities) {
alias Components = Fields!Entity;
// No duplicate components
static assert(Components.length == NoDuplicates!(Components)
.length, "Entities should have unique components.");
}
}
@disable this(this);
void initialize() {
foreach (Comp; UniqueComponents) {
static if (hasStaticMember!(Comp, "staticInitialize")) {
Comp.staticInitialize();
}
}
}
void destroy() {
foreach (Comp; UniqueComponents) {
static if (hasStaticMember!(Comp, "staticDestroy")) {
Comp.staticDestroy();
}
}
}
size_t length() {
size_t len;
foreach (ref con; entityContainers) {
len += con.length;
}
return len;
}
void clear() {
foreach (ref con; entityContainers) {
con.clear();
}
stableIdEntityIdMap.clear();
nameIdMap.clear();
}
ref auto getContainer(EntityType)() {
enum int entityEnumIndex = staticIndexOf!(EntityType, FromEntities);
static assert(entityEnumIndex != -1, "There is no entity like: " ~ EntityType.stringof);
return entityContainers[entityEnumIndex];
}
void update() {
import mutils.benchmark;
auto timeThis = TimeThis.time();
foreach (i, ref con; entityContainers) {
foreach (ref con.ElementType el; con) {
el.update();
}
}
foreach (i, ref con; entityContainers) {
alias EntityType = typeof(con.ElementType.entity);
alias TFields = Fields!EntityType;
foreach (Type; TFields) {
static if (hasMember!(Type, "updateTimely")) {
updateTimely!(Type)(con);
}
}
}
}
void updateTimely(Component, Container)(ref Container container) {
static assert(hasMember!(Component, "updateTimely"));
alias Entity = typeof(Container.ElementType.entity);
static size_t startTime = 0;
static size_t lastIndex = 0;
static size_t lastUnitsPerFrame = 100;
//static size_t sumUnitsOfWork=0;
if (startTime == 0) {
startTime = useconds();
}
size_t currentWork;
auto range = getRange!(Entity)(lastIndex, container.length);
foreach (ref Entity ent; range) {
Component* comp = ent.getComponent!Component;
currentWork += comp.updateTimely(ent);
lastIndex += 1;
if (currentWork > lastUnitsPerFrame) {
break;
}
}
//sumUnitsOfWork+=currentWork;
if (lastIndex < container.length || startTime > useconds()) {
return;
}
size_t endTime = useconds();
size_t dt = endTime - startTime;
startTime = endTime + Component.updateTimelyPeriod;
float mul = cast(float) Component.updateTimelyPeriod / dt;
mul = (mul - 1) * 0.5 + 1;
lastUnitsPerFrame = cast(size_t)(lastUnitsPerFrame / mul);
lastUnitsPerFrame = max(10, lastUnitsPerFrame);
//sumUnitsOfWork=0;
lastIndex = 0;
}
// Adds enitiy without calling initialize on it, the user has to do it himself
EntityType* addNoInitialize(EntityType, Components...)(Components components) {
EntityData!(EntityType)* entD = getContainer!(EntityType).add();
entD.entityId.type = getEnum!EntityType;
foreach (ref comp; components) {
auto entCmp = getComponent!(typeof(comp))(entD.entity);
*entCmp = comp;
}
return &entD.entity;
}
EntityType* add(EntityType, Components...)(Components components) {
EntityType* ent = addNoInitialize!(EntityType)(components);
ent.initialize();
return ent;
}
void remove(EntityType)(EntityType* entity) {
EntityId* entId = entityToEntityId(entity);
entity.destroy();
if (entId.id.id != 0) {
stableIdEntityIdMap.remove(entId);
} else {
assert(stableIdEntityIdMap.get(entId, StableId()) == StableId());
}
if (entId.entityName != StringIntern()) {
nameIdMap.remove(entId);
} else {
assert(nameIdMap.get(entId, StringIntern()) == StringIntern());
}
getContainer!(EntityType).remove(
cast(EntityData!(EntityType)*)(cast(void*) entity - memoryDtId));
}
void remove(EntityId* entityId) {
foreach (i, Entity; Entities) {
if (entityId.type == i) {
Entity* ent = entityId.get!Entity;
remove(ent);
return;
}
}
assert(0);
}
// Based on pointer of component checks its base type
EntityId* getEntityFromComponent(Component)(ref Component c) {
alias EntsWithComp = EntitiesWithComponents!(Component);
static assert(EntsWithComp.length != 0, "There are no entities with this component.");
foreach (Entity; EntsWithComp) {
auto container = &getContainer!(Entity)();
foreach (ref bucket; container.buckets[]) {
if (!bucket.isIn(cast(container.ElementType*)&c)) {
continue;
}
enum componentNum = staticIndexOf!(Component, Fields!Entity);
Entity el;
enum ptrDt = el.tupleof[componentNum].offsetof;
Entity* ent = cast(Entity*)(cast(void*)&c - ptrDt);
return entityToEntityId(ent);
}
}
assert(0);
}
// When (id == 0 && makeDefault !is null ) new id is assigned and Entity is created by makeDefault function
EntityId* getEntityByStableId(ref StableId id, EntityId* function() makeDefault = null) {
assert(id.id <= lastStableId);
EntityId* ent = stableIdEntityIdMap.get(id, null);
if (ent == null && makeDefault !is null) {
ent = makeDefault();
id = ent.stableId;
}
return ent;
}
EntityId* getEntityByName(StringIntern name) {
EntityId* ent = nameIdMap.get(name, null);
return ent;
}
void removeByStableId(StableId id) {
if (id.id == 0) {
return;
}
EntityId* ent = stableIdEntityIdMap.get(id, null);
if (ent !is null) {
remove(ent);
}
}
auto getRange(Entity)(size_t start, size_t end) {
auto container = &getContainer!Entity();
assert(end <= container.length);
return Range!(Entity)(container, start, end);
}
struct Range(Entity) {
getEntityContainer!Entity* container;
size_t start;
size_t end;
size_t length() {
return end - start;
}
int opApply(Dg)(scope Dg dg) {
int result;
// Can be improved: skip whole containers
int i;
foreach (ref EntityData!(Entity) el; *container) {
scope (exit)
i++;
if (i < start) {
continue;
}
if (i >= end) {
break;
}
result = dg(el.entity);
if (result)
break;
}
return result;
}
}
static EntityId* entityToEntityId(EntityType)(EntityType* el) {
static assert(!isPointer!(EntityType),
"Wrong type passed. Maybe pointer to pointer was passed?");
static assert(staticIndexOf!(EntityType, FromEntities) != -1,
"There is no entity like: " ~ EntityType.stringof);
EntityId* id = cast(EntityId*)(cast(void*) el - memoryDtId);
assert(id.type < Entities.length);
return id;
}
static string getEntityEnumName(EntityEnum type) {
foreach (i, Entity; Entities) {
if (type == i)
return Entity.stringof;
}
return "!unknown";
}
/////////////////////////
/////// Enum code //////
/////////////////////////
static EntityEnum getEnum(EntityType)() {
enum int entityEnumIndex = staticIndexOf!(EntityType, FromEntities);
static assert(entityEnumIndex != -1, "There is no entity like: " ~ EntityType.stringof);
return cast(EntityEnum) entityEnumIndex;
}
// Order if enum is important, indexing of objects is made out of it
static string createEnumCode() {
string code = "enum EntityEnumM:int{";
foreach (i, Entity; Entities) {
code ~= format("_%d=%d,", i, i);
}
code ~= format("none");
code ~= "}";
return code;
}
}
unittest {
static int entitiesNum = 0;
static struct EntityTurrent {
int a;
void update() {
}
void initialize() {
entitiesNum++;
}
void destroy() {
entitiesNum--;
}
}
static struct EntityTurrent2 {
int a;
void update() {
}
void initialize() {
entitiesNum++;
}
void destroy() {
entitiesNum--;
}
}
static struct EntitySomething {
int a;
void update() {
}
void initialize() {
entitiesNum++;
}
void destroy() {
entitiesNum--;
}
}
static struct ENTS {
alias Entities = AliasSeq!(EntityTurrent, EntityTurrent2, EntitySomething);
}
alias TetstEntityManager = EntityManager!(ENTS);
TetstEntityManager entitiesManager;
entitiesManager.initialize;
assert(entitiesManager.getContainer!(EntityTurrent).length == 0);
assert(entitiesManager.getContainer!(EntityTurrent2).length == 0);
EntityTurrent* ret1 = entitiesManager.add!(EntityTurrent)(3);
EntityTurrent2* ret2 = entitiesManager.add!(EntityTurrent2)();
assert(*ret1.getComponent!int == 3);
assert(*ret2.getComponent!int == 0);
assert(entitiesManager.getContainer!(EntityTurrent).length == 1);
assert(entitiesManager.getContainer!(EntityTurrent2).length == 1);
assert(entitiesManager.getEntityFromComponent(ret1.a)
.type == entitiesManager.getEnum!EntityTurrent);
assert(entitiesNum == 2);
entitiesManager.remove(ret1);
entitiesManager.remove(ret2);
assert(entitiesManager.getContainer!(EntityTurrent).length == 0);
assert(entitiesManager.getContainer!(EntityTurrent2).length == 0);
assert(entitiesNum == 0);
}
| D |
module nn_manager_mod_reinforcement;
import std.algorithm.comparison;
import std.file;
import std.random;
import nn_manager;
import record_keeper;
import and.api;
import and.platform;
class NNManagerModReinforcement : NNManagerBase
{
real[] _training_scores; // array of what the score actually was a time after an order was executed, passed to the NN so it can calculate error
int[] _output_records; // array of which choice was made for each order
this(char[] filename, IActivationFunction actfn)
{
super(filename, actfn);
_epoch_limit = 15_000;
_random_scaling = .1;
}
override void do_init(int num_inputs, int[] num_hidden_neurons_in_layer, int num_outputs)
{
//make layers and NN
IActivationFunction act_fn = _activation_function;
IActivationFunction output_act_fn = _activation_function; //new TanhActivationFunction();
Layer input = new Layer(num_inputs,0);
Layer[] hidden = [ new Layer(num_hidden_neurons_in_layer[0], num_inputs, act_fn) ];
foreach (int i; 1..num_hidden_neurons_in_layer.length)
{
hidden ~= new Layer(num_hidden_neurons_in_layer[i], num_hidden_neurons_in_layer[i-1], act_fn);
}
Layer output = new Layer(num_outputs, num_hidden_neurons_in_layer[$-1], output_act_fn);
_neural_net = new NeuralNetwork(input, hidden, output);
_cost = new SSE(); // sum-squared errors
_backprop = new ModifiedReinforcementBackPropagation(_neural_net, _cost); //TODO: parameterize
//configure_backprop(); // asjust_nn_params is called from ai
}
// mostly the same as the superclass's load_net, but it makes a different type of backprop object
// TODO: could use a factory method + overridden helper to avoid copy-pasta?
override bool load_net()
{
if(exists(_filename))
{
_neural_net = loadNetwork(getcwd() ~ "\\" ~ _filename);
_cost = new SSE();
_backprop = new ModifiedReinforcementBackPropagation(_neural_net,_cost);
//configure_backprop(); //TODO: do we define configure backprop?
return true;
} else {
return false;
}
}
override void make_training_data_from_own_record( ref CompletedRecord record)
{
make_training_data_internal(record);
}
override void make_training_data_from_opponent_record(ref CompletedRecord record)
{
make_training_data_internal(record);
}
// we treat our own records and opponent's records the same, so we do both in one place.
void make_training_data_internal(ref CompletedRecord record)
{
if (_ai.getResultFromRecord(record) == -1)
return;
for(int i = 0; i < record.num_duplicates; ++i)
{
_training_input ~= record.inputs;
_output_records ~= _ai.getResultFromRecord(record);
_training_scores ~= record.delta_score; //TODO: make it not always use delta_score
}
}
void do_training(real[][] inputs, int[] output_records, real[] training_scores)
{
assert(inputs.length == output_records.length);
if( inputs.length == 0 )
{
writeln("No Training Data for Neural Network!");
return;
}
int epochs = max(inputs.length, _epoch_limit);
/+to!int( epoch_factor / inputs.length );
if (epochs == 0) epochs = 1=;+/
writefln("Training Mod-Reinforcement Network, %d epochs, %d records", epochs, output_records.length);
_backprop.setProgressCallback(&callback, 500 );
_backprop.epochs = epochs;
to!ModifiedReinforcementBackPropagation(_backprop).train(inputs, training_scores, output_records);
writeln("done training");
}
override void train_net()
{
do_training(_training_input, _output_records, _training_scores);
}
override void cleanup()
{
_training_scores.length = 0;
_output_records .length = 0;
}
override void adjust_NN_params()
{
//_backprop.learningRate *= 2.0; //TODO: is this called at a reasonable time? //TODO: make this bigger?
_backprop.learningRate = 0.01;//TODO: adjust based on input function, ReLUs need a much lower value
_backprop.errorThreshold = .1; // we can actually expect more accuracy from the non-history version because the record-sets are smaller. (trying less accuracy right now to avoid overfitting).
}
override string get_training_header(){
return format("");
}
} | D |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
module hunt.pool.SwallowedExceptionListener;
/**
* Pools that unavoidably swallow exceptions may be configured with an instance
* of this listener so the user may receive notification of when this happens.
* The listener should not throw an exception when called but pools calling
* listeners should protect themselves against exceptions anyway.
*
*/
interface SwallowedExceptionListener {
/**
* This method is called every time the implementation unavoidably swallows
* an exception.
*
* @param e The exception that was swallowed
*/
void onSwallowException(Exception e);
}
| D |
module gfm.integers;
public import gfm.integers.half,
gfm.integers.wideint,
gfm.integers.rational,
gfm.integers.fixedpoint;
| D |
/Users/baixuefei/Desktop/workspace/Test_Swift/TestSwift/SwiftWith3rdLibDemoTry/DerivedData/SwiftWith3rdLibDemoTry/Build/Intermediates/SwiftWith3rdLibDemoTry.build/Debug-iphonesimulator/SwiftWith3rdLibDemoTry.build/Objects-normal/x86_64/ViewController.o : /Users/baixuefei/Desktop/workspace/Test_Swift/TestSwift/SwiftWith3rdLibDemoTry/SwiftWith3rdLibDemoTry/ViewController.swift /Users/baixuefei/Desktop/workspace/Test_Swift/TestSwift/SwiftWith3rdLibDemoTry/SwiftWith3rdLibDemoTry/AppDelegate.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule
/Users/baixuefei/Desktop/workspace/Test_Swift/TestSwift/SwiftWith3rdLibDemoTry/DerivedData/SwiftWith3rdLibDemoTry/Build/Intermediates/SwiftWith3rdLibDemoTry.build/Debug-iphonesimulator/SwiftWith3rdLibDemoTry.build/Objects-normal/x86_64/ViewController~partial.swiftmodule : /Users/baixuefei/Desktop/workspace/Test_Swift/TestSwift/SwiftWith3rdLibDemoTry/SwiftWith3rdLibDemoTry/ViewController.swift /Users/baixuefei/Desktop/workspace/Test_Swift/TestSwift/SwiftWith3rdLibDemoTry/SwiftWith3rdLibDemoTry/AppDelegate.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule
/Users/baixuefei/Desktop/workspace/Test_Swift/TestSwift/SwiftWith3rdLibDemoTry/DerivedData/SwiftWith3rdLibDemoTry/Build/Intermediates/SwiftWith3rdLibDemoTry.build/Debug-iphonesimulator/SwiftWith3rdLibDemoTry.build/Objects-normal/x86_64/ViewController~partial.swiftdoc : /Users/baixuefei/Desktop/workspace/Test_Swift/TestSwift/SwiftWith3rdLibDemoTry/SwiftWith3rdLibDemoTry/ViewController.swift /Users/baixuefei/Desktop/workspace/Test_Swift/TestSwift/SwiftWith3rdLibDemoTry/SwiftWith3rdLibDemoTry/AppDelegate.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule
| D |
/* apk_package.h - Alpine Package Keeper (APK)
*
* Copyright (C) 2005-2008 Natanael Copa <[email protected]>
* Copyright (C) 2008-2011 Timo Teräs <[email protected]>
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation. See http://www.gnu.org/ for details.
*/
module deimos.apk_toolsd.apk_package;
import core.stdc.time;
import core.stdc.stdint;
import deimos.openssl.evp;
import deimos.openssl.ossl_typ;
import deimos.apk_toolsd.apk_blob;
import deimos.apk_toolsd.apk_database;
import deimos.apk_toolsd.apk_defines;
import deimos.apk_toolsd.apk_hash;
import deimos.apk_toolsd.apk_io;
import deimos.apk_toolsd.apk_provider_data;
import deimos.apk_toolsd.apk_solver_data;
extern (C):
nothrow:
enum APK_SCRIPT_INVALID = -1;
enum APK_SCRIPT_PRE_INSTALL = 0;
enum APK_SCRIPT_POST_INSTALL = 1;
enum APK_SCRIPT_PRE_DEINSTALL = 2;
enum APK_SCRIPT_POST_DEINSTALL = 3;
enum APK_SCRIPT_PRE_UPGRADE = 4;
enum APK_SCRIPT_POST_UPGRADE = 5;
enum APK_SCRIPT_TRIGGER = 6;
enum APK_SCRIPT_MAX = 7;
enum APK_SIGN_NONE = 0;
enum APK_SIGN_VERIFY = 1;
enum APK_SIGN_VERIFY_IDENTITY = 2;
enum APK_SIGN_GENERATE = 4;
enum APK_SIGN_VERIFY_AND_GENERATE = 5;
enum APK_DEP_IRRELEVANT = 0x01;
enum APK_DEP_SATISFIES = 0x02;
enum APK_DEP_CONFLICTS = 0x04;
enum APK_FOREACH_INSTALLED = 0x10;
enum APK_FOREACH_MARKED = 0x20;
enum APK_FOREACH_NULL_MATCHES_ALL = 0x40;
enum APK_FOREACH_DEP = 0x80;
enum APK_FOREACH_GENID_MASK = 0xffffff00;
struct apk_sign_ctx
{
import std.bitmanip : bitfields;
int keys_fd;
int action;
const(EVP_MD)* md;
int num_signatures;
mixin(bitfields!(int, "control_started", 1, int, "data_started", 1, int,
"has_data_checksum", 1, int, "control_verified", 1, int,
"data_verified", 1, uint, "", 3));
char[EVP_MAX_MD_SIZE] data_checksum;
apk_checksum identity;
EVP_MD_CTX* mdctx;
struct _Anonymous_0
{
apk_blob_t data;
EVP_PKEY* pkey;
char* identity;
}
_Anonymous_0 signature;
}
struct apk_dependency
{
import std.bitmanip : bitfields;
apk_name* name;
apk_blob_t* version_;
mixin(bitfields!(uint, "broken", 1, uint, "repository_tag", 6, uint,
"conflict", 1, uint, "result_mask", 4, uint, "fuzzy", 1, uint, "", 3));
}
struct apk_dependency_array
{
@property apk_dependency[] item() nothrow
{
return this.m_item.ptr[0 .. this.num];
}
size_t num;
apk_dependency[0] m_item;
}
void apk_dependency_array_init(apk_dependency_array** a);
void apk_dependency_array_free(apk_dependency_array** a);
void apk_dependency_array_resize(apk_dependency_array** a, size_t size);
void apk_dependency_array_copy(apk_dependency_array** a, apk_dependency_array* b);
apk_dependency* apk_dependency_array_add(apk_dependency_array** a);
struct apk_installed_package
{
import std.bitmanip : bitfields;
apk_package* pkg;
list_head installed_pkgs_list;
list_head trigger_pkgs_list;
hlist_head owned_dirs;
apk_blob_t[APK_SCRIPT_MAX] script;
apk_string_array* triggers;
apk_string_array* pending_triggers;
apk_dependency_array* replaces;
ushort replaces_priority;
mixin(bitfields!(uint, "repository_tag", 6, uint, "run_all_triggers", 1,
uint, "broken_files", 1, uint, "broken_script", 1, uint,
"broken_xattr", 1, uint, "", 6));
}
struct apk_package
{
import std.bitmanip : bitfields;
apk_hash_node hash_node;
union
{
apk_solver_package_state ss;
struct
{
uint foreach_genid;
union
{
int state_int;
void* state_ptr;
}
}
}
apk_name* name;
apk_installed_package* ipkg;
apk_blob_t* version_;
apk_blob_t* arch;
apk_blob_t* license;
apk_blob_t* origin;
apk_blob_t* maintainer;
char* url;
char* description;
char* commit;
char* filename;
apk_dependency_array* depends;
apk_dependency_array* install_if;
apk_dependency_array* provides;
size_t installed_size;
size_t size;
time_t build_time;
ushort provider_priority;
align(1) mixin(bitfields!(uint, "repos", 32, uint, "marked", 1, uint,
"uninstallable", 1, uint, "cached_non_repository", 1, uint, "", 29));
apk_checksum csum;
}
version (X86_64)
{
static assert(apk_package.sizeof == 192);
}
struct apk_package_array
{
@property apk_package*[] item() nothrow
{
return this.m_item.ptr[0 .. this.num];
}
size_t num;
apk_package*[0] m_item;
}
void apk_package_array_init(apk_package_array** a);
void apk_package_array_free(apk_package_array** a);
void apk_package_array_resize(apk_package_array** a, size_t size);
void apk_package_array_copy(apk_package_array** a, apk_package_array* b);
apk_package** apk_package_array_add(apk_package_array** a);
extern __gshared const(char)** apk_script_types;
void apk_sign_ctx_init(apk_sign_ctx* ctx, int action, apk_checksum* identity, int keys_fd);
void apk_sign_ctx_free(apk_sign_ctx* ctx);
int apk_sign_ctx_process_file(apk_sign_ctx* ctx, const(apk_file_info)* fi, apk_istream* is_);
int apk_sign_ctx_parse_pkginfo_line(void* ctx, apk_blob_t line);
int apk_sign_ctx_verify_tar(void* ctx, const(apk_file_info)* fi, apk_istream* is_);
int apk_sign_ctx_mpart_cb(void* ctx, int part, apk_blob_t blob);
void apk_dep_from_pkg(apk_dependency* dep, apk_database* db, apk_package* pkg);
int apk_dep_is_materialized(apk_dependency* dep, apk_package* pkg);
int apk_dep_is_provided(apk_dependency* dep, apk_provider* p);
int apk_dep_analyze(apk_dependency* dep, apk_package* pkg);
char* apk_dep_snprintf(char* buf, size_t n, apk_dependency* dep);
void apk_blob_push_dep(apk_blob_t* to, apk_database*, apk_dependency* dep);
void apk_blob_push_deps(apk_blob_t* to, apk_database*, apk_dependency_array* deps);
void apk_blob_pull_dep(apk_blob_t* from, apk_database*, apk_dependency*);
void apk_blob_pull_deps(apk_blob_t* from, apk_database*, apk_dependency_array**);
int apk_deps_write(apk_database* db, apk_dependency_array* deps,
apk_ostream* os, apk_blob_t separator);
void apk_deps_add(apk_dependency_array** depends, apk_dependency* dep);
void apk_deps_del(apk_dependency_array** deps, apk_name* name);
int apk_script_type(const(char)* name);
apk_package* apk_pkg_get_installed(apk_name* name);
apk_package* apk_pkg_new();
int apk_pkg_read(apk_database* db, const(char)* name, apk_sign_ctx* ctx, apk_package** pkg);
void apk_pkg_free(apk_package* pkg);
int apk_pkg_parse_name(apk_blob_t apkname, apk_blob_t* name, apk_blob_t* version_);
int apk_pkg_add_info(apk_database* db, apk_package* pkg, char field, apk_blob_t value);
apk_installed_package* apk_pkg_install(apk_database* db, apk_package* pkg);
void apk_pkg_uninstall(apk_database* db, apk_package* pkg);
int apk_ipkg_add_script(apk_installed_package* ipkg, apk_istream* is_, uint type, uint size);
void apk_ipkg_run_script(apk_installed_package* ipkg, apk_database* db, uint type, char** argv);
apk_package* apk_pkg_parse_index_entry(apk_database* db, apk_blob_t entry);
int apk_pkg_write_index_entry(apk_package* pkg, apk_ostream* os);
int apk_pkg_version_compare(apk_package* a, apk_package* b);
uint apk_foreach_genid();
int apk_pkg_match_genid(apk_package* pkg, uint match);
alias apkPkgForeachMatchingDependencyCallback = extern (C) void function(
apk_package* pkg0, apk_dependency* dep0, apk_package* pkg, void* ctx) nothrow;
void apk_pkg_foreach_matching_dependency(apk_package* pkg, apk_dependency_array* deps,
uint match, apk_package* mpkg, apkPkgForeachMatchingDependencyCallback cb, void* ctx);
void apk_pkg_foreach_reverse_dependency(apk_package* pkg, uint match,
apkPkgForeachMatchingDependencyCallback cb, void* ctx);
| D |
module gui.richcli;
/* A net client wrapper that:
* - writes messages to a GUI console,
* - remembers the most recently received level and permu.
*
* This alias-this'se to INetClient. To send a level, tell it to that class.
*/
import std.string;
import basics.globals : homepageURL;
import file.language;
import gui.console;
import level.level;
import net.iclient;
import net.permu;
import net.phyu;
import net.structs;
import net.versioning;
class RichClient {
private:
INetClient _inner; // should be treated as owned, but externally c'tored
Console _console; // not owned
Level _level;
Permu _permu;
public string unsentChat; // carry unsent text between Lobby/Game
public:
this(INetClient aInner, Console aConsole)
{
assert (aInner);
_inner = aInner;
console = aConsole;
onCannotConnect(null);
onVersionMisfit(null);
onConnectionLost(null);
onPeerDisconnect(null);
onChatMessage(null);
onPeerJoinsRoom(null);
onPeerLeavesRoomTo(null);
onWeChangeRoom(null);
onGameStart(null);
}
alias inner this;
@property inout(INetClient) inner() inout { return _inner; }
@property inout(Console) console() inout { return _console; }
@property inout(Level) level() inout { return _level; }
@property inout(Permu) permu() inout { return _permu; }
@property void console(Console c)
{
assert (c);
if (_console)
c.lines = _console.lines;
_console = c;
}
bool mayWeDeclareReady() const
{
return _inner.mayWeDeclareReady && _level && _level.good;
}
@property void onCannotConnect(void delegate() f)
{
_inner.onCannotConnect = delegate void()
{
_console.add(Lang.netChatYouCannotConnect.transl);
if (f)
f();
};
};
@property void onVersionMisfit(void delegate(Version serverVersion) f)
{
_inner.onVersionMisfit = delegate void(Version serverVersion)
{
_console.add(serverVersion > gameVersion
? Lang.netChatWeTooOld.transl : Lang.netChatWeTooNew.transl);
_console.add("%s %s. %s %s.".format(
Lang.netChatVersionYours.transl, gameVersion,
Lang.netChatVersionServer.transl, serverVersion.compatibles));
_console.add("%s %s".format(
Lang.netChatPleaseDownload.transl, homepageURL));
if (f)
f(serverVersion);
};
}
@property void onConnectionLost(void delegate() f)
{
_inner.onConnectionLost = delegate void()
{
_console.add(Lang.netChatYouLostConnection.transl);
if (f)
f();
};
};
@property void onChatMessage(void delegate(string, string) f)
{
_inner.onChatMessage = delegate void(string name, string chat)
{
_console.addWhite("%s: %s".format(name, chat));
if (f)
f(name, chat);
};
}
@property void onPeerDisconnect(void delegate(string) f)
{
_inner.onPeerDisconnect = delegate void(string name)
{
_console.add("%s %s".format(name,
Lang.netChatPeerDisconnected.transl));
if (f)
f(name);
};
}
@property void onPeerJoinsRoom(void delegate(const(Profile*)) f)
{
_inner.onPeerJoinsRoom = delegate void(const(Profile*) profile)
{
assert (profile, "the network shouldn't send null pointers");
if (profile.room == 0)
_console.add("%s %s".format(profile.name,
Lang.netChatPlayerInLobby.transl));
else
_console.add("%s %s%d%s".format(profile.name,
Lang.netChatPlayerInRoom.transl, profile.room,
Lang.netChatPlayerInRoom2.transl));
if (f)
f(profile);
};
}
@property void onPeerLeavesRoomTo(void delegate(string, Room) f)
{
_inner.onPeerLeavesRoomTo = delegate void(string name, Room toRoom)
{
if (toRoom == 0)
_console.add("%s %s".format(name,
Lang.netChatPlayerOutLobby.transl));
else
_console.add("%s %s%d%s".format(name,
Lang.netChatPlayerOutRoom.transl, toRoom,
Lang.netChatPlayerOutRoom2.transl));
if (f)
f(name, toRoom);
};
}
@property void onWeChangeRoom(void delegate(Room) f)
{
_inner.onWeChangeRoom = delegate void(Room toRoom)
{
_console.add(toRoom != 0
? "%s%d%s".format(Lang.netChatWeInRoom.transl, toRoom,
Lang.netChatWeInRoom2.transl)
: Lang.netChatWeInLobby.transl);
if (f)
f(toRoom);
};
}
@property void onLevelSelect(void delegate(string, const(ubyte[])) f)
{
_inner.onLevelSelect = delegate void(string plName, const(ubyte[]) lev)
{
_level = new Level(cast (immutable(void)[]) lev);
// We don't write to console, the lobby will do that.
// Reason: We don't want to write this during play.
if (f)
f(plName, lev);
};
}
@property void onGameStart(void delegate(Permu) f)
{
_inner.onGameStart = delegate void(Permu pe)
{
_permu = pe;
if (f)
f(pe);
};
}
}
| D |
/home/fguevara/MyRepos/Rust_Tutorial/RandomPass/target/debug/deps/RandomPass-5fb7efee6aaf0150: src/main.rs
/home/fguevara/MyRepos/Rust_Tutorial/RandomPass/target/debug/deps/RandomPass-5fb7efee6aaf0150.d: src/main.rs
src/main.rs:
| D |
/*
* This file is part of gtkD.
*
* gtkD is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version.
*
* gtkD 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 Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with gtkD; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
// generated automatically - do not change
// find conversion definition on APILookup.txt
// implement new conversion functionalities on the wrap.utils pakage
/*
* Conversion parameters:
* inFile = GtkFixed.html
* outPack = gtk
* outFile = Fixed
* strct = GtkFixed
* realStrct=
* ctorStrct=
* clss = Fixed
* interf =
* class Code: No
* interface Code: No
* template for:
* extend =
* implements:
* prefixes:
* - gtk_fixed_
* - gtk_
* omit structs:
* omit prefixes:
* omit code:
* omit signals:
* imports:
* - gtkD.gtk.Widget
* structWrap:
* - GtkWidget* -> Widget
* module aliases:
* local aliases:
* overrides:
*/
module gtkD.gtk.Fixed;
public import gtkD.gtkc.gtktypes;
private import gtkD.gtkc.gtk;
private import gtkD.glib.ConstructionException;
private import gtkD.gtk.Widget;
private import gtkD.gtk.Container;
/**
* Description
* The GtkFixed widget is a container which can place child widgets at fixed
* positions and with fixed sizes, given in pixels. GtkFixed performs no
* automatic layout management.
* For most applications, you should not use this container! It keeps
* you from having to learn about the other GTK+ containers, but it
* results in broken applications.
* With GtkFixed, the following things will result in truncated text,
* overlapping widgets, and other display bugs:
* Themes, which may change widget sizes.
* Fonts other than the one you used to write the app will of
* course change the size of widgets containing text; keep in mind that
* users may use a larger font because of difficulty reading the default,
* or they may be using Windows or the framebuffer port of GTK+, where
* different fonts are available.
* Translation of text into other languages changes its size. Also,
* display of non-English text will use a different font in many cases.
* In addition, the fixed widget can't properly be mirrored in
* right-to-left languages such as Hebrew and Arabic. i.e. normally GTK+
* will flip the interface to put labels to the right of the thing they
* label, but it can't do that with GtkFixed. So your application will
* not be usable in right-to-left languages.
* Finally, fixed positioning makes it kind of annoying to add/remove GUI
* elements, since you have to reposition all the other elements. This is
* a long-term maintenance problem for your application.
* If you know none of these things are an issue for your application,
* and prefer the simplicity of GtkFixed, by all means use the
* widget. But you should be aware of the tradeoffs.
*/
public class Fixed : Container
{
/** the main Gtk struct */
protected GtkFixed* gtkFixed;
public GtkFixed* getFixedStruct()
{
return gtkFixed;
}
/** the main Gtk struct as a void* */
protected override void* getStruct()
{
return cast(void*)gtkFixed;
}
/**
* Sets our main struct and passes it to the parent class
*/
public this (GtkFixed* gtkFixed)
{
if(gtkFixed is null)
{
this = null;
return;
}
//Check if there already is a D object for this gtk struct
void* ptr = getDObject(cast(GObject*)gtkFixed);
if( ptr !is null )
{
this = cast(Fixed)ptr;
return;
}
super(cast(GtkContainer*)gtkFixed);
this.gtkFixed = gtkFixed;
}
/**
*/
/**
* Creates a new GtkFixed.
* Throws: ConstructionException GTK+ fails to create the object.
*/
public this ()
{
// GtkWidget* gtk_fixed_new (void);
auto p = gtk_fixed_new();
if(p is null)
{
throw new ConstructionException("null returned by gtk_fixed_new()");
}
this(cast(GtkFixed*) p);
}
/**
* Adds a widget to a GtkFixed container at the given position.
* Params:
* widget = the widget to add.
* x = the horizontal position to place the widget at.
* y = the vertical position to place the widget at.
*/
public void put(Widget widget, int x, int y)
{
// void gtk_fixed_put (GtkFixed *fixed, GtkWidget *widget, gint x, gint y);
gtk_fixed_put(gtkFixed, (widget is null) ? null : widget.getWidgetStruct(), x, y);
}
/**
* Moves a child of a GtkFixed container to the given position.
* Params:
* widget = the child widget.
* x = the horizontal position to move the widget to.
* y = the vertical position to move the widget to.
*/
public void move(Widget widget, int x, int y)
{
// void gtk_fixed_move (GtkFixed *fixed, GtkWidget *widget, gint x, gint y);
gtk_fixed_move(gtkFixed, (widget is null) ? null : widget.getWidgetStruct(), x, y);
}
/**
* Gets whether the GtkFixed has its own GdkWindow.
* See gtk_fixed_set_has_window().
* Returns: TRUE if fixed has its own window.
*/
public int getHasWindow()
{
// gboolean gtk_fixed_get_has_window (GtkFixed *fixed);
return gtk_fixed_get_has_window(gtkFixed);
}
/**
* Sets whether a GtkFixed widget is created with a separate
* GdkWindow for widget->window or not. (By default, it will be
* created with no separate GdkWindow). This function must be called
* while the GtkFixed is not realized, for instance, immediately after the
* window is created.
* This function was added to provide an easy migration path for
* older applications which may expect GtkFixed to have a separate window.
* Params:
* hasWindow = TRUE if a separate window should be created
* Child Property Details
* The "x" child property
* "x" gint : Read / Write
* X position of child widget.
* Default value: 0
*/
public void setHasWindow(int hasWindow)
{
// void gtk_fixed_set_has_window (GtkFixed *fixed, gboolean has_window);
gtk_fixed_set_has_window(gtkFixed, hasWindow);
}
}
| D |
module game.components.position_component;
import game_engine.ecs.component;
import game_engine.utils.vector;
class PositionComponent : Component
{
enum ID = typeof(this).stringof;
Vec4 shape;
Vec2 velocity;
this(Vec4 shape = Vec4(0, 0, 10.0, 10.0), Vec2 velocity = Vec2(0, 0))
{
this.shape = shape;
this.velocity = velocity;
}
override string componentID() const
{
return ID;
}
Vec2 position()
{
return shape.xy;
}
Vec2 size()
{
return shape.zw;
}
ref float xPos()
{
return shape.x;
}
ref float yPos()
{
return shape.y;
}
ref float width()
{
return shape.z;
}
ref float height()
{
return shape.w;
}
ref float xSpeed()
{
return velocity.x;
}
ref float ySpeed()
{
return velocity.y;
}
@property
bool moving() const
{
return !stationary;
}
@property
bool stationary() const
{
return velocity.x == 0 && velocity.y == 0;
}
}
| D |
/Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DerivedData/DetectiveBoard/Build/Intermediates.noindex/DetectiveBoard.build/Debug-iphonesimulator/DetectiveBoard.build/Objects-normal/x86_64/AppDelegate.o : /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/Tree.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/RoundedCircleStyle.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/Line.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/SceneDelegate.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/AppDelegate.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/Unique.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/Diagram.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/CollectDict.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/BinaryTreeView.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/ContentView.swift /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreData.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreImage.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/QuartzCore.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Metal.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/os.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/UIKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/SwiftUI.framework/Modules/SwiftUI.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreData.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/os.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftUI.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/os.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DerivedData/DetectiveBoard/Build/Intermediates.noindex/DetectiveBoard.build/Debug-iphonesimulator/DetectiveBoard.build/Objects-normal/x86_64/AppDelegate~partial.swiftmodule : /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/Tree.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/RoundedCircleStyle.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/Line.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/SceneDelegate.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/AppDelegate.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/Unique.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/Diagram.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/CollectDict.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/BinaryTreeView.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/ContentView.swift /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreData.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreImage.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/QuartzCore.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Metal.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/os.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/UIKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/SwiftUI.framework/Modules/SwiftUI.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreData.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/os.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftUI.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/os.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DerivedData/DetectiveBoard/Build/Intermediates.noindex/DetectiveBoard.build/Debug-iphonesimulator/DetectiveBoard.build/Objects-normal/x86_64/AppDelegate~partial.swiftdoc : /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/Tree.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/RoundedCircleStyle.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/Line.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/SceneDelegate.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/AppDelegate.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/Unique.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/Diagram.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/CollectDict.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/BinaryTreeView.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/ContentView.swift /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreData.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreImage.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/QuartzCore.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Metal.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/os.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/UIKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/SwiftUI.framework/Modules/SwiftUI.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreData.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/os.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftUI.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/os.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
| D |
/*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
module gobject.gtype;
import gobject.gvalue;
import glib;
alias G_TYPE_FUNDAMENTAL = g_type_fundamental;
private enum G_TYPE_FUNDAMENTAL_SHIFT = 2;
GType G_TYPE_MAKE_FUNDAMENTAL(X)(X x) { return x << G_TYPE_FUNDAMENTAL_SHIFT; }
enum GType G_TYPE_FUNDAMENTAL_MAX = 255 << G_TYPE_FUNDAMENTAL_SHIFT;
enum G_TYPE_INVALID = G_TYPE_MAKE_FUNDAMENTAL (0);
enum G_TYPE_NONE = G_TYPE_MAKE_FUNDAMENTAL (1);
enum G_TYPE_INTERFACE = G_TYPE_MAKE_FUNDAMENTAL (2);
enum G_TYPE_CHAR = G_TYPE_MAKE_FUNDAMENTAL (3);
enum G_TYPE_UCHAR = G_TYPE_MAKE_FUNDAMENTAL (4);
enum G_TYPE_BOOLEAN = G_TYPE_MAKE_FUNDAMENTAL (5);
enum G_TYPE_INT = G_TYPE_MAKE_FUNDAMENTAL (6);
enum G_TYPE_UINT = G_TYPE_MAKE_FUNDAMENTAL (7);
enum G_TYPE_LONG = G_TYPE_MAKE_FUNDAMENTAL (8);
enum G_TYPE_ULONG = G_TYPE_MAKE_FUNDAMENTAL (9);
enum G_TYPE_INT64 = G_TYPE_MAKE_FUNDAMENTAL (10);
enum G_TYPE_UINT64 = G_TYPE_MAKE_FUNDAMENTAL (11);
enum G_TYPE_ENUM = G_TYPE_MAKE_FUNDAMENTAL (12);
enum G_TYPE_FLAGS = G_TYPE_MAKE_FUNDAMENTAL (13);
enum G_TYPE_FLOAT = G_TYPE_MAKE_FUNDAMENTAL (14);
enum G_TYPE_DOUBLE = G_TYPE_MAKE_FUNDAMENTAL (15);
enum G_TYPE_STRING = G_TYPE_MAKE_FUNDAMENTAL (16);
enum G_TYPE_POINTER = G_TYPE_MAKE_FUNDAMENTAL (17);
enum G_TYPE_BOXED = G_TYPE_MAKE_FUNDAMENTAL (18);
enum G_TYPE_PARAM = G_TYPE_MAKE_FUNDAMENTAL (19);
enum G_TYPE_OBJECT = G_TYPE_MAKE_FUNDAMENTAL (20);
enum G_TYPE_VARIANT = G_TYPE_MAKE_FUNDAMENTAL (21);
enum G_TYPE_RESERVED_GLIB_FIRST = (22);
enum G_TYPE_RESERVED_GLIB_LAST = (31);
enum G_TYPE_RESERVED_BSE_FIRST = (32);
enum G_TYPE_RESERVED_BSE_LAST = (48);
enum G_TYPE_RESERVED_USER_FIRST = (49);
auto G_TYPE_IS_FUNDAMENTAL(GType t) { return t <= G_TYPE_FUNDAMENTAL_MAX; }
auto G_TYPE_IS_DERIVED(GType t) { return t > G_TYPE_FUNDAMENTAL_MAX; }
auto G_TYPE_IS_INTERFACE(GType t) { return G_TYPE_FUNDAMENTAL(t) == G_TYPE_INTERFACE; }
auto G_TYPE_IS_CLASSED(GType t) { return g_type_test_flags(t, GTypeFundamentalFlags.G_TYPE_FLAG_CLASSED); }
auto G_TYPE_IS_INSTANTIATABLE(GType t) { return g_type_test_flags(t, GTypeFundamentalFlags.G_TYPE_FLAG_INSTANTIATABLE); }
auto G_TYPE_IS_DERIVABLE(GType t) { return g_type_test_flags(t, GTypeFundamentalFlags.G_TYPE_FLAG_DERIVABLE); }
auto G_TYPE_IS_DEEP_DERIVABLE(GType t) { return g_type_test_flags(t, GTypeFundamentalFlags.G_TYPE_FLAG_DEEP_DERIVABLE); }
auto G_TYPE_IS_ABSTRACT(GType t) { return g_type_test_flags(t, GTypeFlags.G_TYPE_FLAG_ABSTRACT); }
auto G_TYPE_IS_VALUE_ABSTRACT(GType t) { return g_type_test_flags(t, GTypeFlags.G_TYPE_FLAG_VALUE_ABSTRACT); }
auto G_TYPE_IS_VALUE_TYPE(GType t) { return g_type_check_is_value_type(t); }
auto G_TYPE_HAS_VALUE_TABLE(GType t) { return g_type_value_table_peek(t) !is null; }
alias GType = gsize;
union GTypeCValue;
struct GTypePlugin;
struct GTypeClass
{
/*< private >*/
GType g_type;
}
struct GTypeInstance
{
/*< private >*/
GTypeClass *g_class;
}
struct GTypeInterface
{
/*< private >*/
GType g_type; /* iface type */
GType g_instance_type;
}
struct GTypeQuery
{
GType type;
const(gchar) *type_name;
guint class_size;
guint instance_size;
}
enum GTypeDebugFlags
{
G_TYPE_DEBUG_NONE = 0,
G_TYPE_DEBUG_OBJECTS = 1 << 0,
G_TYPE_DEBUG_SIGNALS = 1 << 1,
G_TYPE_DEBUG_MASK = 0x03
}
enum GTypeFundamentalFlags
{
G_TYPE_FLAG_CLASSED = (1 << 0),
G_TYPE_FLAG_INSTANTIATABLE = (1 << 1),
G_TYPE_FLAG_DERIVABLE = (1 << 2),
G_TYPE_FLAG_DEEP_DERIVABLE = (1 << 3)
}
enum GTypeFlags
{
G_TYPE_FLAG_ABSTRACT = (1 << 4),
G_TYPE_FLAG_VALUE_ABSTRACT = (1 << 5)
}
struct GTypeInfo
{
/* interface types, classed types, instantiated types */
guint16 class_size;
GBaseInitFunc base_init;
GBaseFinalizeFunc base_finalize;
/* interface types, classed types, instantiated types */
GClassInitFunc class_init;
GClassFinalizeFunc class_finalize;
gconstpointer class_data;
/* instantiated types */
guint16 instance_size;
guint16 n_preallocs;
GInstanceInitFunc instance_init;
/* value handling */
const(GTypeValueTable) *value_table;
}
struct GTypeFundamentalInfo
{
GTypeFundamentalFlags type_flags;
}
struct GInterfaceInfo
{
GInterfaceInitFunc interface_init;
GInterfaceFinalizeFunc interface_finalize;
gpointer interface_data;
}
extern (C) {
struct GTypeValueTable
{
void function (GValue *value) value_init;
void function (GValue *value) value_free;
void function (const(GValue) *src_value,
GValue *dest_value) value_copy;
gpointer function (const(GValue) *value) value_peek_pointer;
const(gchar) *collect_format;
gchar* function (GValue *value,
guint n_collect_values,
GTypeCValue *collect_values,
guint collect_flags) collect_value;
const(gchar) *lcopy_format;
gchar* function (const(GValue) *value,
guint n_collect_values,
GTypeCValue *collect_values,
guint collect_flags) lcopy_value;
}
alias GBaseInitFunc = void function (gpointer g_class);
alias GBaseFinalizeFunc = void function (gpointer g_class);
alias GClassInitFunc = void function (gpointer g_class,
gpointer class_data);
alias GClassFinalizeFunc = void function (gpointer g_class,
gpointer class_data);
alias GInstanceInitFunc = void function (GTypeInstance *instance,
gpointer g_class);
alias GInterfaceInitFunc = void function (gpointer g_iface,
gpointer iface_data);
alias GInterfaceFinalizeFunc = void function (gpointer g_iface,
gpointer iface_data);
alias GTypeClassCacheFunc = gboolean function (gpointer cache_data,
GTypeClass *g_class);
alias GTypeInterfaceCheckFunc = void function (gpointer check_data,
gpointer g_iface);
/* --- prototypes --- */
deprecated
void g_type_init ();
deprecated
void g_type_init_with_debug_flags (GTypeDebugFlags debug_flags);
const(gchar) * g_type_name (GType type);
GQuark g_type_qname (GType type);
GType g_type_from_name (const(gchar) *name);
GType g_type_parent (GType type);
guint g_type_depth (GType type);
GType g_type_next_base (GType leaf_type,
GType root_type);
gboolean g_type_is_a (GType type,
GType is_a_type);
gpointer g_type_class_ref (GType type);
gpointer g_type_class_peek (GType type);
gpointer g_type_class_peek_static (GType type);
void g_type_class_unref (gpointer g_class);
gpointer g_type_class_peek_parent (gpointer g_class);
gpointer g_type_interface_peek (gpointer instance_class,
GType iface_type);
gpointer g_type_interface_peek_parent (gpointer g_iface);
gpointer g_type_default_interface_ref (GType g_type);
gpointer g_type_default_interface_peek (GType g_type);
void g_type_default_interface_unref (gpointer g_iface);
/* g_free() the returned arrays */
GType* g_type_children (GType type,
guint *n_children);
GType* g_type_interfaces (GType type,
guint *n_interfaces);
/* per-type _static_ data */
void g_type_set_qdata (GType type,
GQuark quark,
gpointer data);
gpointer g_type_get_qdata (GType type,
GQuark quark);
void g_type_query (GType type,
GTypeQuery *query);
GType g_type_register_static (GType parent_type,
const(gchar) *type_name,
const(GTypeInfo) *info,
GTypeFlags flags);
GType g_type_register_static_simple (GType parent_type,
const(gchar) *type_name,
guint class_size,
GClassInitFunc class_init,
guint instance_size,
GInstanceInitFunc instance_init,
GTypeFlags flags);
GType g_type_register_dynamic (GType parent_type,
const(gchar) *type_name,
GTypePlugin *plugin,
GTypeFlags flags);
GType g_type_register_fundamental (GType type_id,
const(gchar) *type_name,
const(GTypeInfo) *info,
const(GTypeFundamentalInfo) *finfo,
GTypeFlags flags);
void g_type_add_interface_static (GType instance_type,
GType interface_type,
const(GInterfaceInfo) *info);
void g_type_add_interface_dynamic (GType instance_type,
GType interface_type,
GTypePlugin *plugin);
void g_type_interface_add_prerequisite (GType interface_type,
GType prerequisite_type);
GType*g_type_interface_prerequisites (GType interface_type,
guint *n_prerequisites);
void g_type_class_add_private (gpointer g_class,
gsize private_size);
gint g_type_add_instance_private (GType class_type,
gsize private_size);
gpointer g_type_instance_get_private (GTypeInstance *instance,
GType private_type);
void g_type_class_adjust_private_offset (gpointer g_class,
gint *private_size_or_offset);
void g_type_add_class_private (GType class_type,
gsize private_size);
gpointer g_type_class_get_private (GTypeClass *klass,
GType private_type);
gint g_type_class_get_instance_private_offset (gpointer g_class);
void g_type_ensure (GType type);
guint g_type_get_type_registration_serial ();
}
// #define G_TYPE_CHECK_INSTANCE(instance) (_G_TYPE_CHI ((GTypeInstance*) (instance)))
// /**
// * G_TYPE_CHECK_INSTANCE_CAST:
// * @instance: Location of a #GTypeInstance structure
// * @g_type: The type to be returned
// * @c_type: The corresponding C type of @g_type
// *
// * Checks that @instance is an instance of the type identified by @g_type
// * and issues a warning if this is not the case. Returns @instance casted
// * to a pointer to @c_type.
// *
// * This macro should only be used in type implementations.
// */
// #define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type) (_G_TYPE_CIC ((instance), (g_type), c_type))
// /**
// * G_TYPE_CHECK_INSTANCE_TYPE:
// * @instance: Location of a #GTypeInstance structure.
// * @g_type: The type to be checked
// *
// * Checks if @instance is an instance of the type identified by @g_type.
// *
// * This macro should only be used in type implementations.
// *
// * Returns: %TRUE on success
// */
// #define G_TYPE_CHECK_INSTANCE_TYPE(instance, g_type) (_G_TYPE_CIT ((instance), (g_type)))
// /**
// * G_TYPE_CHECK_INSTANCE_FUNDAMENTAL_TYPE:
// * @instance: Location of a #GTypeInstance structure.
// * @g_type: The fundamental type to be checked
// *
// * Checks if @instance is an instance of the fundamental type identified by @g_type.
// *
// * This macro should only be used in type implementations.
// *
// * Returns: %TRUE on success
// */
// #define G_TYPE_CHECK_INSTANCE_FUNDAMENTAL_TYPE(instance, g_type) (_G_TYPE_CIFT ((instance), (g_type)))
// /**
// * G_TYPE_INSTANCE_GET_CLASS:
// * @instance: Location of the #GTypeInstance structure
// * @g_type: The #GType of the class to be returned
// * @c_type: The C type of the class structure
// *
// * Get the class structure of a given @instance, casted
// * to a specified ancestor type @g_type of the instance.
// *
// * Note that while calling a GInstanceInitFunc(), the class pointer
// * gets modified, so it might not always return the expected pointer.
// *
// * This macro should only be used in type implementations.
// *
// * Returns: a pointer to the class structure
// */
// #define G_TYPE_INSTANCE_GET_CLASS(instance, g_type, c_type) (_G_TYPE_IGC ((instance), (g_type), c_type))
// /**
// * G_TYPE_INSTANCE_GET_INTERFACE:
// * @instance: Location of the #GTypeInstance structure
// * @g_type: The #GType of the interface to be returned
// * @c_type: The C type of the interface structure
// *
// * Get the interface structure for interface @g_type of a given @instance.
// *
// * This macro should only be used in type implementations.
// *
// * Returns: a pointer to the interface structure
// */
// #define G_TYPE_INSTANCE_GET_INTERFACE(instance, g_type, c_type) (_G_TYPE_IGI ((instance), (g_type), c_type))
// /**
// * G_TYPE_CHECK_CLASS_CAST:
// * @g_class: Location of a #GTypeClass structure
// * @g_type: The type to be returned
// * @c_type: The corresponding C type of class structure of @g_type
// *
// * Checks that @g_class is a class structure of the type identified by @g_type
// * and issues a warning if this is not the case. Returns @g_class casted
// * to a pointer to @c_type.
// *
// * This macro should only be used in type implementations.
// */
// #define G_TYPE_CHECK_CLASS_CAST(g_class, g_type, c_type) (_G_TYPE_CCC ((g_class), (g_type), c_type))
// /**
// * G_TYPE_CHECK_CLASS_TYPE:
// * @g_class: Location of a #GTypeClass structure
// * @g_type: The type to be checked
// *
// * Checks if @g_class is a class structure of the type identified by
// * @g_type.
// *
// * This macro should only be used in type implementations.
// *
// * Returns: %TRUE on success
// */
// #define G_TYPE_CHECK_CLASS_TYPE(g_class, g_type) (_G_TYPE_CCT ((g_class), (g_type)))
// /**
// * G_TYPE_CHECK_VALUE:
// * @value: a #GValue
// *
// * Checks if @value has been initialized to hold values
// * of a value type.
// *
// * This macro should only be used in type implementations.
// *
// * Returns: %TRUE on success
// */
// #define G_TYPE_CHECK_VALUE(value) (_G_TYPE_CHV ((value)))
// /**
// * G_TYPE_CHECK_VALUE_TYPE:
// * @value: a #GValue
// * @g_type: The type to be checked
// *
// * Checks if @value has been initialized to hold values
// * of type @g_type.
// *
// * This macro should only be used in type implementations.
// *
// * Returns: %TRUE on success
// */
// #define G_TYPE_CHECK_VALUE_TYPE(value, g_type) (_G_TYPE_CVH ((value), (g_type)))
// /**
// * G_TYPE_FROM_INSTANCE:
// * @instance: Location of a valid #GTypeInstance structure
// *
// * Get the type identifier from a given @instance structure.
// *
// * This macro should only be used in type implementations.
// *
// * Returns: the #GType
// */
auto G_TYPE_FROM_INSTANCE(I)(I instance) { return G_TYPE_FROM_CLASS((cast(GTypeInstance*)instance).g_class); }
// #define G_TYPE_FROM_INSTANCE(instance) (G_TYPE_FROM_CLASS (((GTypeInstance*) (instance))->g_class))
// /**
// * G_TYPE_FROM_CLASS:
// * @g_class: Location of a valid #GTypeClass structure
// *
// * Get the type identifier from a given @class structure.
// *
// * This macro should only be used in type implementations.
// *
// * Returns: the #GType
// */
auto G_TYPE_FROM_CLASS(GC)(GC g_class) { return (cast(GTypeClass*)g_class).g_type; }
// #define G_TYPE_FROM_CLASS(g_class) (((GTypeClass*) (g_class))->g_type)
// /**
// * G_TYPE_FROM_INTERFACE:
// * @g_iface: Location of a valid #GTypeInterface structure
// *
// * Get the type identifier from a given @interface structure.
// *
// * This macro should only be used in type implementations.
// *
// * Returns: the #GType
// */
auto G_TYPE_FROM_INTERFACE(GI)(GI g_iface) { return (cast(GTypeInterface*)g_iface).g_type; }
// #define G_TYPE_FROM_INTERFACE(g_iface) (((GTypeInterface*) (g_iface))->g_type)
//
// /**
// * G_TYPE_INSTANCE_GET_PRIVATE:
// * @instance: the instance of a type deriving from @private_type
// * @g_type: the type identifying which private data to retrieve
// * @c_type: The C type for the private structure
// *
// * Gets the private structure for a particular type.
// * The private structure must have been registered in the
// * class_init function with g_type_class_add_private().
// *
// * This macro should only be used in type implementations.
// *
// * Since: 2.4
// * Returns: a pointer to the private data structure
// */
// #define G_TYPE_INSTANCE_GET_PRIVATE(instance, g_type, c_type) ((c_type*) g_type_instance_get_private ((GTypeInstance*) (instance), (g_type)))
//
// /**
// * G_TYPE_CLASS_GET_PRIVATE:
// * @klass: the class of a type deriving from @private_type
// * @g_type: the type identifying which private data to retrieve
// * @c_type: The C type for the private structure
// *
// * Gets the private class structure for a particular type.
// * The private structure must have been registered in the
// * get_type() function with g_type_add_class_private().
// *
// * This macro should only be used in type implementations.
// *
// * Since: 2.24
// * Returns: a pointer to the private data structure
// */
// #define G_TYPE_CLASS_GET_PRIVATE(klass, g_type, c_type) ((c_type*) g_type_class_get_private ((GTypeClass*) (klass), (g_type)))
// /* --- GType boilerplate --- */
// /**
// * G_DEFINE_TYPE:
// * @TN: The name of the new type, in Camel case.
// * @t_n: The name of the new type, in lowercase, with words
// * separated by '_'.
// * @T_P: The #GType of the parent type.
// *
// * A convenience macro for type implementations, which declares a class
// * initialization function, an instance initialization function (see #GTypeInfo
// * for information about these) and a static variable named `t_n_parent_class`
// * pointing to the parent class. Furthermore, it defines a *_get_type() function.
// * See G_DEFINE_TYPE_EXTENDED() for an example.
// *
// * Since: 2.4
// */
// #define G_DEFINE_TYPE(TN, t_n, T_P) G_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, 0, {})
// /**
// * G_DEFINE_TYPE_WITH_CODE:
// * @TN: The name of the new type, in Camel case.
// * @t_n: The name of the new type in lowercase, with words separated by '_'.
// * @T_P: The #GType of the parent type.
// * @_C_: Custom code that gets inserted in the *_get_type() function.
// *
// * A convenience macro for type implementations.
// * Similar to G_DEFINE_TYPE(), but allows you to insert custom code into the
// * *_get_type() function, e.g. interface implementations via G_IMPLEMENT_INTERFACE().
// * See G_DEFINE_TYPE_EXTENDED() for an example.
// *
// * Since: 2.4
// */
// #define G_DEFINE_TYPE_WITH_CODE(TN, t_n, T_P, _C_) _G_DEFINE_TYPE_EXTENDED_BEGIN (TN, t_n, T_P, 0) {_C_;} _G_DEFINE_TYPE_EXTENDED_END()
// /**
// * G_DEFINE_TYPE_WITH_PRIVATE:
// * @TN: The name of the new type, in Camel case.
// * @t_n: The name of the new type, in lowercase, with words
// * separated by '_'.
// * @T_P: The #GType of the parent type.
// *
// * A convenience macro for type implementations, which declares a class
// * initialization function, an instance initialization function (see #GTypeInfo
// * for information about these), a static variable named `t_n_parent_class`
// * pointing to the parent class, and adds private instance data to the type.
// * Furthermore, it defines a *_get_type() function. See G_DEFINE_TYPE_EXTENDED()
// * for an example.
// *
// * Note that private structs added with this macros must have a struct
// * name of the form @TN Private.
// *
// * Since: 2.38
// */
// #define G_DEFINE_TYPE_WITH_PRIVATE(TN, t_n, T_P) G_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, 0, G_ADD_PRIVATE (TN))
// /**
// * G_DEFINE_ABSTRACT_TYPE:
// * @TN: The name of the new type, in Camel case.
// * @t_n: The name of the new type, in lowercase, with words
// * separated by '_'.
// * @T_P: The #GType of the parent type.
// *
// * A convenience macro for type implementations.
// * Similar to G_DEFINE_TYPE(), but defines an abstract type.
// * See G_DEFINE_TYPE_EXTENDED() for an example.
// *
// * Since: 2.4
// */
// #define G_DEFINE_ABSTRACT_TYPE(TN, t_n, T_P) G_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, G_TYPE_FLAG_ABSTRACT, {})
// /**
// * G_DEFINE_ABSTRACT_TYPE_WITH_CODE:
// * @TN: The name of the new type, in Camel case.
// * @t_n: The name of the new type, in lowercase, with words
// * separated by '_'.
// * @T_P: The #GType of the parent type.
// * @_C_: Custom code that gets inserted in the @type_name_get_type() function.
// *
// * A convenience macro for type implementations.
// * Similar to G_DEFINE_TYPE_WITH_CODE(), but defines an abstract type and
// * allows you to insert custom code into the *_get_type() function, e.g.
// * interface implementations via G_IMPLEMENT_INTERFACE().
// * See G_DEFINE_TYPE_EXTENDED() for an example.
// *
// * Since: 2.4
// */
// #define G_DEFINE_ABSTRACT_TYPE_WITH_CODE(TN, t_n, T_P, _C_) _G_DEFINE_TYPE_EXTENDED_BEGIN (TN, t_n, T_P, G_TYPE_FLAG_ABSTRACT) {_C_;} _G_DEFINE_TYPE_EXTENDED_END()
// /**
// * G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE:
// * @TN: The name of the new type, in Camel case.
// * @t_n: The name of the new type, in lowercase, with words
// * separated by '_'.
// * @T_P: The #GType of the parent type.
// *
// * Similar to G_DEFINE_TYPE_WITH_PRIVATE(), but defines an abstract type.
// * See G_DEFINE_TYPE_EXTENDED() for an example.
// *
// * Since: 2.38
// */
// #define G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE(TN, t_n, T_P) G_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, G_TYPE_FLAG_ABSTRACT, G_ADD_PRIVATE (TN))
// /**
// * G_DEFINE_TYPE_EXTENDED:
// * @TN: The name of the new type, in Camel case.
// * @t_n: The name of the new type, in lowercase, with words
// * separated by '_'.
// * @T_P: The #GType of the parent type.
// * @_f_: #GTypeFlags to pass to g_type_register_static()
// * @_C_: Custom code that gets inserted in the *_get_type() function.
// *
// * The most general convenience macro for type implementations, on which
// * G_DEFINE_TYPE(), etc are based.
// *
// * |[<!-- language="C" -->
// * G_DEFINE_TYPE_EXTENDED (GtkGadget,
// * gtk_gadget,
// * GTK_TYPE_WIDGET,
// * 0,
// * G_IMPLEMENT_INTERFACE (TYPE_GIZMO,
// * gtk_gadget_gizmo_init));
// * ]|
// * expands to
// * |[<!-- language="C" -->
// * static void gtk_gadget_init (GtkGadget *self);
// * static void gtk_gadget_class_init (GtkGadgetClass *klass);
// * static gpointer gtk_gadget_parent_class = NULL;
// * static void gtk_gadget_class_intern_init (gpointer klass)
// * {
// * gtk_gadget_parent_class = g_type_class_peek_parent (klass);
// * gtk_gadget_class_init ((GtkGadgetClass*) klass);
// * }
// *
// * GType
// * gtk_gadget_get_type (void)
// * {
// * static volatile gsize g_define_type_id__volatile = 0;
// * if (g_once_init_enter (&g_define_type_id__volatile))
// * {
// * GType g_define_type_id =
// * g_type_register_static_simple (GTK_TYPE_WIDGET,
// * g_intern_static_string ("GtkGadget"),
// * sizeof (GtkGadgetClass),
// * (GClassInitFunc) gtk_gadget_class_intern_init,
// * sizeof (GtkGadget),
// * (GInstanceInitFunc) gtk_gadget_init,
// * 0);
// * {
// * const GInterfaceInfo g_implement_interface_info = {
// * (GInterfaceInitFunc) gtk_gadget_gizmo_init
// * };
// * g_type_add_interface_static (g_define_type_id, TYPE_GIZMO, &g_implement_interface_info);
// * }
// * g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);
// * }
// * return g_define_type_id__volatile;
// * }
// * ]|
// * The only pieces which have to be manually provided are the definitions of
// * the instance and class structure and the definitions of the instance and
// * class init functions.
// *
// * Since: 2.4
// */
// #define G_DEFINE_TYPE_EXTENDED(TN, t_n, T_P, _f_, _C_) _G_DEFINE_TYPE_EXTENDED_BEGIN (TN, t_n, T_P, _f_) {_C_;} _G_DEFINE_TYPE_EXTENDED_END()
//
// /**
// * G_DEFINE_INTERFACE:
// * @TN: The name of the new type, in Camel case.
// * @t_n: The name of the new type, in lowercase, with words separated by '_'.
// * @T_P: The #GType of the prerequisite type for the interface, or 0
// * (%G_TYPE_INVALID) for no prerequisite type.
// *
// * A convenience macro for #GTypeInterface definitions, which declares
// * a default vtable initialization function and defines a *_get_type()
// * function.
// *
// * The macro expects the interface initialization function to have the
// * name `t_n ## _default_init`, and the interface structure to have the
// * name `TN ## Interface`.
// *
// * Since: 2.24
// */
// #define G_DEFINE_INTERFACE(TN, t_n, T_P) G_DEFINE_INTERFACE_WITH_CODE(TN, t_n, T_P, ;)
//
// /**
// * G_DEFINE_INTERFACE_WITH_CODE:
// * @TN: The name of the new type, in Camel case.
// * @t_n: The name of the new type, in lowercase, with words separated by '_'.
// * @T_P: The #GType of the prerequisite type for the interface, or 0
// * (%G_TYPE_INVALID) for no prerequisite type.
// * @_C_: Custom code that gets inserted in the *_get_type() function.
// *
// * A convenience macro for #GTypeInterface definitions. Similar to
// * G_DEFINE_INTERFACE(), but allows you to insert custom code into the
// * *_get_type() function, e.g. additional interface implementations
// * via G_IMPLEMENT_INTERFACE(), or additional prerequisite types. See
// * G_DEFINE_TYPE_EXTENDED() for a similar example using
// * G_DEFINE_TYPE_WITH_CODE().
// *
// * Since: 2.24
// */
// #define G_DEFINE_INTERFACE_WITH_CODE(TN, t_n, T_P, _C_) _G_DEFINE_INTERFACE_EXTENDED_BEGIN(TN, t_n, T_P) {_C_;} _G_DEFINE_INTERFACE_EXTENDED_END()
//
// /**
// * G_IMPLEMENT_INTERFACE:
// * @TYPE_IFACE: The #GType of the interface to add
// * @iface_init: The interface init function
// *
// * A convenience macro to ease interface addition in the `_C_` section
// * of G_DEFINE_TYPE_WITH_CODE() or G_DEFINE_ABSTRACT_TYPE_WITH_CODE().
// * See G_DEFINE_TYPE_EXTENDED() for an example.
// *
// * Note that this macro can only be used together with the G_DEFINE_TYPE_*
// * macros, since it depends on variable names from those macros.
// *
// * Since: 2.4
// */
// #define G_IMPLEMENT_INTERFACE(TYPE_IFACE, iface_init) { \
// const GInterfaceInfo g_implement_interface_info = { \
// (GInterfaceInitFunc) iface_init, NULL, NULL \
// }; \
// g_type_add_interface_static (g_define_type_id, TYPE_IFACE, &g_implement_interface_info); \
// }
//
// /**
// * G_ADD_PRIVATE:
// * @TypeName: the name of the type in CamelCase
// *
// * A convenience macro to ease adding private data to instances of a new type
// * in the @_C_ section of G_DEFINE_TYPE_WITH_CODE() or
// * G_DEFINE_ABSTRACT_TYPE_WITH_CODE().
// *
// * For instance:
// *
// * |[<!-- language="C" -->
// * typedef struct _MyObject MyObject;
// * typedef struct _MyObjectClass MyObjectClass;
// *
// * typedef struct {
// * gint foo;
// * gint bar;
// * } MyObjectPrivate;
// *
// * G_DEFINE_TYPE_WITH_CODE (MyObject, my_object, G_TYPE_OBJECT,
// * G_ADD_PRIVATE (MyObject))
// * ]|
// *
// * Will add MyObjectPrivate as the private data to any instance of the MyObject
// * type.
// *
// * G_DEFINE_TYPE_* macros will automatically create a private function
// * based on the arguments to this macro, which can be used to safely
// * retrieve the private data from an instance of the type; for instance:
// *
// * |[<!-- language="C" -->
// * gint
// * my_object_get_foo (MyObject *obj)
// * {
// * MyObjectPrivate *priv = my_object_get_instance_private (obj);
// *
// * return priv->foo;
// * }
// *
// * void
// * my_object_set_bar (MyObject *obj,
// * gint bar)
// * {
// * MyObjectPrivate *priv = my_object_get_instance_private (obj);
// *
// * if (priv->bar != bar)
// * priv->bar = bar;
// * }
// * ]|
// *
// * Note that this macro can only be used together with the G_DEFINE_TYPE_*
// * macros, since it depends on variable names from those macros.
// *
// * Also note that private structs added with these macros must have a struct
// * name of the form `TypeNamePrivate`.
// *
// * Since: 2.38
// */
// #define G_ADD_PRIVATE(TypeName) { \
// TypeName##_private_offset = \
// g_type_add_instance_private (g_define_type_id, sizeof (TypeName##Private)); \
// }
//
// /**
// * G_PRIVATE_OFFSET:
// * @TypeName: the name of the type in CamelCase
// * @field: the name of the field in the private data structure
// *
// * Evaluates to the offset of the @field inside the instance private data
// * structure for @TypeName.
// *
// * Note that this macro can only be used together with the G_DEFINE_TYPE_*
// * and G_ADD_PRIVATE() macros, since it depends on variable names from
// * those macros.
// *
// * Since: 2.38
// */
// #define G_PRIVATE_OFFSET(TypeName, field) \
// (TypeName##_private_offset + (G_STRUCT_OFFSET (TypeName##Private, field)))
//
// /**
// * G_PRIVATE_FIELD_P:
// * @TypeName: the name of the type in CamelCase
// * @inst: the instance of @TypeName you wish to access
// * @field_name: the name of the field in the private data structure
// *
// * Evaluates to a pointer to the @field_name inside the @inst private data
// * structure for @TypeName.
// *
// * Note that this macro can only be used together with the G_DEFINE_TYPE_*
// * and G_ADD_PRIVATE() macros, since it depends on variable names from
// * those macros.
// *
// * Since: 2.38
// */
// #define G_PRIVATE_FIELD_P(TypeName, inst, field_name) \
// G_STRUCT_MEMBER_P (inst, G_PRIVATE_OFFSET (TypeName, field_name))
//
// /**
// * G_PRIVATE_FIELD:
// * @TypeName: the name of the type in CamelCase
// * @inst: the instance of @TypeName you wish to access
// * @field_type: the type of the field in the private data structure
// * @field_name: the name of the field in the private data structure
// *
// * Evaluates to the @field_name inside the @inst private data
// * structure for @TypeName.
// *
// * Note that this macro can only be used together with the G_DEFINE_TYPE_*
// * and G_ADD_PRIVATE() macros, since it depends on variable names from
// * those macros.
// *
// * Since: 2.38
// */
// #define G_PRIVATE_FIELD(TypeName, inst, field_type, field_name) \
// G_STRUCT_MEMBER (field_type, inst, G_PRIVATE_OFFSET (TypeName, field_name))
//
// /* we need to have this macro under conditional expansion, as it references
// * a function that has been added in 2.38. see bug:
// * https://bugzilla.gnome.org/show_bug.cgi?id=703191
// */
// #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
// #define _G_DEFINE_TYPE_EXTENDED_CLASS_INIT(TypeName, type_name) \
// static void type_name##_class_intern_init (gpointer klass) \
// { \
// type_name##_parent_class = g_type_class_peek_parent (klass); \
// if (TypeName##_private_offset != 0) \
// g_type_class_adjust_private_offset (klass, &TypeName##_private_offset); \
// type_name##_class_init ((TypeName##Class*) klass); \
// }
//
// #else
// #define _G_DEFINE_TYPE_EXTENDED_CLASS_INIT(TypeName, type_name) \
// static void type_name##_class_intern_init (gpointer klass) \
// { \
// type_name##_parent_class = g_type_class_peek_parent (klass); \
// type_name##_class_init ((TypeName##Class*) klass); \
// }
// #endif /* GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 */
//
// #define _G_DEFINE_TYPE_EXTENDED_BEGIN(TypeName, type_name, TYPE_PARENT, flags) \
// \
// static void type_name##_init (TypeName *self); \
// static void type_name##_class_init (TypeName##Class *klass); \
// static gpointer type_name##_parent_class = NULL; \
// static gint TypeName##_private_offset; \
// \
// _G_DEFINE_TYPE_EXTENDED_CLASS_INIT(TypeName, type_name) \
// \
// G_GNUC_UNUSED \
// static inline gpointer \
// type_name##_get_instance_private (TypeName *self) \
// { \
// return (G_STRUCT_MEMBER_P (self, TypeName##_private_offset)); \
// } \
// \
// GType \
// type_name##_get_type (void) \
// { \
// static volatile gsize g_define_type_id__volatile = 0; \
// if (g_once_init_enter (&g_define_type_id__volatile)) \
// { \
// GType g_define_type_id = \
// g_type_register_static_simple (TYPE_PARENT, \
// g_intern_static_string (#TypeName), \
// sizeof (TypeName##Class), \
// (GClassInitFunc) type_name##_class_intern_init, \
// sizeof (TypeName), \
// (GInstanceInitFunc) type_name##_init, \
// (GTypeFlags) flags); \
// { /* custom code follows */
// #define _G_DEFINE_TYPE_EXTENDED_END() \
// /* following custom code */ \
// } \
// g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); \
// } \
// return g_define_type_id__volatile; \
// } /* closes type_name##_get_type() */
//
// #define _G_DEFINE_INTERFACE_EXTENDED_BEGIN(TypeName, type_name, TYPE_PREREQ) \
// \
// static void type_name##_default_init (TypeName##Interface *klass); \
// \
// GType \
// type_name##_get_type (void) \
// { \
// static volatile gsize g_define_type_id__volatile = 0; \
// if (g_once_init_enter (&g_define_type_id__volatile)) \
// { \
// GType g_define_type_id = \
// g_type_register_static_simple (G_TYPE_INTERFACE, \
// g_intern_static_string (#TypeName), \
// sizeof (TypeName##Interface), \
// (GClassInitFunc)type_name##_default_init, \
// 0, \
// (GInstanceInitFunc)NULL, \
// (GTypeFlags) 0); \
// if (TYPE_PREREQ) \
// g_type_interface_add_prerequisite (g_define_type_id, TYPE_PREREQ); \
// { /* custom code follows */
// #define _G_DEFINE_INTERFACE_EXTENDED_END() \
// /* following custom code */ \
// } \
// g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); \
// } \
// return g_define_type_id__volatile; \
// } /* closes type_name##_get_type() */
//
// /**
// * G_DEFINE_BOXED_TYPE:
// * @TypeName: The name of the new type, in Camel case
// * @type_name: The name of the new type, in lowercase, with words
// * separated by '_'
// * @copy_func: the #GBoxedCopyFunc for the new type
// * @free_func: the #GBoxedFreeFunc for the new type
// *
// * A convenience macro for boxed type implementations, which defines a
// * type_name_get_type() function registering the boxed type.
// *
// * Since: 2.26
// */
// #define G_DEFINE_BOXED_TYPE(TypeName, type_name, copy_func, free_func) G_DEFINE_BOXED_TYPE_WITH_CODE (TypeName, type_name, copy_func, free_func, {})
// /**
// * G_DEFINE_BOXED_TYPE_WITH_CODE:
// * @TypeName: The name of the new type, in Camel case
// * @type_name: The name of the new type, in lowercase, with words
// * separated by '_'
// * @copy_func: the #GBoxedCopyFunc for the new type
// * @free_func: the #GBoxedFreeFunc for the new type
// * @_C_: Custom code that gets inserted in the *_get_type() function
// *
// * A convenience macro for boxed type implementations.
// * Similar to G_DEFINE_BOXED_TYPE(), but allows to insert custom code into the
// * type_name_get_type() function, e.g. to register value transformations with
// * g_value_register_transform_func().
// *
// * Since: 2.26
// */
// #define G_DEFINE_BOXED_TYPE_WITH_CODE(TypeName, type_name, copy_func, free_func, _C_) _G_DEFINE_BOXED_TYPE_BEGIN (TypeName, type_name, copy_func, free_func) {_C_;} _G_DEFINE_TYPE_EXTENDED_END()
//
// /* Only use this in non-C++ on GCC >= 2.7, except for Darwin/ppc64.
// * See https://bugzilla.gnome.org/show_bug.cgi?id=647145
// */
// #if !defined (__cplusplus) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)) && !(defined (__APPLE__) && defined (__ppc64__))
// #define _G_DEFINE_BOXED_TYPE_BEGIN(TypeName, type_name, copy_func, free_func) \
// GType \
// type_name##_get_type (void) \
// { \
// static volatile gsize g_define_type_id__volatile = 0; \
// if (g_once_init_enter (&g_define_type_id__volatile)) \
// { \
// GType (* _g_register_boxed) \
// (const gchar *, \
// union \
// { \
// TypeName * (*do_copy_type) (TypeName *); \
// TypeName * (*do_const_copy_type) (const TypeName *); \
// GBoxedCopyFunc do_copy_boxed; \
// } __attribute__((__transparent_union__)), \
// union \
// { \
// void (* do_free_type) (TypeName *); \
// GBoxedFreeFunc do_free_boxed; \
// } __attribute__((__transparent_union__)) \
// ) = g_boxed_type_register_static; \
// GType g_define_type_id = \
// _g_register_boxed (g_intern_static_string (#TypeName), copy_func, free_func); \
// { /* custom code follows */
// #else
// #define _G_DEFINE_BOXED_TYPE_BEGIN(TypeName, type_name, copy_func, free_func) \
// GType \
// type_name##_get_type (void) \
// { \
// static volatile gsize g_define_type_id__volatile = 0; \
// if (g_once_init_enter (&g_define_type_id__volatile)) \
// { \
// GType g_define_type_id = \
// g_boxed_type_register_static (g_intern_static_string (#TypeName), \
// (GBoxedCopyFunc) copy_func, \
// (GBoxedFreeFunc) free_func); \
// { /* custom code follows */
// #endif /* __GNUC__ */
//
// /**
// * G_DEFINE_POINTER_TYPE:
// * @TypeName: The name of the new type, in Camel case
// * @type_name: The name of the new type, in lowercase, with words
// * separated by '_'
// *
// * A convenience macro for pointer type implementations, which defines a
// * type_name_get_type() function registering the pointer type.
// *
// * Since: 2.26
// */
// #define G_DEFINE_POINTER_TYPE(TypeName, type_name) G_DEFINE_POINTER_TYPE_WITH_CODE (TypeName, type_name, {})
// /**
// * G_DEFINE_POINTER_TYPE_WITH_CODE:
// * @TypeName: The name of the new type, in Camel case
// * @type_name: The name of the new type, in lowercase, with words
// * separated by '_'
// * @_C_: Custom code that gets inserted in the *_get_type() function
// *
// * A convenience macro for pointer type implementations.
// * Similar to G_DEFINE_POINTER_TYPE(), but allows to insert
// * custom code into the type_name_get_type() function.
// *
// * Since: 2.26
// */
// #define G_DEFINE_POINTER_TYPE_WITH_CODE(TypeName, type_name, _C_) _G_DEFINE_POINTER_TYPE_BEGIN (TypeName, type_name) {_C_;} _G_DEFINE_TYPE_EXTENDED_END()
//
// #define _G_DEFINE_POINTER_TYPE_BEGIN(TypeName, type_name) \
// GType \
// type_name##_get_type (void) \
// { \
// static volatile gsize g_define_type_id__volatile = 0; \
// if (g_once_init_enter (&g_define_type_id__volatile)) \
// { \
// GType g_define_type_id = \
// g_pointer_type_register_static (g_intern_static_string (#TypeName)); \
// { /* custom code follows */
//
/* --- protected (for fundamental type implementations) --- */
extern (C) {
GTypePlugin* g_type_get_plugin (GType type);
GTypePlugin* g_type_interface_get_plugin (GType instance_type,
GType interface_type);
GType g_type_fundamental_next ();
GType g_type_fundamental (GType type_id);
GTypeInstance* g_type_create_instance (GType type);
void g_type_free_instance (GTypeInstance *instance);
void g_type_add_class_cache_func (gpointer cache_data,
GTypeClassCacheFunc cache_func);
void g_type_remove_class_cache_func (gpointer cache_data,
GTypeClassCacheFunc cache_func);
void g_type_class_unref_uncached (gpointer g_class);
void g_type_add_interface_check (gpointer check_data,
GTypeInterfaceCheckFunc check_func);
void g_type_remove_interface_check (gpointer check_data,
GTypeInterfaceCheckFunc check_func);
GTypeValueTable* g_type_value_table_peek (GType type);
/*< private >*/
pure gboolean g_type_check_instance (GTypeInstance *instance);
GTypeInstance* g_type_check_instance_cast (GTypeInstance *instance,
GType iface_type);
pure gboolean g_type_check_instance_is_a (GTypeInstance *instance,
GType iface_type);
pure gboolean g_type_check_instance_is_fundamentally_a (GTypeInstance *instance,
GType fundamental_type);
GTypeClass* g_type_check_class_cast (GTypeClass *g_class,
GType is_a_type);
pure gboolean g_type_check_class_is_a (GTypeClass *g_class,
GType is_a_type);
pure gboolean g_type_check_is_value_type (GType type);
pure gboolean g_type_check_value (GValue *value);
pure gboolean g_type_check_value_holds (GValue *value,
GType type);
pure gboolean g_type_test_flags (GType type,
guint flags);
/* --- debugging functions --- */
const(gchar) * g_type_name_from_instance (GTypeInstance *instance);
const(gchar) * g_type_name_from_class (GTypeClass *g_class);
}
// /* --- implementation bits --- */
// #ifndef G_DISABLE_CAST_CHECKS
// # define _G_TYPE_CIC(ip, gt, ct) \
// ((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt))
// # define _G_TYPE_CCC(cp, gt, ct) \
// ((ct*) g_type_check_class_cast ((GTypeClass*) cp, gt))
// #else /* G_DISABLE_CAST_CHECKS */
// # define _G_TYPE_CIC(ip, gt, ct) ((ct*) ip)
// # define _G_TYPE_CCC(cp, gt, ct) ((ct*) cp)
// #endif /* G_DISABLE_CAST_CHECKS */
// #define _G_TYPE_CHI(ip) (g_type_check_instance ((GTypeInstance*) ip))
// #define _G_TYPE_CHV(vl) (g_type_check_value ((GValue*) vl))
// #define _G_TYPE_IGC(ip, gt, ct) ((ct*) (((GTypeInstance*) ip)->g_class))
// #define _G_TYPE_IGI(ip, gt, ct) ((ct*) g_type_interface_peek (((GTypeInstance*) ip)->g_class, gt))
// #define _G_TYPE_CIFT(ip, ft) (g_type_check_instance_is_fundamentally_a ((GTypeInstance*) ip, ft))
// #ifdef __GNUC__
// # define _G_TYPE_CIT(ip, gt) (G_GNUC_EXTENSION ({ \
// GTypeInstance *__inst = (GTypeInstance*) ip; GType __t = gt; gboolean __r; \
// if (!__inst) \
// __r = FALSE; \
// else if (__inst->g_class && __inst->g_class->g_type == __t) \
// __r = TRUE; \
// else \
// __r = g_type_check_instance_is_a (__inst, __t); \
// __r; \
// }))
// # define _G_TYPE_CCT(cp, gt) (G_GNUC_EXTENSION ({ \
// GTypeClass *__class = (GTypeClass*) cp; GType __t = gt; gboolean __r; \
// if (!__class) \
// __r = FALSE; \
// else if (__class->g_type == __t) \
// __r = TRUE; \
// else \
// __r = g_type_check_class_is_a (__class, __t); \
// __r; \
// }))
// # define _G_TYPE_CVH(vl, gt) (G_GNUC_EXTENSION ({ \
// GValue *__val = (GValue*) vl; GType __t = gt; gboolean __r; \
// if (!__val) \
// __r = FALSE; \
// else if (__val->g_type == __t) \
// __r = TRUE; \
// else \
// __r = g_type_check_value_holds (__val, __t); \
// __r; \
// }))
// #else /* !__GNUC__ */
// # define _G_TYPE_CIT(ip, gt) (g_type_check_instance_is_a ((GTypeInstance*) ip, gt))
// # define _G_TYPE_CCT(cp, gt) (g_type_check_class_is_a ((GTypeClass*) cp, gt))
// # define _G_TYPE_CVH(vl, gt) (g_type_check_value_holds ((GValue*) vl, gt))
// #endif /* !__GNUC__ */
// /**
// * G_TYPE_FLAG_RESERVED_ID_BIT:
// *
// * A bit in the type number that's supposed to be left untouched.
// */
// #define G_TYPE_FLAG_RESERVED_ID_BIT ((GType) (1 << 0))
| D |
/Users/trietnguyen/Documents/Blockchain Development/NEAR SEPTEMBER/NEAR-Hackathon/smart-cert/contract/target/wasm32-unknown-unknown/debug/deps/num_rational-8e27b7b7b1f96c3a.rmeta: /Users/trietnguyen/.cargo/registry/src/github.com-1ecc6299db9ec823/num-rational-0.3.2/src/lib.rs /Users/trietnguyen/.cargo/registry/src/github.com-1ecc6299db9ec823/num-rational-0.3.2/src/pow.rs
/Users/trietnguyen/Documents/Blockchain Development/NEAR SEPTEMBER/NEAR-Hackathon/smart-cert/contract/target/wasm32-unknown-unknown/debug/deps/libnum_rational-8e27b7b7b1f96c3a.rlib: /Users/trietnguyen/.cargo/registry/src/github.com-1ecc6299db9ec823/num-rational-0.3.2/src/lib.rs /Users/trietnguyen/.cargo/registry/src/github.com-1ecc6299db9ec823/num-rational-0.3.2/src/pow.rs
/Users/trietnguyen/Documents/Blockchain Development/NEAR SEPTEMBER/NEAR-Hackathon/smart-cert/contract/target/wasm32-unknown-unknown/debug/deps/num_rational-8e27b7b7b1f96c3a.d: /Users/trietnguyen/.cargo/registry/src/github.com-1ecc6299db9ec823/num-rational-0.3.2/src/lib.rs /Users/trietnguyen/.cargo/registry/src/github.com-1ecc6299db9ec823/num-rational-0.3.2/src/pow.rs
/Users/trietnguyen/.cargo/registry/src/github.com-1ecc6299db9ec823/num-rational-0.3.2/src/lib.rs:
/Users/trietnguyen/.cargo/registry/src/github.com-1ecc6299db9ec823/num-rational-0.3.2/src/pow.rs:
| D |
/Users/aaronb/Development/Air-End/DerivedData/Air-End/Build/Intermediates/Mango.build/Debug-iphonesimulator/Mango.build/Objects-normal/x86_64/AppDelegate.o : /Users/aaronb/Development/Air-End/Air-End/MapVC-AddressTableViewDelegate-Extension.swift /Users/aaronb/Development/Air-End/Air-End/UIColor+Extension.swift /Users/aaronb/Development/Air-End/Air-End/TextToEnum-\ Extentsion.swift /Users/aaronb/Development/Air-End/Air-End/ListVC.swift /Users/aaronb/Development/Air-End/Air-End/Guidance.swift /Users/aaronb/Development/Air-End/Air-End/MapVC.swift /Users/aaronb/Development/Air-End/Air-End/CorrectAddressTableView.swift /Users/aaronb/Development/Air-End/Air-End/ViewController-Conversions-Extension.swift /Users/aaronb/Development/Air-End/Air-End/ViewController-Extension.swift /Users/aaronb/Development/Air-End/Air-End/MapVC-Guidance-ExtensionViewController.swift /Users/aaronb/Development/Air-End/Air-End/launchScreenViewController.swift /Users/aaronb/Development/Air-End/Air-End/NewTaskVC.swift /Users/aaronb/Development/Air-End/Air-End/Theme.swift /Users/aaronb/Development/Air-End/Air-End/MapVC-SegmentedControl-Extension.swift /Users/aaronb/Development/Air-End/Air-End/TaskMapView.swift /Users/aaronb/Development/Air-End/Air-End/Noun.swift /Users/aaronb/Development/Air-End/Air-End/Task.swift /Users/aaronb/Development/Air-End/Air-End/TaskMapVC.swift /Users/aaronb/Development/Air-End/Air-End/ListVC-LocationExtension.swift /Users/aaronb/Development/Air-End/Air-End/TaskMapViewDelegate.swift /Users/aaronb/Development/Air-End/Air-End/AppDelegate.swift /Users/aaronb/Development/Air-End/Air-End/ColoredDatePicker.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreLocation.swiftmodule /Users/aaronb/Development/Air-End/RealmSwift.framework/Modules/RealmSwift.swiftmodule/x86_64.swiftmodule ./Realm.framework/Headers/RLMObjectBase_Dynamic.h ./Realm.framework/Headers/RLMRealm_Dynamic.h ./Realm.framework/PrivateHeaders/RLMSchema_Private.h ./Realm.framework/PrivateHeaders/RLMResults_Private.h ./Realm.framework/PrivateHeaders/RLMRealm_Private.h ./Realm.framework/PrivateHeaders/RLMRealmConfiguration_Private.h ./Realm.framework/PrivateHeaders/RLMProperty_Private.h ./Realm.framework/PrivateHeaders/RLMOptionalBase.h ./Realm.framework/PrivateHeaders/RLMObject_Private.h ./Realm.framework/PrivateHeaders/RLMObjectStore.h ./Realm.framework/PrivateHeaders/RLMObjectSchema_Private.h ./Realm.framework/PrivateHeaders/RLMMigration_Private.h ./Realm.framework/PrivateHeaders/RLMListBase.h ./Realm.framework/PrivateHeaders/RLMArray_Private.h ./Realm.framework/PrivateHeaders/RLMAccessor.h ./Realm.framework/Headers/RLMSchema.h ./Realm.framework/Headers/RLMResults.h ./Realm.framework/Headers/RLMRealmConfiguration.h ./Realm.framework/Headers/RLMRealm.h ./Realm.framework/Headers/RLMConstants.h ./Realm.framework/Headers/RLMProperty.h ./Realm.framework/Headers/RLMPlatform.h ./Realm.framework/Headers/RLMObjectSchema.h ./Realm.framework/Headers/RLMObjectBase.h ./Realm.framework/Headers/RLMObject.h ./Realm.framework/Headers/RLMMigration.h ./Realm.framework/Headers/RLMDefines.h ./Realm.framework/Headers/RLMCollection.h ./Realm.framework/Headers/RLMArray.h ./Realm.framework/Headers/Realm.h ./Realm.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreData.swiftmodule
/Users/aaronb/Development/Air-End/DerivedData/Air-End/Build/Intermediates/Mango.build/Debug-iphonesimulator/Mango.build/Objects-normal/x86_64/AppDelegate~partial.swiftmodule : /Users/aaronb/Development/Air-End/Air-End/MapVC-AddressTableViewDelegate-Extension.swift /Users/aaronb/Development/Air-End/Air-End/UIColor+Extension.swift /Users/aaronb/Development/Air-End/Air-End/TextToEnum-\ Extentsion.swift /Users/aaronb/Development/Air-End/Air-End/ListVC.swift /Users/aaronb/Development/Air-End/Air-End/Guidance.swift /Users/aaronb/Development/Air-End/Air-End/MapVC.swift /Users/aaronb/Development/Air-End/Air-End/CorrectAddressTableView.swift /Users/aaronb/Development/Air-End/Air-End/ViewController-Conversions-Extension.swift /Users/aaronb/Development/Air-End/Air-End/ViewController-Extension.swift /Users/aaronb/Development/Air-End/Air-End/MapVC-Guidance-ExtensionViewController.swift /Users/aaronb/Development/Air-End/Air-End/launchScreenViewController.swift /Users/aaronb/Development/Air-End/Air-End/NewTaskVC.swift /Users/aaronb/Development/Air-End/Air-End/Theme.swift /Users/aaronb/Development/Air-End/Air-End/MapVC-SegmentedControl-Extension.swift /Users/aaronb/Development/Air-End/Air-End/TaskMapView.swift /Users/aaronb/Development/Air-End/Air-End/Noun.swift /Users/aaronb/Development/Air-End/Air-End/Task.swift /Users/aaronb/Development/Air-End/Air-End/TaskMapVC.swift /Users/aaronb/Development/Air-End/Air-End/ListVC-LocationExtension.swift /Users/aaronb/Development/Air-End/Air-End/TaskMapViewDelegate.swift /Users/aaronb/Development/Air-End/Air-End/AppDelegate.swift /Users/aaronb/Development/Air-End/Air-End/ColoredDatePicker.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreLocation.swiftmodule /Users/aaronb/Development/Air-End/RealmSwift.framework/Modules/RealmSwift.swiftmodule/x86_64.swiftmodule ./Realm.framework/Headers/RLMObjectBase_Dynamic.h ./Realm.framework/Headers/RLMRealm_Dynamic.h ./Realm.framework/PrivateHeaders/RLMSchema_Private.h ./Realm.framework/PrivateHeaders/RLMResults_Private.h ./Realm.framework/PrivateHeaders/RLMRealm_Private.h ./Realm.framework/PrivateHeaders/RLMRealmConfiguration_Private.h ./Realm.framework/PrivateHeaders/RLMProperty_Private.h ./Realm.framework/PrivateHeaders/RLMOptionalBase.h ./Realm.framework/PrivateHeaders/RLMObject_Private.h ./Realm.framework/PrivateHeaders/RLMObjectStore.h ./Realm.framework/PrivateHeaders/RLMObjectSchema_Private.h ./Realm.framework/PrivateHeaders/RLMMigration_Private.h ./Realm.framework/PrivateHeaders/RLMListBase.h ./Realm.framework/PrivateHeaders/RLMArray_Private.h ./Realm.framework/PrivateHeaders/RLMAccessor.h ./Realm.framework/Headers/RLMSchema.h ./Realm.framework/Headers/RLMResults.h ./Realm.framework/Headers/RLMRealmConfiguration.h ./Realm.framework/Headers/RLMRealm.h ./Realm.framework/Headers/RLMConstants.h ./Realm.framework/Headers/RLMProperty.h ./Realm.framework/Headers/RLMPlatform.h ./Realm.framework/Headers/RLMObjectSchema.h ./Realm.framework/Headers/RLMObjectBase.h ./Realm.framework/Headers/RLMObject.h ./Realm.framework/Headers/RLMMigration.h ./Realm.framework/Headers/RLMDefines.h ./Realm.framework/Headers/RLMCollection.h ./Realm.framework/Headers/RLMArray.h ./Realm.framework/Headers/Realm.h ./Realm.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreData.swiftmodule
/Users/aaronb/Development/Air-End/DerivedData/Air-End/Build/Intermediates/Mango.build/Debug-iphonesimulator/Mango.build/Objects-normal/x86_64/AppDelegate~partial.swiftdoc : /Users/aaronb/Development/Air-End/Air-End/MapVC-AddressTableViewDelegate-Extension.swift /Users/aaronb/Development/Air-End/Air-End/UIColor+Extension.swift /Users/aaronb/Development/Air-End/Air-End/TextToEnum-\ Extentsion.swift /Users/aaronb/Development/Air-End/Air-End/ListVC.swift /Users/aaronb/Development/Air-End/Air-End/Guidance.swift /Users/aaronb/Development/Air-End/Air-End/MapVC.swift /Users/aaronb/Development/Air-End/Air-End/CorrectAddressTableView.swift /Users/aaronb/Development/Air-End/Air-End/ViewController-Conversions-Extension.swift /Users/aaronb/Development/Air-End/Air-End/ViewController-Extension.swift /Users/aaronb/Development/Air-End/Air-End/MapVC-Guidance-ExtensionViewController.swift /Users/aaronb/Development/Air-End/Air-End/launchScreenViewController.swift /Users/aaronb/Development/Air-End/Air-End/NewTaskVC.swift /Users/aaronb/Development/Air-End/Air-End/Theme.swift /Users/aaronb/Development/Air-End/Air-End/MapVC-SegmentedControl-Extension.swift /Users/aaronb/Development/Air-End/Air-End/TaskMapView.swift /Users/aaronb/Development/Air-End/Air-End/Noun.swift /Users/aaronb/Development/Air-End/Air-End/Task.swift /Users/aaronb/Development/Air-End/Air-End/TaskMapVC.swift /Users/aaronb/Development/Air-End/Air-End/ListVC-LocationExtension.swift /Users/aaronb/Development/Air-End/Air-End/TaskMapViewDelegate.swift /Users/aaronb/Development/Air-End/Air-End/AppDelegate.swift /Users/aaronb/Development/Air-End/Air-End/ColoredDatePicker.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreLocation.swiftmodule /Users/aaronb/Development/Air-End/RealmSwift.framework/Modules/RealmSwift.swiftmodule/x86_64.swiftmodule ./Realm.framework/Headers/RLMObjectBase_Dynamic.h ./Realm.framework/Headers/RLMRealm_Dynamic.h ./Realm.framework/PrivateHeaders/RLMSchema_Private.h ./Realm.framework/PrivateHeaders/RLMResults_Private.h ./Realm.framework/PrivateHeaders/RLMRealm_Private.h ./Realm.framework/PrivateHeaders/RLMRealmConfiguration_Private.h ./Realm.framework/PrivateHeaders/RLMProperty_Private.h ./Realm.framework/PrivateHeaders/RLMOptionalBase.h ./Realm.framework/PrivateHeaders/RLMObject_Private.h ./Realm.framework/PrivateHeaders/RLMObjectStore.h ./Realm.framework/PrivateHeaders/RLMObjectSchema_Private.h ./Realm.framework/PrivateHeaders/RLMMigration_Private.h ./Realm.framework/PrivateHeaders/RLMListBase.h ./Realm.framework/PrivateHeaders/RLMArray_Private.h ./Realm.framework/PrivateHeaders/RLMAccessor.h ./Realm.framework/Headers/RLMSchema.h ./Realm.framework/Headers/RLMResults.h ./Realm.framework/Headers/RLMRealmConfiguration.h ./Realm.framework/Headers/RLMRealm.h ./Realm.framework/Headers/RLMConstants.h ./Realm.framework/Headers/RLMProperty.h ./Realm.framework/Headers/RLMPlatform.h ./Realm.framework/Headers/RLMObjectSchema.h ./Realm.framework/Headers/RLMObjectBase.h ./Realm.framework/Headers/RLMObject.h ./Realm.framework/Headers/RLMMigration.h ./Realm.framework/Headers/RLMDefines.h ./Realm.framework/Headers/RLMCollection.h ./Realm.framework/Headers/RLMArray.h ./Realm.framework/Headers/Realm.h ./Realm.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreData.swiftmodule
| D |
instance Mod_7733_BDT_Bandit_EIS (Npc_Default)
{
// ------ NSC ------
name = NAME_Bandit;
guild = GIL_STRF;
id = 7733;
voice = 0;
flags = 0;
npctype = NPCTYPE_MT_BANDIT;
// ------ Aivars ------
//aivar[AIV_EnemyOverride] = TRUE;
// ------ Attribute ------
B_SetAttributesToChapter (self, 4);
aivar[AIV_ToughGuy] = TRUE;
aivar[AIV_IGNORE_Murder] = TRUE;
// ------ Kampf-Taktik ------
fight_tactic = FAI_HUMAN_STRONG ;
// ------ Equippte Waffen ------
EquipItem (self, ItMw_Banditenschwert);
// ------ Inventory ------
B_CreateAmbientInv (self);
// ------ visuals ------
B_SetNpcVisual (self, MALE, "Hum_Head_Bald", Face_N_Bartholo, BodyTex_N, ITAR_bdt_m_01);
Mdl_SetModelFatness (self, 0);
Mdl_ApplyOverlayMds (self, "Humans_Relaxed.mds");
// ------ NSC-relevante Talente vergeben ------
B_GiveNpcTalents (self);
// ------ Kampf-Talente ------
B_SetFightSkills (self, 60);
// ------ TA anmelden ------
daily_routine = Rtn_Start_7733;
};
FUNC VOID Rtn_Start_7733 ()
{
TA_Stand_ArmsCrossed (08,00,20,00,"NORDOSTENLOCH_11");
TA_Stand_ArmsCrossed (20,00,08,00,"NORDOSTENLOCH_11");
}; | D |
module ddebug.gdb.gdbinterface;
public import ddebug.common.debugger;
import ddebug.common.execution;
import dlangui.core.logger;
import ddebug.common.queue;
import dlangide.builders.extprocess;
import ddebug.gdb.gdbmiparser;
import std.utf;
import std.conv : to;
import std.array : empty;
import std.algorithm : startsWith, endsWith, equal;
import core.thread;
abstract class ConsoleDebuggerInterface : DebuggerBase, TextWriter {
protected ExternalProcess _debuggerProcess;
protected ExternalProcessState runDebuggerProcess(string executable, string[]args, string dir) {
_debuggerProcess = new ExternalProcess();
ExternalProcessState state = _debuggerProcess.run(executable, args, dir, this);
return state;
}
private string[] _stdoutLines;
private char[] _stdoutBuf;
/// return true to clear lines list
protected bool onDebuggerStdoutLines(string[] lines) {
foreach(line; lines) {
onDebuggerStdoutLine(line);
}
return true;
}
protected void onDebuggerStdoutLine(string line) {
}
private void onStdoutText(string text) {
Log.v("onStdoutText: ", text);
_stdoutBuf ~= text;
// pass full lines
int startPos = 0;
bool fullLinesFound = false;
for (int i = 0; i < _stdoutBuf.length; i++) {
if (_stdoutBuf[i] == '\n' || _stdoutBuf[i] == '\r') {
if (i <= startPos)
_stdoutLines ~= "";
else
_stdoutLines ~= _stdoutBuf[startPos .. i].dup;
fullLinesFound = true;
if (i + 1 < _stdoutBuf.length) {
if ((_stdoutBuf[i] == '\n' && _stdoutBuf[i + 1] == '\r')
|| (_stdoutBuf[i] == '\r' && _stdoutBuf[i + 1] == '\n'))
i++;
}
startPos = i + 1;
}
}
if (fullLinesFound) {
//Log.v("onStdoutText: full lines found");
for (int i = 0; i + startPos < _stdoutBuf.length; i++)
_stdoutBuf[i] = _stdoutBuf[i + startPos];
_stdoutBuf.length = _stdoutBuf.length - startPos;
if (onDebuggerStdoutLines(_stdoutLines)) {
_stdoutLines.length = 0;
}
}
}
bool sendLine(string text) {
return _debuggerProcess.write(text ~ "\n");
}
/// log lines
override void writeText(dstring text) {
string text8 = toUTF8(text);
postRequest(delegate() {
onStdoutText(text8);
});
}
}
interface TextCommandTarget {
/// send command as a text string
int sendCommand(string text, int commandId = 0);
/// reserve next command id
int reserveCommandId();
}
import std.process;
class GDBInterface : ConsoleDebuggerInterface, TextCommandTarget {
this() {
_requests.setTarget(this);
}
// last command id
private int _commandId;
int reserveCommandId() {
_commandId++;
return _commandId;
}
int sendCommand(string text, int id = 0) {
ExternalProcessState state = _debuggerProcess.poll();
if (state != ExternalProcessState.Running) {
_stopRequested = true;
return 0;
}
if (!id)
id = reserveCommandId();
string cmd = to!string(id) ~ text;
Log.d("GDB command[", id, "]> ", text);
sendLine(cmd);
return id;
}
Pid terminalPid;
string externalTerminalTty;
string startTerminal() {
if (!_terminalTty.empty)
return _terminalTty;
Log.d("Starting terminal ", _terminalExecutable);
import std.random;
import std.file;
import std.path;
import std.string;
import core.thread;
uint n = uniform(0, 0x10000000, rndGen());
externalTerminalTty = null;
string termfile = buildPath(tempDir, format("dlangide-term-name-%07x.tmp", n));
Log.d("temp file for tty name: ", termfile);
try {
string[] args = [
_terminalExecutable,
"-title",
"DLangIDE External Console",
"-e",
"echo 'DlangIDE External Console' && tty > " ~ termfile ~ " && sleep 1000000"
];
Log.d("Terminal command line: ", args);
terminalPid = spawnProcess(args);
for (int i = 0; i < 80; i++) {
Thread.sleep(dur!"msecs"(100));
if (!isTerminalActive) {
Log.e("Failed to get terminal TTY");
return null;
}
if (exists(termfile)) {
Thread.sleep(dur!"msecs"(20));
break;
}
}
// read TTY from file
if (exists(termfile)) {
externalTerminalTty = readText(termfile);
if (externalTerminalTty.endsWith("\n"))
externalTerminalTty = externalTerminalTty[0 .. $-1];
// delete file
remove(termfile);
Log.d("Terminal tty: ", externalTerminalTty);
}
} catch (Exception e) {
Log.e("Failed to start terminal ", e);
killTerminal();
}
if (externalTerminalTty.length == 0) {
Log.i("Cannot start terminal");
killTerminal();
} else {
Log.i("Terminal: ", externalTerminalTty);
}
return externalTerminalTty;
}
bool isTerminalActive() {
if (!_terminalTty.empty)
return true;
if (_terminalExecutable.empty)
return true;
if (terminalPid is null)
return false;
auto res = tryWait(terminalPid);
if (res.terminated) {
Log.d("isTerminalActive: Terminal is stopped");
wait(terminalPid);
terminalPid = Pid.init;
return false;
} else {
return true;
}
}
void killTerminal() {
if (!_terminalTty.empty)
return;
if (_terminalExecutable.empty)
return;
if (terminalPid is null)
return;
try {
Log.d("Trying to kill terminal");
kill(terminalPid, 9);
Log.d("Waiting for terminal process termination");
wait(terminalPid);
terminalPid = Pid.init;
Log.d("Killed");
} catch (Exception e) {
Log.d("Exception while killing terminal", e);
terminalPid = Pid.init;
}
}
override void startDebugging() {
Log.d("GDBInterface.startDebugging()");
string[] debuggerArgs;
if (!_terminalExecutable.empty || !_terminalTty.empty) {
externalTerminalTty = startTerminal();
if (externalTerminalTty.length == 0) {
//_callback.onResponse(ResponseCode.CannotRunDebugger, "Cannot start terminal");
_status = ExecutionStatus.Error;
_stopRequested = true;
return;
}
if (!USE_INIT_SEQUENCE) {
debuggerArgs ~= "-tty";
debuggerArgs ~= externalTerminalTty;
}
}
debuggerArgs ~= "--interpreter";
debuggerArgs ~= "mi2";
debuggerArgs ~= "--silent";
if (!USE_INIT_SEQUENCE) {
debuggerArgs ~= "--args";
debuggerArgs ~= _executableFile;
foreach(arg; _executableArgs)
debuggerArgs ~= arg;
}
ExternalProcessState state = runDebuggerProcess(_debuggerExecutable, debuggerArgs, _executableWorkingDir);
Log.i("Debugger process state:", state);
if (USE_INIT_SEQUENCE) {
if (state == ExternalProcessState.Running) {
submitInitRequests();
} else {
_status = ExecutionStatus.Error;
_stopRequested = true;
return;
}
} else {
if (state == ExternalProcessState.Running) {
Thread.sleep(dur!"seconds"(1));
_callback.onProgramLoaded(true, true);
//sendCommand("-break-insert main");
} else {
_status = ExecutionStatus.Error;
_stopRequested = true;
return;
}
}
}
immutable bool USE_INIT_SEQUENCE = true;
override protected void onDebuggerThreadFinished() {
Log.d("Debugger thread finished");
if (_debuggerProcess !is null) {
Log.d("Killing debugger process");
_debuggerProcess.kill();
Log.d("Waiting for debugger process finishing");
//_debuggerProcess.wait();
}
killTerminal();
Log.d("Sending execution status");
_callback.onProgramExecutionStatus(this, _status, _exitCode);
}
bool _threadJoined = false;
override void stop() {
if (_stopRequested) {
Log.w("GDBInterface.stop() - _stopRequested flag already set");
return;
}
_stopRequested = true;
Log.d("GDBInterface.stop()");
postRequest(delegate() {
Log.d("GDBInterface.stop() processing in queue");
execStop();
});
Thread.sleep(dur!"msecs"(200));
postRequest(delegate() {
});
_queue.close();
if (!_threadJoined) {
_threadJoined = true;
if (_threadStarted) {
try {
join();
} catch (Exception e) {
Log.e("Exception while trying to join debugger thread");
}
}
}
}
/// start program execution, can be called after program is loaded
int _startRequestId;
void execStart() {
submitRequest("handle SIGUSR1 nostop noprint");
submitRequest("handle SIGUSR2 nostop noprint");
_startRequestId = submitRequest("-exec-run");
}
void execAbort() {
_startRequestId = submitRequest("-exec-abort");
}
/// start program execution, can be called after program is loaded
int _continueRequestId;
void execContinue() {
_continueRequestId = submitRequest("-exec-continue");
}
/// stop program execution
int _stopRequestId;
void execStop() {
_continueRequestId = submitRequest("-gdb-exit");
}
/// interrupt execution
int _pauseRequestId;
void execPause() {
_pauseRequestId = submitRequest("-exec-interrupt", true);
}
/// step over
int _stepOverRequestId;
void execStepOver(ulong threadId) {
_stepOverRequestId = submitRequest("-exec-next".appendThreadParam(threadId));
}
/// step in
int _stepInRequestId;
void execStepIn(ulong threadId) {
_stepInRequestId = submitRequest("-exec-step".appendThreadParam(threadId));
}
/// step out
int _stepOutRequestId;
void execStepOut(ulong threadId) {
_stepOutRequestId = submitRequest("-exec-finish".appendThreadParam(threadId));
}
/// restart
int _restartRequestId;
void execRestart() {
//_restartRequestId = sendCommand("-exec-restart");
}
private GDBBreakpoint[] _breakpoints;
private static class GDBBreakpoint {
Breakpoint bp;
string number;
int createRequestId;
}
private GDBBreakpoint findBreakpoint(Breakpoint bp) {
foreach(gdbbp; _breakpoints) {
if (gdbbp.bp.id == bp.id)
return gdbbp;
}
return null;
}
private GDBBreakpoint findBreakpointByNumber(string number) {
if (number.empty)
return null;
foreach(gdbbp; _breakpoints) {
if (gdbbp.number.equal(number))
return gdbbp;
}
return null;
}
static string quotePathIfNeeded(string s) {
char[] buf;
buf.assumeSafeAppend();
bool hasSpaces = false;
for(uint i = 0; i < s.length; i++) {
if (s[i] == ' ')
hasSpaces = true;
}
if (hasSpaces)
buf ~= '\"';
for(uint i = 0; i < s.length; i++) {
char ch = s[i];
if (ch == '\t')
buf ~= "\\t";
else if (ch == '\n')
buf ~= "\\n";
else if (ch == '\r')
buf ~= "\\r";
else if (ch == '\\')
buf ~= "\\\\";
else
buf ~= ch;
}
if (hasSpaces)
buf ~= '\"';
return buf.dup;
}
class AddBreakpointRequest : GDBRequest {
GDBBreakpoint gdbbp;
this(Breakpoint bp) {
gdbbp = new GDBBreakpoint();
gdbbp.bp = bp;
char[] cmd;
cmd ~= "-break-insert ";
if (!bp.enabled)
cmd ~= "-d "; // create disabled
cmd ~= quotePathIfNeeded(bp.fullFilePath);
cmd ~= ":";
cmd ~= to!string(bp.line);
command = cmd.dup;
_breakpoints ~= gdbbp;
}
override void onResult() {
if (MIValue bkpt = params["bkpt"]) {
string number = bkpt.getString("number");
gdbbp.number = number;
Log.d("GDB number for breakpoint " ~ gdbbp.bp.id.to!string ~ " assigned is " ~ number);
}
}
}
/// update list of breakpoints
void setBreakpoints(Breakpoint[] breakpoints) {
char[] breakpointsToDelete;
char[] breakpointsToEnable;
char[] breakpointsToDisable;
// checking for removed breakpoints
for (int i = cast(int)_breakpoints.length - 1; i >= 0; i--) {
bool found = false;
foreach(bp; breakpoints)
if (bp.id == _breakpoints[i].bp.id) {
found = true;
break;
}
if (!found) {
for (int j = i; j < _breakpoints.length - 1; j++)
_breakpoints[j] = _breakpoints[j + 1];
if (breakpointsToDelete.length)
breakpointsToDelete ~= ",";
breakpointsToDelete ~= _breakpoints[i].number;
_breakpoints.length = _breakpoints.length - 1;
}
}
// checking for added or updated breakpoints
foreach(bp; breakpoints) {
GDBBreakpoint existing = findBreakpoint(bp);
if (!existing) {
submitRequest(new AddBreakpointRequest(bp));
} else {
if (bp.enabled && !existing.bp.enabled) {
if (breakpointsToEnable.length)
breakpointsToEnable ~= ",";
breakpointsToEnable ~= existing.number;
existing.bp.enabled = true;
} else if (!bp.enabled && existing.bp.enabled) {
if (breakpointsToDisable.length)
breakpointsToDisable ~= ",";
breakpointsToDisable ~= existing.number;
existing.bp.enabled = false;
}
}
}
if (breakpointsToDelete.length) {
Log.d("Deleting breakpoints: " ~ breakpointsToDelete);
submitRequest(("-break-delete " ~ breakpointsToDelete).dup);
}
if (breakpointsToEnable.length) {
Log.d("Enabling breakpoints: " ~ breakpointsToEnable);
submitRequest(("-break-enable " ~ breakpointsToEnable).dup);
}
if (breakpointsToDisable.length) {
Log.d("Disabling breakpoints: " ~ breakpointsToDisable);
submitRequest(("-break-disable " ~ breakpointsToDisable).dup);
}
}
// ~message
void handleStreamLineCLI(string s) {
Log.d("GDB CLI: ", s);
if (s.length >= 2 && s.startsWith('\"') && s.endsWith('\"'))
s = parseCString(s);
_callback.onDebuggerMessage(s);
}
// @message
void handleStreamLineProgram(string s) {
Log.d("GDB program stream: ", s);
//_callback.onDebuggerMessage(s);
}
// &message
void handleStreamLineGDBDebug(string s) {
Log.d("GDB internal debug message: ", s);
}
long _stoppedThreadId = 0;
// *stopped,reason="exited-normally"
// *running,thread-id="all"
// *asyncclass,result
void handleExecAsyncMessage(uint token, string s) {
string msgType = parseIdentAndSkipComma(s);
AsyncClass msgId = asyncByName(msgType);
if (msgId == AsyncClass.other)
Log.d("GDB WARN unknown async class type: ", msgType);
MIValue params = parseMI(s);
if (!params) {
Log.e("Failed to parse exec state params");
return;
}
Log.v("GDB async *[", token, "] ", msgType, " params: ", params.toString);
string reason = params.getString("reason");
if (msgId == AsyncClass.running) {
_callback.onDebugState(DebuggingState.running, StateChangeReason.unknown, null, null);
} else if (msgId == AsyncClass.stopped) {
StateChangeReason reasonId = StateChangeReason.unknown;
DebugFrame location = parseFrame(params["frame"]);
string threadId = params.getString("thread-id");
_stoppedThreadId = params.getUlong("thread-id", 0);
string stoppedThreads = params.getString("all");
Breakpoint bp = null;
if (reason.equal("end-stepping-range")) {
updateState();
_callback.onDebugState(DebuggingState.paused, StateChangeReason.endSteppingRange, location, bp);
} else if (reason.equal("breakpoint-hit")) {
Log.v("handling breakpoint-hit");
if (GDBBreakpoint gdbbp = findBreakpointByNumber(params.getString("bkptno"))) {
bp = gdbbp.bp;
if (!location && bp) {
location = new DebugFrame();
location.fillMissingFields(bp);
}
}
//_requests.targetIsReady();
updateState();
_callback.onDebugState(DebuggingState.paused, StateChangeReason.breakpointHit, location, bp);
} else if (reason.equal("signal-received")) {
//_requests.targetIsReady();
updateState();
_callback.onDebugState(DebuggingState.paused, StateChangeReason.exception, location, bp);
} else if (reason.equal("exited-normally")) {
_exitCode = 0;
Log.i("Program exited. Exit code ", _exitCode);
_callback.onDebugState(DebuggingState.stopped, StateChangeReason.exited, null, null);
} else if (reason.equal("exited")) {
_exitCode = params.getInt("exit-code");
Log.i("Program exited. Exit code ", _exitCode);
_callback.onDebugState(DebuggingState.stopped, StateChangeReason.exited, null, null);
} else if (reason.equal("exited-signalled")) {
_exitCode = -2; //params.getInt("exit-code");
string signalName = params.getString("signal-name");
string signalMeaning = params.getString("signal-meaning");
Log.i("Program exited by signal. Signal code: ", signalName, " Signal meaning: ", signalMeaning);
_callback.onDebugState(DebuggingState.stopped, StateChangeReason.exited, null, null);
} else {
_exitCode = -1;
_callback.onDebugState(DebuggingState.stopped, StateChangeReason.exited, null, null);
}
} else {
Log.e("unknown async type `", msgType, "`");
}
}
int _stackListLocalsRequest;
DebugThreadList _currentState;
void updateState() {
_currentState = null;
submitRequest(new ThreadInfoRequest());
}
// +asyncclass,result
void handleStatusAsyncMessage(uint token, string s) {
string msgType = parseIdentAndSkipComma(s);
AsyncClass msgId = asyncByName(msgType);
if (msgId == AsyncClass.other)
Log.d("GDB WARN unknown async class type: ", msgType);
Log.v("GDB async +[", token, "] ", msgType, " params: ", s);
}
// =asyncclass,result
void handleNotifyAsyncMessage(uint token, string s) {
string msgType = parseIdentAndSkipComma(s);
AsyncClass msgId = asyncByName(msgType);
if (msgId == AsyncClass.other)
Log.d("GDB WARN unknown async class type: ", msgType);
Log.v("GDB async =[", token, "] ", msgType, " params: ", s);
}
// ^resultClass,result
void handleResultMessage(uint token, string s) {
Log.v("GDB result ^[", token, "] ", s);
string msgType = parseIdentAndSkipComma(s);
ResultClass msgId = resultByName(msgType);
if (msgId == ResultClass.other)
Log.d("GDB WARN unknown result class type: ", msgType);
MIValue params = parseMI(s);
Log.v("GDB result ^[", token, "] ", msgType, " params: ", (params ? params.toString : "unparsed: " ~ s));
if (_requests.handleResult(token, msgId, params)) {
// handled using result list
} else {
Log.w("received results for unknown request");
}
}
GDBRequestList _requests;
/// submit single request or request chain
void submitRequest(GDBRequest[] requests ... ) {
for (int i = 0; i + 1 < requests.length; i++)
requests[i].chain(requests[i + 1]);
_requests.submit(requests[0]);
}
/// submit simple text command request
int submitRequest(string text, bool forceNoWaitDebuggerReady = false) {
auto request = new GDBRequest(text);
_requests.submit(request, forceNoWaitDebuggerReady);
return request.id;
}
/// request stack trace and local vars for thread and frame
void requestDebugContextInfo(ulong threadId, int frame) {
Log.d("requestDebugContextInfo threadId=", threadId, " frame=", frame);
submitRequest(new StackListFramesRequest(threadId, frame));
}
private int initRequestsSuccessful = 0;
private int initRequestsError = 0;
private int initRequestsWarnings = 0;
private int totalInitRequests = 0;
private int finishedInitRequests = 0;
class GDBInitRequest : GDBRequest {
bool _mandatory;
this(string cmd, bool mandatory) {
command = cmd;
_mandatory = mandatory;
totalInitRequests++;
}
override void onOtherResult() {
initRequestsSuccessful++;
finishedInitRequests++;
checkFinished();
}
override void onResult() {
initRequestsSuccessful++;
finishedInitRequests++;
checkFinished();
}
/// called if resultClass is error
override void onError() {
if (_mandatory)
initRequestsError++;
else
initRequestsWarnings++;
finishedInitRequests++;
checkFinished();
}
void checkFinished() {
if (initRequestsError)
initRequestsCompleted(false);
else if (finishedInitRequests == totalInitRequests)
initRequestsCompleted(true);
}
}
void initRequestsCompleted(bool successful = true) {
Log.d("Init sequence complection result: ", successful);
if (successful) {
// ok
_callback.onProgramLoaded(true, true);
} else {
// error
_requests.cancelPendingRequests();
_status = ExecutionStatus.Error;
_stopRequested = true;
}
}
void submitInitRequests() {
initRequestsSuccessful = 0;
initRequestsError = 0;
totalInitRequests = 0;
initRequestsWarnings = 0;
finishedInitRequests = 0;
submitRequest(new GDBInitRequest("-environment-cd " ~ quotePathIfNeeded(_executableWorkingDir), true));
if (externalTerminalTty)
submitRequest(new GDBInitRequest("-inferior-tty-set " ~ quotePathIfNeeded(externalTerminalTty), true));
submitRequest(new GDBInitRequest("-gdb-set breakpoint pending on", false));
//submitRequest(new GDBInitRequest("-enable-pretty-printing", false));
submitRequest(new GDBInitRequest("-gdb-set print object on", false));
submitRequest(new GDBInitRequest("-gdb-set print sevenbit-strings on", false));
submitRequest(new GDBInitRequest("-gdb-set host-charset UTF-8", false));
//11-gdb-set target-charset WINDOWS-1252
//12-gdb-set target-wide-charset UTF-16
//13source .gdbinit
submitRequest(new GDBInitRequest("-gdb-set target-async off", false));
submitRequest(new GDBInitRequest("-gdb-set auto-solib-add on", false));
if (_executableArgs.length) {
char[] buf;
for(uint i = 0; i < _executableArgs.length; i++) {
if (i > 0)
buf ~= " ";
buf ~= quotePathIfNeeded(_executableArgs[i]);
}
submitRequest(new GDBInitRequest(("-exec-arguments " ~ buf).dup, true));
}
submitRequest(new GDBInitRequest("-file-exec-and-symbols " ~ quotePathIfNeeded(_executableFile), true));
//debuggerArgs ~= _executableFile;
//foreach(arg; _executableArgs)
// debuggerArgs ~= arg;
//ExternalProcessState state = runDebuggerProcess(_debuggerExecutable, debuggerArgs, _executableWorkingDir);
//17-gdb-show language
//18-gdb-set language c
//19-interpreter-exec console "p/x (char)-1"
//20-data-evaluate-expression "sizeof (void*)"
//21-gdb-set language auto
}
class ThreadInfoRequest : GDBRequest {
this() { command = "-thread-info"; }
override void onResult() {
_currentState = parseThreadList(params);
if (_currentState) {
// TODO
Log.d("Thread list is parsed");
if (!_currentState.currentThreadId)
_currentState.currentThreadId = _stoppedThreadId;
submitRequest(new StackListFramesRequest(_currentState.currentThreadId, 0));
}
}
}
class StackListFramesRequest : GDBRequest {
private ulong _threadId;
private int _frameId;
this(ulong threadId, int frameId) {
_threadId = threadId;
_frameId = frameId;
if (!_threadId)
_threadId = _currentState ? _currentState.currentThreadId : 0;
command = "-stack-list-frames --thread " ~ to!string(_threadId);
}
override void onResult() {
DebugStack stack = parseStack(params);
if (stack) {
// TODO
Log.d("Stack frames list is parsed: " ~ to!string(stack));
if (_currentState) {
if (DebugThread currentThread = _currentState.findThread(_threadId)) {
currentThread.stack = stack;
Log.d("Setting stack frames for current thread");
}
submitRequest(new LocalVariableListRequest(_threadId, _frameId));
}
}
}
}
class LocalVariableListRequest : GDBRequest {
ulong _threadId;
int _frameId;
this(ulong threadId, int frameId) {
_threadId = threadId;
_frameId = frameId;
//command = "-stack-list-variables --thread " ~ to!string(_threadId) ~ " --frame " ~ to!string(_frameId) ~ " --simple-values";
command = "-stack-list-locals --thread " ~ to!string(_threadId) ~ " --frame " ~ to!string(_frameId) ~ " 1";
}
override void onResult() {
DebugVariableList variables = parseVariableList(params, "locals");
if (variables) {
// TODO
Log.d("Variable list is parsed: " ~ to!string(variables));
if (_currentState) {
if (DebugThread currentThread = _currentState.findThread(_threadId)) {
if (currentThread.length > 0) {
if (_frameId > currentThread.length)
_frameId = 0;
if (_frameId < currentThread.length)
currentThread[_frameId].locals = variables;
Log.d("Setting variables for current thread top frame");
_callback.onDebugContextInfo(_currentState.clone(), _threadId, _frameId);
}
}
}
}
}
}
bool _firstIdle = true;
// (gdb)
void onDebuggerIdle() {
Log.d("GDB idle");
_requests.targetIsReady();
if (_firstIdle) {
_firstIdle = false;
return;
}
}
override protected void onDebuggerStdoutLine(string gdbLine) {
Log.d("GDB stdout: '", gdbLine, "'");
string line = gdbLine;
if (line.empty)
return;
// parse token (sequence of digits at the beginning of message)
uint tokenId = 0;
int tokenLen = 0;
while (tokenLen < line.length && line[tokenLen] >= '0' && line[tokenLen] <= '9')
tokenLen++;
if (tokenLen > 0) {
tokenId = to!uint(line[0..tokenLen]);
line = line[tokenLen .. $];
}
if (line.length == 0)
return; // token only, no message!
char firstChar = line[0];
string restLine = line.length > 1 ? line[1..$] : "";
if (firstChar == '~') {
handleStreamLineCLI(restLine);
return;
} else if (firstChar == '@') {
handleStreamLineProgram(restLine);
return;
} else if (firstChar == '&') {
handleStreamLineGDBDebug(restLine);
return;
} else if (firstChar == '*') {
handleExecAsyncMessage(tokenId, restLine);
return;
} else if (firstChar == '+') {
handleStatusAsyncMessage(tokenId, restLine);
return;
} else if (firstChar == '=') {
handleNotifyAsyncMessage(tokenId, restLine);
return;
} else if (firstChar == '^') {
handleResultMessage(tokenId, restLine);
return;
} else if (line.startsWith("(gdb)")) {
onDebuggerIdle();
return;
} else {
Log.d("GDB unprocessed: ", gdbLine);
}
}
}
class GDBRequest {
int id;
string command;
ResultClass resultClass;
MIValue params;
GDBRequest next;
this() {
}
this(string cmdtext) {
command = cmdtext;
}
/// called if resultClass is done
void onResult() {
}
/// called if resultClass is error
void onError() {
}
/// called on other result types
void onOtherResult() {
}
/// chain additional request, for case when previous finished ok
GDBRequest chain(GDBRequest next) {
this.next = next;
return this;
}
}
struct GDBRequestList {
private bool _synchronousMode = false;
void setSynchronousMode(bool flg) {
_synchronousMode = flg;
_ready = _ready | _synchronousMode;
}
private TextCommandTarget _target;
private GDBRequest[int] _activeRequests;
private GDBRequest[] _pendingRequests;
private bool _ready = false;
void setTarget(TextCommandTarget target) {
_target = target;
}
private void executeRequest(GDBRequest request) {
request.id = _target.sendCommand(request.command, request.id);
if (request.id)
_activeRequests[request.id] = request;
}
int submit(GDBRequest request, bool forceNoWaitDebuggerReady = false) {
if (!request.id)
request.id = _target.reserveCommandId();
if (Log.traceEnabled)
Log.v("submitting request " ~ to!string(request.id) ~ " " ~ request.command);
if (_ready || _synchronousMode || forceNoWaitDebuggerReady) {
if (!forceNoWaitDebuggerReady)
_ready = _synchronousMode;
executeRequest(request);
} else
_pendingRequests ~= request;
return request.id;
}
// (gdb) prompt received
void targetIsReady() {
_ready = true;
if (_pendingRequests.length) {
// execute next pending request
GDBRequest next = _pendingRequests[0];
for (uint i = 0; i + 1 < _pendingRequests.length; i++)
_pendingRequests[i] = _pendingRequests[i + 1];
_pendingRequests[$ - 1] = null;
_pendingRequests.length = _pendingRequests.length - 1;
executeRequest(next);
}
}
void cancelPendingRequests() {
foreach(ref r; _pendingRequests)
r = null; // just to help GC
_pendingRequests.length = 0;
}
bool handleResult(int token, ResultClass resultClass, MIValue params) {
if (token in _activeRequests) {
GDBRequest r = _activeRequests[token];
_activeRequests.remove(token);
r.resultClass = resultClass;
r.params = params;
if (resultClass == ResultClass.done) {
r.onResult();
if (r.next)
submit(r.next);
} else if (resultClass == ResultClass.error) {
r.onError();
} else {
r.onOtherResult();
}
return true;
}
return false;
}
}
/// appends --thread parameter to command text if threadId != 0
string appendThreadParam(string src, ulong threadId) {
if (!threadId)
return src;
return src ~= " --thread " ~ to!string(threadId);
}
| D |
/*
TEST_OUTPUT:
---
fail_compilation/fail236.d(14): Error: undefined identifier `x`
fail_compilation/fail236.d(22): Error: template `fail236.Templ2` cannot deduce function from argument types `!()(int)`, candidates are:
fail_compilation/fail236.d(12): `fail236.Templ2(alias a)(x)`
---
*/
// https://issues.dlang.org/show_bug.cgi?id=870
// contradictory error messages for templates
template Templ2(alias a)
{
void Templ2(x)
{
}
}
void main()
{
int i;
Templ2(i);
}
| D |
instance VLK_4107_Parlaf(Npc_Default)
{
name[0] = "Parlaf";
guild = GIL_MIL;
id = 4107;
voice = 3;
flags = 0;
npcType = NPCTYPE_OCMAIN;
B_SetAttributesToChapter(self,1);
fight_tactic = FAI_HUMAN_COWARD;
EquipItem(self,ItMw_1h_Bau_Mace);
B_CreateAmbientInv(self);
B_SetNpcVisual(self,MALE,"Hum_Head_Bald",Face_N_NormalBart_Huno,BodyTex_N,ITAR_Mil_L);
Mdl_SetModelFatness(self,0);
Mdl_ApplyOverlayMds(self,"Humans_Relaxed.mds");
B_GiveNpcTalents(self);
B_SetFightSkills(self,30);
daily_routine = Rtn_Start_4107;
};
func void Rtn_Start_4107()
{
TA_Smith_Sharp(8,0,20,0,"OC_SMITH_SHARP");
TA_Sleep(20,0,8,0,"OC_GUARD_ROOM_01_SLEEP_02");
};
func void Rtn_Tot_4107()
{
TA_Sleep(8,0,20,0,"TOT");
TA_Sleep(20,0,8,0,"TOT");
};
| D |
spell (1) --- check for possible spelling errors 06/21/84
| _U_s_a_g_e
| spell [ -(f | v) ] { <pathname> }
_D_e_s_c_r_i_p_t_i_o_n
'Spell' can be used to check all the words in a document for
presence in a dictionary. Thus, it provides an indication
of words that may be misspelled.
'Spell' has two modes of operation, controlled by the
absence or presence of the "v" option. If the "v" option is
not specified, 'spell' simply produces a list of words that
it thinks are misspelled. If "v" is specified, 'spell' will
also print the original input text, following each line with
a line containing possibly misspelled words. (This is
intended to make the erroneous words easier to locate.)
Each text line is preceded by a blank, while each word list
line is preceded by a plus sign ('+'); if the output is
redirected to /dev/lps/f, this causes all misspelled words
to be boldfaced.
Normally, 'spell' ignores input lines that begin with a
period, since those are normally text formatter control
directives. However, the "-f" option can be used to force
'spell' to process those lines.
| If the template =new_words= is defined, 'spell' will treat
| it as the pathname of a file into which it will append all
| words that it could not find. This file should be
| periodically sorted, uniq'ed, and then checked by hand
| against a dictionary. Any real words found in this manner
| should be added to =dictionary=.
'Spell' supersedes the slower and less functional 'speling'
command.
_E_x_a_m_p_l_e_s
spell report
spell -v report >/dev/lps/f
spell -f arbitrary_text | pg
spell part1 part2 part3 >new_words
files .fmt$ | spell -n
_M_e_s_s_a_g_e_s
"Usage: spell ..." for improper arguments.
"in dsget: out of storage space" if there are too many mis-
| spelled words to handle.
spell (1) - 1 - spell (1)
spell (1) --- check for possible spelling errors 06/21/84
| _B_u_g_s
| Could stand to be made smarter about suffixes and prefixes.
| At least it does now handle words with a trailing "'s".
_S_e_e _A_l_s_o
speling (1)
spell (1) - 2 - spell (1)
| D |
/Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/Build/Intermediates.noindex/CryptoSwift.build/Debug/CryptoSwift.build/Objects-normal/x86_64/StreamDecryptor.o : /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/ChaCha20.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/SHA1.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF1.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/SHA2.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/SHA3.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Poly1305.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/AEAD/AEADChaCha20Poly1305.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/MD5.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PKCS5.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PKCS7.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/UInt128.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/ECB.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/OCB.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/CFB.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/OFB.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/CMAC.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/CBCMAC.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/HMAC.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/CBC.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/PCBC.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/AEAD/AEAD.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/HKDF.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/CCM.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/GCM.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/CTR.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/AES.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/BlockMode.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Updatable.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/DigestType.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Padding.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/ISO78164Padding.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PKCS7Padding.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/NoPadding.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/ZeroPadding.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Blowfish.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Checksum.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/UInt32+Extension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/UInt64+Extension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/UInt16+Extension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/UInt8+Extension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Foundation/Data+Extension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/String+Extension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Collection+Extension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Int+Extension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Array+Extension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Foundation/String+FoundationExtension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Foundation/ChaCha20+Foundation.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Foundation/HMAC+Foundation.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Foundation/AES+Foundation.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Foundation/Blowfish+Foundation.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Foundation/Utils+Foundation.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Foundation/Rabbit+Foundation.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Foundation/Array+Foundation.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BatchedCollection.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/CompactMap.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Cipher.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockCipher.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/CipherModeWorker.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Authenticator.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Cryptor.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockDecryptor.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/StreamDecryptor.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockEncryptor.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/StreamEncryptor.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Generics.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/SecureBytes.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Utils.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/BlockModeOptions.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Operators.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/AES.Cryptors.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Cryptors.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Bit.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Rabbit.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Scrypt.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Digest.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/Build/Intermediates.noindex/CryptoSwift.build/Debug/CryptoSwift.build/Objects-normal/x86_64/StreamDecryptor~partial.swiftmodule : /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/ChaCha20.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/SHA1.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF1.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/SHA2.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/SHA3.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Poly1305.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/AEAD/AEADChaCha20Poly1305.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/MD5.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PKCS5.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PKCS7.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/UInt128.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/ECB.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/OCB.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/CFB.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/OFB.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/CMAC.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/CBCMAC.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/HMAC.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/CBC.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/PCBC.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/AEAD/AEAD.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/HKDF.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/CCM.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/GCM.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/CTR.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/AES.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/BlockMode.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Updatable.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/DigestType.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Padding.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/ISO78164Padding.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PKCS7Padding.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/NoPadding.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/ZeroPadding.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Blowfish.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Checksum.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/UInt32+Extension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/UInt64+Extension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/UInt16+Extension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/UInt8+Extension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Foundation/Data+Extension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/String+Extension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Collection+Extension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Int+Extension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Array+Extension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Foundation/String+FoundationExtension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Foundation/ChaCha20+Foundation.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Foundation/HMAC+Foundation.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Foundation/AES+Foundation.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Foundation/Blowfish+Foundation.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Foundation/Utils+Foundation.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Foundation/Rabbit+Foundation.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Foundation/Array+Foundation.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BatchedCollection.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/CompactMap.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Cipher.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockCipher.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/CipherModeWorker.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Authenticator.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Cryptor.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockDecryptor.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/StreamDecryptor.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockEncryptor.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/StreamEncryptor.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Generics.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/SecureBytes.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Utils.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/BlockModeOptions.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Operators.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/AES.Cryptors.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Cryptors.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Bit.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Rabbit.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Scrypt.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Digest.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/Build/Intermediates.noindex/CryptoSwift.build/Debug/CryptoSwift.build/Objects-normal/x86_64/StreamDecryptor~partial.swiftdoc : /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/ChaCha20.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/SHA1.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF1.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/SHA2.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/SHA3.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Poly1305.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/AEAD/AEADChaCha20Poly1305.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/MD5.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PKCS5.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PKCS7.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/UInt128.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/ECB.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/OCB.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/CFB.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/OFB.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/CMAC.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/CBCMAC.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/HMAC.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/CBC.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/PCBC.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/AEAD/AEAD.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/HKDF.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/CCM.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/GCM.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/CTR.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/AES.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/BlockMode.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Updatable.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/DigestType.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Padding.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/ISO78164Padding.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PKCS7Padding.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/NoPadding.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/ZeroPadding.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Blowfish.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Checksum.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/UInt32+Extension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/UInt64+Extension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/UInt16+Extension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/UInt8+Extension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Foundation/Data+Extension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/String+Extension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Collection+Extension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Int+Extension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Array+Extension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Foundation/String+FoundationExtension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Foundation/ChaCha20+Foundation.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Foundation/HMAC+Foundation.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Foundation/AES+Foundation.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Foundation/Blowfish+Foundation.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Foundation/Utils+Foundation.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Foundation/Rabbit+Foundation.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Foundation/Array+Foundation.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BatchedCollection.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/CompactMap.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Cipher.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockCipher.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/CipherModeWorker.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Authenticator.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Cryptor.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockDecryptor.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/StreamDecryptor.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockEncryptor.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/StreamEncryptor.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Generics.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/SecureBytes.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Utils.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/BlockModeOptions.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Operators.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/AES.Cryptors.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Cryptors.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Bit.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Rabbit.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Scrypt.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Digest.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/Build/Intermediates.noindex/CryptoSwift.build/Debug/CryptoSwift.build/Objects-normal/x86_64/StreamDecryptor~partial.swiftsourceinfo : /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/ChaCha20.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/SHA1.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF1.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/SHA2.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PBKDF2.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/SHA3.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Poly1305.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/AEAD/AEADChaCha20Poly1305.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/MD5.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PKCS5.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PKCS7.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/UInt128.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/ECB.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/OCB.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/CFB.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/OFB.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/CMAC.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/CBCMAC.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/HMAC.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/CBC.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/PCBC.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/AEAD/AEAD.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/HKDF.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/CCM.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/GCM.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/CTR.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/AES.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/BlockMode.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Updatable.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/DigestType.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Padding.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/ISO78164Padding.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/PKCS/PKCS7Padding.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/NoPadding.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/ZeroPadding.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Blowfish.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Checksum.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/UInt32+Extension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/UInt64+Extension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/UInt16+Extension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/UInt8+Extension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Foundation/Data+Extension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/String+Extension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Collection+Extension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Int+Extension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Array+Extension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Foundation/String+FoundationExtension.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Foundation/ChaCha20+Foundation.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Foundation/HMAC+Foundation.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Foundation/AES+Foundation.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Foundation/Blowfish+Foundation.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Foundation/Utils+Foundation.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Foundation/Rabbit+Foundation.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Foundation/Array+Foundation.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BatchedCollection.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/CompactMap.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Cipher.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockCipher.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/CipherModeWorker.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Authenticator.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Cryptor.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockDecryptor.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/StreamDecryptor.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockEncryptor.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/StreamEncryptor.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Generics.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/SecureBytes.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Utils.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/BlockMode/BlockModeOptions.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Operators.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/AES.Cryptors.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Cryptors.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Bit.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Rabbit.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Scrypt.swift /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwift/Digest.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
| D |
// Copyright (c) 2013-2014 Sandstorm Development Group, Inc. and contributors
// Licensed under the MIT License:
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
module capnproto.benchmark.Common;
//Use a 128-bit Xorshift algorithm.
pragma(inline, true) uint nextFastRand()
{
//These values are arbitrary. Any seed other than all zeroes is OK.
static uint x = 0x1d2acd47;
static uint y = 0x58ca3e14;
static uint z = 0xf563f232;
static uint w = 0x0bc76199;
uint tmp = x ^ (x << 11);
x = y;
y = z;
z = w;
w = w ^ (w >> 19) ^ tmp ^ (tmp >> 8);
return w;
}
pragma(inline, true) uint fastRand(uint range)
{
return nextFastRand() % range;
}
pragma(inline, true) double fastRandDouble(double range)
{
return nextFastRand() * range / uint.max;
}
pragma(inline, true) int div(int a, int b)
{
if(b == 0)
return int.max;
// INT_MIN / -1 => SIGFPE. Who knew?
if(a == int.min && b == -1)
return int.max;
return a / b;
}
pragma(inline, true) int mod(int a, int b)
{
if(b == 0)
return int.max;
//INT_MIN % -1 => SIGFPE. Who knew?
if(a == int.min && b == -1)
return int.max;
return a % b;
}
string[] WORDS = [ "foo ", "bar ", "baz ", "qux ", "quux ", "corge ", "grault ", "garply ", "waldo ", "fred ", "plugh ", "xyzzy ", "thud " ];
| D |
// ******************
// ZS_MM_Rtn_Summoned
// ******************
func void B_SummonedAssessTalk()
{
Npc_ChangeAttribute (self, ATR_HITPOINTS, -self.attribute[ATR_HITPOINTS_MAX]);
};
func void ZS_MM_Rtn_Summoned ()
{
Npc_SetPercTime (self, 1);
Npc_PercEnable (self, PERC_ASSESSPLAYER, B_MM_AssessPlayer);
Npc_PercEnable (self, PERC_ASSESSENEMY, B_MM_AssessEnemy);
Npc_PercEnable (self, PERC_ASSESSMAGIC, B_AssessMagic);
Npc_PercEnable (self, PERC_ASSESSDAMAGE, B_MM_AssessDamage);
Npc_PercEnable (self, PERC_ASSESSFIGHTSOUND, B_MM_AssessOthersDamage);
// FUNC
B_SetAttitude (self, ATT_FRIENDLY);
self.aivar[AIV_PARTYMEMBER] = TRUE;
AI_StandUp (self);
AI_SetWalkmode (self, NPC_RUN);
};
func int ZS_MM_Rtn_Summoned_Loop()
{
// ------ beim Spieler bleiben ------
if (Npc_GetDistToNpc (self, hero) > 500)
{
AI_GotoNpc (self, hero);
}
else //<= 500
{
if (Npc_GetStateTime(self) >= 1)
{
// ------ zum Spieler drehen ------
if (!Npc_CanSeeNpc(self, hero))
{
AI_TurnToNpc (self, hero);
};
// ------ Summon Time -------
self.aivar[AIV_SummonTime] = (self.aivar[AIV_SummonTime] + Npc_GetStateTime(self)); //weil AI_Goto lšnger dauern kann
if (self.aivar[AIV_SummonTime] >= MONSTER_SUMMON_TIME)
{
Npc_ChangeAttribute (self, ATR_HITPOINTS, -self.attribute[ATR_HITPOINTS_MAX]);
};
Npc_SetStateTime (self, 0);
};
};
self.wp = Npc_GetNearestWP (self);
return LOOP_CONTINUE;
};
func void ZS_MM_Rtn_Summoned_End()
{
};
| D |
/Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Console.build/Input/Console+Input.swift.o : /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Terminal/ANSI.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Deprecated.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/ConsoleStyle.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Input/Console+Choose.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Activity/ActivityIndicatorState.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Input/Console+Ask.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Terminal/Terminal.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Clear/Console+Ephemeral.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Input/Console+Confirm.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Activity/LoadingBar.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Activity/ProgressBar.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Activity/ActivityBar.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Clear/Console+Clear.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Clear/ConsoleClear.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Utilities/ConsoleLogger.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Activity/ActivityIndicatorRenderer.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/Console+Center.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/ConsoleColor.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Utilities/ConsoleError.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Activity/ActivityIndicator.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Utilities/Exports.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/Console+Wait.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/ConsoleTextFragment.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Input/Console+Input.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/Console+Output.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/ConsoleText.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Logging.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/c_nio_darwin.h /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/c-atomics.h /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/c_nio_linux.h /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio-zlib-support.git--1071467962839356487/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Console.build/Console+Input~partial.swiftmodule : /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Terminal/ANSI.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Deprecated.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/ConsoleStyle.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Input/Console+Choose.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Activity/ActivityIndicatorState.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Input/Console+Ask.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Terminal/Terminal.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Clear/Console+Ephemeral.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Input/Console+Confirm.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Activity/LoadingBar.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Activity/ProgressBar.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Activity/ActivityBar.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Clear/Console+Clear.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Clear/ConsoleClear.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Utilities/ConsoleLogger.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Activity/ActivityIndicatorRenderer.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/Console+Center.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/ConsoleColor.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Utilities/ConsoleError.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Activity/ActivityIndicator.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Utilities/Exports.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/Console+Wait.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/ConsoleTextFragment.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Input/Console+Input.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/Console+Output.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/ConsoleText.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Logging.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/c_nio_darwin.h /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/c-atomics.h /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/c_nio_linux.h /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio-zlib-support.git--1071467962839356487/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Console.build/Console+Input~partial.swiftdoc : /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Terminal/ANSI.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Deprecated.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/ConsoleStyle.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Input/Console+Choose.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Activity/ActivityIndicatorState.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Input/Console+Ask.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Terminal/Terminal.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Clear/Console+Ephemeral.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Input/Console+Confirm.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Activity/LoadingBar.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Activity/ProgressBar.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Activity/ActivityBar.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Clear/Console+Clear.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Clear/ConsoleClear.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Utilities/ConsoleLogger.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Activity/ActivityIndicatorRenderer.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/Console+Center.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/ConsoleColor.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Utilities/ConsoleError.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Activity/ActivityIndicator.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Utilities/Exports.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/Console+Wait.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/ConsoleTextFragment.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Input/Console+Input.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/Console+Output.swift /Users/Khanh/vapor/TILApp/.build/checkouts/console.git--2431895819212044213/Sources/Console/Output/ConsoleText.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Logging.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/c_nio_darwin.h /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/c-atomics.h /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/c_nio_linux.h /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio-zlib-support.git--1071467962839356487/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
| D |
module android.java.java.security.KeyStore_SecretKeyEntry;
public import android.java.java.security.KeyStore_SecretKeyEntry_d_interface;
import arsd.jni : ImportExportImpl;
mixin ImportExportImpl!KeyStore_SecretKeyEntry;
import import2 = android.java.java.lang.Class;
| D |
module distributions.categorical;
import std.algorithm;
import std.range;
import std.stdio;
class DiscreteProb(T) {
double []probs;
T []universe;
double []cumProb;
this(double []probs,T []universe) {
this.probs = probs;
this.universe = universe;
this.cumProb = this.probs.cumulativeFold!((x,y) => x+y).array;
}
T sample() {
import std.random;
auto randVal = uniform01();
auto chosen = this.cumProb.
map!(x => (randVal < x )).
enumerate().filter!(x => x[1]).array[0][0];
return universe[chosen];
}
} | D |
/Users/shawngong/Centa/.build/debug/Turnstile.build/Credentials/APIKey.swift.o : /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/TurnstileError.swift /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/Core/Subject.swift /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/Core/Turnstile.swift /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/Credentials/APIKey.swift /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/Credentials/Credentials.swift /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/Credentials/CredentialsError.swift /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/Credentials/Token.swift /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/Credentials/UsernamePassword.swift /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/Realm/Account.swift /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/Realm/MemoryRealm.swift /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/Realm/Realm.swift /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/SessionManager/MemorySessionManager.swift /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/SessionManager/SessionManager.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Users/shawngong/Centa/.build/debug/CLibreSSL.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/shawngong/Centa/.build/debug/TurnstileCrypto.swiftmodule
/Users/shawngong/Centa/.build/debug/Turnstile.build/APIKey~partial.swiftmodule : /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/TurnstileError.swift /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/Core/Subject.swift /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/Core/Turnstile.swift /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/Credentials/APIKey.swift /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/Credentials/Credentials.swift /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/Credentials/CredentialsError.swift /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/Credentials/Token.swift /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/Credentials/UsernamePassword.swift /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/Realm/Account.swift /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/Realm/MemoryRealm.swift /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/Realm/Realm.swift /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/SessionManager/MemorySessionManager.swift /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/SessionManager/SessionManager.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Users/shawngong/Centa/.build/debug/CLibreSSL.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/shawngong/Centa/.build/debug/TurnstileCrypto.swiftmodule
/Users/shawngong/Centa/.build/debug/Turnstile.build/APIKey~partial.swiftdoc : /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/TurnstileError.swift /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/Core/Subject.swift /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/Core/Turnstile.swift /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/Credentials/APIKey.swift /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/Credentials/Credentials.swift /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/Credentials/CredentialsError.swift /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/Credentials/Token.swift /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/Credentials/UsernamePassword.swift /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/Realm/Account.swift /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/Realm/MemoryRealm.swift /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/Realm/Realm.swift /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/SessionManager/MemorySessionManager.swift /Users/shawngong/Centa/Packages/Turnstile-1.0.5/Sources/Turnstile/SessionManager/SessionManager.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Users/shawngong/Centa/.build/debug/CLibreSSL.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/shawngong/Centa/.build/debug/TurnstileCrypto.swiftmodule
| D |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.