Ejemplo n.º 1
0
void register_urlmon_namespace(IClassFactory *cf, REFIID clsid, LPCWSTR protocol, BOOL do_register)
{
    if(do_register)
        register_namespace(cf, clsid, protocol, TRUE);
    else
        unregister_namespace(cf, protocol);
}
Ejemplo n.º 2
0
static void init_session(void)
{
    unsigned int i;

    for(i=0; i < sizeof(object_creation)/sizeof(object_creation[0]); i++) {
        if(object_creation[i].protocol)
            register_namespace(object_creation[i].cf, object_creation[i].clsid,
                                      object_creation[i].protocol, TRUE);
    }
}
Ejemplo n.º 3
0
static HRESULT WINAPI InternetSession_RegisterNameSpace(IInternetSession *iface,
        IClassFactory *pCF, REFCLSID rclsid, LPCWSTR pwzProtocol, ULONG cPatterns,
        const LPCWSTR *ppwzPatterns, DWORD dwReserved)
{
    TRACE("(%p %s %s %d %p %d)\n", pCF, debugstr_guid(rclsid), debugstr_w(pwzProtocol),
          cPatterns, ppwzPatterns, dwReserved);

    if(cPatterns || ppwzPatterns)
        FIXME("patterns not supported\n");
    if(dwReserved)
        WARN("dwReserved = %d\n", dwReserved);

    if(!pCF || !pwzProtocol)
        return E_INVALIDARG;

    return register_namespace(pCF, rclsid, pwzProtocol, FALSE);
}
Ejemplo n.º 4
0
ENGINE_BINDINGS_API void add_bindings()
{
    TypeMirror& global_ns = type_system->global_namespace();
    TypeMirror& ns_tps = register_namespace("Engine", global_ns);

/*
    LM_CLASS(ns_tps, Vec)
    LM_FIELD(Vec, (x)(y)(z))
    LM_CONSTR(Vec,"new")
    LM_CONSTR(Vec, "new",float,float,float)
    LM_CONSTR(Vec, "new",Vec const&)
    LM_FUNC(Vec,(norm)(len))
    LM_OP(Vec,(+=)(+)(-=)(*=)(*)(/=)(/)(==))
    LM_OP_OVERLOAD(Vec, const, -, Vec)
    LM_OP_OVERLOAD(Vec, const, -, Vec, Vec const&)

    LM_CLASS(ns_tps, ControlPoint)
    LM_CONSTR(ControlPoint, "new", Vec const&)
    LM_FIELD(ControlPoint,(pos))

    LM_CLASS(ns_tps, ControlPointPtr)
    LM_FUNC(ControlPointPtr, (get))

    typedef ::TPS::ThinPlateSpline ThinPlateSpline;
    LM_CLASS(ns_tps, ThinPlateSpline)

    LM_CLASS(ns_tps, ThinPlateQuilt)
    LM_CONSTR(ThinPlateQuilt, "new",int,int,Vec,Vec)
    LM_FUNC(ThinPlateQuilt,
        (heightAt)(addControlPoint)(getControlPoint)
        (numControlPoints)(removeControlPoint)
        (getRegularization)(addRegularization)
        (getBendingEnergy)(refresh)
        (clearControlPoints))
*/
}