X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=WebThingPlugin.cs;h=a201b86744060eb9f33a5040ca576c819d189d50;hb=de68be10ae8d84f85431c704bb06d89e4d93cc98;hp=6f23e9d54a6281da95b4142cb1da72276b8eca5d;hpb=bf0210888b2c1a7eb26656fdcaec4e0559569772;p=WebThing.git diff --git a/WebThingPlugin.cs b/WebThingPlugin.cs index 6f23e9d..a201b86 100644 --- a/WebThingPlugin.cs +++ b/WebThingPlugin.cs @@ -33,4 +33,12 @@ namespace bytex64.WebThing { public virtual void InitWebView(WebView wv) {} public virtual void DeinitWebView(WebView wv) {} } + + // An interface implemented by plugins that handle search queries + // (a search query is anything that doesn't look like a URI) + public interface ISearchPlugin { + // Convert a search query into a URI. If this plugin cannot + // handle the search, it should return null. + string SearchTransform(string search); + } }