Exemplo n.º 1
0
        public void RegisterObjectsInterface(AJ_Object ajObj, bool useProperties, bool local)
        {
            string path       = ajObj.path;
            byte   flags      = ajObj.flags;
            string interfaces = ConvertStringArrayToString(ajObj.interfaces);
            IntPtr context    = ajObj.context;

            AJ.RegisterObjects(path, interfaces, flags, context, useProperties, local);
        }
Exemplo n.º 2
0
        static AJ_Status AboutIconGetPropCB(AJ_Message reply, AJ_Message msg, uint propId, AJ aj)
        {
            AJ_Status status = AJ_Status.AJ_ERR_UNEXPECTED;

            if (propId == AJ_PROPERTY_ABOUT_ICON_VERSION_PROP)
            {
                status = aj.MarshalArg(reply, "q", ABOUT_ICON_VERSION);
            }
            else if (propId == AJ_PROPERTY_ABOUT_ICON_MIMETYPE_PROP)
            {
                status = aj.MarshalArg(reply, "s", aj.AboutIconMime);
            }
            else if (propId == AJ_PROPERTY_ABOUT_ICON_SIZE_PROP)
            {
                status = aj.MarshalArg(reply, "u", aj.AboutIconSize);
            }
            return(status);
        }
Exemplo n.º 3
0
 static AJ_Status AboutGetPropCB(AJ_Message reply, AJ_Message msg, uint propId, AJ aj)
 {
     if (propId == AJ_PROPERTY_ABOUT_VERSION)
     {
         return(aj.MarshalArg(reply, "q", ABOUT_VERSION));
     }
     else
     {
         return(AJ_Status.AJ_ERR_UNEXPECTED);
     }
 }