Struct xpcom::interfaces::amIAddonPathService [] [src]

#[repr(C)]
pub struct amIAddonPathService { /* fields omitted */ }

interface amIAddonPathService : nsISupports

/**
 * This service maps file system paths where add-ons reside to the ID
 * of the add-on. Paths are added by the add-on manager. They can
 * looked up by anyone.
 */

Methods

impl amIAddonPathService
[src]

[src]

Cast this amIAddonPathService to one of its base interfaces.

impl amIAddonPathService
[src]

[src]

/**
   * Given a path to a file, return the ID of the add-on that the file belongs
   * to. Returns an empty string if there is no add-on there. Note that if an
   * add-on is located at /a/b/c, then looking up the path /a/b/c/d will return
   * that add-on.
   */

AString findAddonId (in AString path);

[src]

/**
   * Call this function to inform the service that the given file system path is
   * associated with the given add-on ID.
   */

void insertPath (in AString path, in AString addonId);

[src]

/**
   * Given a URI to a file, return the ID of the add-on that the file belongs
   * to. Returns an empty string if there is no add-on there.
   */

AString mapURIToAddonId (in nsIURI aURI);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for amIAddonPathService
[src]

IID: nsIID = nsID(4242137712, 57265, 4579, [139, 104, 8, 0, 32, 12, 154, 102])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for amIAddonPathService
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for amIAddonPathService
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.