summary refs log tree commit diff stats
path: root/plugins/fishlim/keystore.h
blob: edf5499297c2eec13c1873a53adde6c05978e0de (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*

  Copyright (c) 2010 Samuel Lidén Borell <samuel@kodafritt.se>

  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.

*/

#ifndef KEYSTORE_H
#define KEYSTORE_H

#ifdef _MSC_VER
#include "bool.h"
#else
#include <stdbool.h>
#endif
#include <stddef.h>

char *keystore_get_key(const char *nick);
bool keystore_store_key(const char *nick, const char *key);
bool keystore_delete_nick(const char *nick);

void keystore_secure_free(void *ptr, size_t size);

#endif
t: 5px; } span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } .highlight .hll { background-color: #ffffcc } .highlight .c { color: #888888 } /* Comment */ .highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ .highlight .k { color: #008800; font-weight: bold } /* Keyword */ .highlight .ch { color: #888888 } /* Comment.Hashbang */ .highlight .cm { color: #888888 } /* Comment.Multiline */ .highlight .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */ .highlight .cpf { color: #888888 } /* Comment.PreprocFile */ .highlight .c1 { color: #888888 } /* Comment.Single */ .highlight .cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */ .highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ .highlight .ge { font-style: italic } /* Generic.Emph */ .highlight .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */ .highlight .gr { color: #aa0000 } /* Generic.Error */ .highlight .gh { color: #333333 } /* Generic.Heading */ .highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ .highlight .go { color: #888888 } /* Generic.Output */ .highlight .gp { color: #555555 } /* Generic.Prompt */ .highlight .gs { font-weight: bold } /* Generic.Strong */ .highlight .gu { color: #666666 } /* Generic.Subheading */ .highlight .gt { color: #aa0000 } /* Generic.Traceback */ .highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ .highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ .highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ .highlight .kp { color: #008800 } /* Keyword.Pseudo */ .highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ .highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
namespace thememan
{
    partial class HTM
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(HTM));
            this.themelist = new System.Windows.Forms.ListBox();
            this.themecolor0 = new System.Windows.Forms.Label();
            this.themecolor1 = new System.Windows.Forms.Label();
            this.themecolor2 = new System.Windows.Forms.Label();
            this.themecolor3 = new System.Windows.Forms.Label();
            this.themecolor4 = new System.Windows.Forms.Label();
            this.themecolor5 = new System.Windows.Forms.Label();
            this.themecolor6 = new System.Windows.Forms.Label();
            this.themecolor7 = new System.Windows.Forms.Label();
            this.themecolor8 = new System.Windows.Forms.Label();
            this.themecolor9 = new System.Windows.Forms.Label();
            this.themecolora = new System.Windows.Forms.Label();
            this.themecolorb = new System.Windows.Forms.Label();
            this.themecolorc = new System.Windows.Forms.Label();
            this.themecolord = new System.Windows.Forms.Label();
            this.themecolore = new System.Windows.Forms.Label();
            this.themecolorf = new System.Windows.Forms.Label();
            this.themecolorfg = new System.Windows.Forms.Label();
            this.themecolortextbg = new System.Windows.Forms.Label();
            this.importbutton = new System.Windows.Forms.Button();
            this.applybutton = new System.Windows.Forms.Button();
            this.themecolorfgmarked = new System.Windows.Forms.Label();
            this.deleteButton = new System.Windows.Forms.Button();
            this.SuspendLayout();
            // 
            // themelist
            // 
            this.themelist.FormattingEnabled = true;
            this.themelist.Location = new System.Drawing.Point(12, 12);
            this.themelist.Name = "themelist";
            this.themelist.Size = new System.Drawing.Size(160, 199);
            this.themelist.TabIndex = 0;
            this.themelist.SelectedIndexChanged += new System.EventHandler(this.theme_selected);
            // 
            // themecolor0
            // 
            this.themecolor0.BackColor = System.Drawing.SystemColors.HotTrack;
            this.themecolor0.Location = new System.Drawing.Point(189, 36);
            this.themecolor0.Name = "themecolor0";
            this.themecolor0.Size = new System.Drawing.Size(40, 40);
            this.themecolor0.TabIndex = 6;
            // 
            // themecolor1
            // 
            this.themecolor1.BackColor = System.Drawing.SystemColors.HotTrack;
            this.themecolor1.Location = new System.Drawing.Point(239, 36);
            this.themecolor1.Name = "themecolor1";
            this.themecolor1.Size = new System.Drawing.Size(40, 40);
            this.themecolor1.TabIndex = 10;
            // 
            // themecolor2
            // 
            this.themecolor2.BackColor = System.Drawing.SystemColors.HotTrack;
            this.themecolor2.Location = new System.Drawing.Point(289, 36);
            this.themecolor2.Name = "themecolor2";
            this.themecolor2.Size = new System.Drawing.Size(40, 40);
            this.themecolor2.TabIndex = 14;
            // 
            // themecolor3
            // 
            this.themecolor3.BackColor = System.Drawing.SystemColors.HotTrack;
            this.themecolor3.Location = new System.Drawing.Point(339, 36);
            this.themecolor3.Name = "themecolor3";
            this.themecolor3.Size = new System.Drawing.Size(40, 40);
            this.themecolor3.TabIndex = 18;
            // 
            // themecolor4
            // 
            this.themecolor4.BackColor = System.Drawing.SystemColors.HotTrack;
            this.themecolor4.Location = new System.Drawing.Point(189, 87);
            this.themecolor4.Name = "themecolor4";
            this.themecolor4.Size = new System.Drawing.Size(40, 40);
            this.themecolor4.TabIndex = 4;
            // 
            // themecolor5
            // 
            this.themecolor5.BackColor = System.Drawing.SystemColors.HotTrack;
            this.themecolor5.Location = new System.Drawing.Point(239, 87);
            this.themecolor5.Name = "themecolor5";
            this.themecolor5.Size = new System.Drawing.Size(40, 40);
            this.themecolor5.TabIndex = 8;
            // 
            // themecolor6
            // 
            this.themecolor6.BackColor = System.Drawing.SystemColors.HotTrack;
            this.themecolor6.Location = new System.Drawing.Point(289, 87);
            this.themecolor6.Name = "themecolor6";
            this.themecolor6.Size = new System.Drawing.Size(40, 40);
            this.themecolor6.TabIndex = 12;
            // 
            // themecolor7
            // 
            this.themecolor7.BackColor = System.Drawing.SystemColors.HotTrack;
            this.themecolor7.Location = new System.Drawing.Point(339, 87);
            this.themecolor7.Name = "themecolor7";
            this.themecolor7.Size = new System.Drawing.Size(40, 40);
            this.themecolor7.TabIndex = 16;
            // 
            // themecolor8
            // 
            this.themecolor8.BackColor = System.Drawing.SystemColors.HotTrack;
            this.themecolor8.Location = new System.Drawing.Point(189, 138);
            this.themecolor8.Name = "themecolor8";
            this.themecolor8.Size = new System.Drawing.Size(40, 40);
            this.themecolor8.TabIndex = 5;
            // 
            // themecolor9
            // 
            this.themecolor9.BackColor = System.Drawing.SystemColors.HotTrack;
            this.themecolor9.Location = new System.Drawing.Point(239, 138);
            this.themecolor9.Name = "themecolor9";
            this.themecolor9.Size = new System.Drawing.Size(40, 40);
            this.themecolor9.TabIndex = 9;
            // 
            // themecolora
            // 
            this.themecolora.BackColor = System.Drawing.SystemColors.HotTrack;
            this.themecolora.Location = new System.Drawing.Point(289, 138);
            this.themecolora.Name = "themecolora";
            this.themecolora.Size = new System.Drawing.Size(40, 40);
            this.themecolora.TabIndex = 13;
            // 
            // themecolorb
            // 
            this.themecolorb.BackColor = System.Drawing.SystemColors.HotTrack;
            this.themecolorb.Location = new System.Drawing.Point(339, 138);
            this.themecolorb.Name = "themecolorb";
            this.themecolorb.Size = new System.Drawing.Size(40, 40);
            this.themecolorb.TabIndex = 17;
            // 
            // themecolorc
            // 
            this.themecolorc.BackColor = System.Drawing.SystemColors.HotTrack;
            this.themecolorc.Location = new System.Drawing.Point(189, 189);
            this.themecolorc.Name = "themecolorc";
            this.themecolorc.Size = new System.Drawing.Size(40, 40);
            this.themecolorc.TabIndex = 7;
            // 
            // themecolord
            // 
            this.themecolord.BackColor = System.Drawing.SystemColors.HotTrack;
            this.themecolord.Location = new System.Drawing.Point(239, 189);
            this.themecolord.Name = "themecolord";
            this.themecolord.Size = new System.Drawing.Size(40, 40);
            this.themecolord.TabIndex = 11;
            // 
            // themecolore
            // 
            this.themecolore.BackColor = System.Drawing.SystemColors.HotTrack;
            this.themecolore.Location = new System.Drawing.Point(289, 189);
            this.themecolore.Name = "themecolore";
            this.themecolore.Size = new System.Drawing.Size(40, 40);
            this.themecolore.TabIndex = 15;
            // 
            // themecolorf
            // 
            this.themecolorf.BackColor = System.Drawing.SystemColors.HotTrack;
            this.themecolorf.Location = new System.Drawing.Point(339, 189);
            this.themecolorf.Name = "themecolorf";
            this.themecolorf.Size = new System.Drawing.Size(40, 40);
            this.themecolorf.TabIndex = 19;
            // 
            // themecolorfg
            // 
            this.themecolorfg.AutoSize = true;
            this.themecolorfg.BackColor = System.Drawing.Color.Transparent;
            this.themecolorfg.Location = new System.Drawing.Point(190, 18);
            this.themecolorfg.Name = "themecolorfg";
            this.themecolorfg.Size = new System.Drawing.Size(66, 13);
            this.themecolorfg.TabIndex = 21;
            this.themecolorfg.Text = "Sample Text";
            // 
            // themecolortextbg
            // 
            this.themecolortextbg.Location = new System.Drawing.Point(180, 15);
            this.themecolortextbg.Name = "themecolortextbg";
            this.themecolortextbg.Size = new System.Drawing.Size(208, 223);
            this.themecolortextbg.TabIndex = 20;
            // 
            // importbutton
            // 
            this.importbutton.Location = new System.Drawing.Point(12, 217);
            this.importbutton.Name = "importbutton";
            this.importbutton.Size = new System.Drawing.Size(52, 23);
            this.importbutton.TabIndex = 1;
            this.importbutton.Text = "Add...";
            this.importbutton.UseVisualStyleBackColor = true;
            this.importbutton.Click += new System.EventHandler(this.importbutton_Click_1);
            // 
            // applybutton
            // 
            this.applybutton.Location = new System.Drawing.Point(120, 217);
            this.applybutton.Name = "applybutton";
            this.applybutton.Size = new System.Drawing.Size(52, 23);
            this.applybutton.TabIndex = 3;
            this.applybutton.Text = "Apply";
            this.applybutton.UseVisualStyleBackColor = true;
            this.applybutton.Click += new System.EventHandler(this.applybutton_Click_1);
            // 
            // themecolorfgmarked
            // 
            this.themecolorfgmarked.AutoSize = true;
            this.themecolorfgmarked.Location = new System.Drawing.Point(313, 18);
            this.themecolorfgmarked.Name = "themecolorfgmarked";
            this.themecolorfgmarked.Size = new System.Drawing.Size(67, 13);
            this.themecolorfgmarked.TabIndex = 22;
            this.themecolorfgmarked.Text = "Marked Text";
            // 
            // deleteButton
            // 
            this.deleteButton.Location = new System.Drawing.Point(66, 217);
            this.deleteButton.Name = "deleteButton";
            this.deleteButton.Size = new System.Drawing.Size(52, 23);
            this.deleteButton.TabIndex = 2;
            this.deleteButton.Text = "Delete";
            this.deleteButton.UseVisualStyleBackColor = true;
            this.deleteButton.Click += new System.EventHandler(this.deleteButton_Click);
            // 
            // HTM
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(397, 248);
            this.Controls.Add(this.deleteButton);
            this.Controls.Add(this.themecolorfgmarked);
            this.Controls.Add(this.themecolorfg);
            this.Controls.Add(this.themecolorf);
            this.Controls.Add(this.themecolor3);
            this.Controls.Add(this.themecolorb);
            this.Controls.Add(this.themecolor7);
            this.Controls.Add(this.themecolore);
            this.Controls.Add(this.themecolor2);
            this.Controls.Add(this.themecolora);
            this.Controls.Add(this.themecolor6);
            this.Controls.Add(this.themecolord);
            this.Controls.Add(this.themecolor1);
            this.Controls.Add(this.themecolor9);
            this.Controls.Add(this.themecolor5);
            this.Controls.Add(this.themecolorc);
            this.Controls.Add(this.themecolor0);
            this.Controls.Add(this.themecolor8);
            this.Controls.Add(this.themecolor4);
            this.Controls.Add(this.importbutton);
            this.Controls.Add(this.applybutton);
            this.Controls.Add(this.themelist);
            this.Controls.Add(this.themecolortextbg);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.MaximizeBox = false;
            this.Name = "HTM";
            this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
            this.Text = "HexChat Theme Manager";
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.ListBox themelist;
        private System.Windows.Forms.Label themecolor0;
        private System.Windows.Forms.Label themecolor1;
        private System.Windows.Forms.Label themecolor2;
        private System.Windows.Forms.Label themecolor3;
        private System.Windows.Forms.Label themecolor4;
        private System.Windows.Forms.Label themecolor5;
        private System.Windows.Forms.Label themecolor6;
        private System.Windows.Forms.Label themecolor7;
        private System.Windows.Forms.Label themecolor8;
        private System.Windows.Forms.Label themecolor9;
        private System.Windows.Forms.Label themecolora;
        private System.Windows.Forms.Label themecolorb;
        private System.Windows.Forms.Label themecolorc;
        private System.Windows.Forms.Label themecolord;
        private System.Windows.Forms.Label themecolore;
        private System.Windows.Forms.Label themecolorf;
        private System.Windows.Forms.Label themecolorfg;
        private System.Windows.Forms.Label themecolortextbg;
        private System.Windows.Forms.Button importbutton;
        private System.Windows.Forms.Button applybutton;
        private System.Windows.Forms.Label themecolorfgmarked;
        private System.Windows.Forms.Button deleteButton;
    }
}