// GPGEdit edits GPG encrypted files // Copyright (C) 2018 Aaron Ball // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see . #include #include #include "strll.h" #include "logger.h" struct gpgedit_config { char* file; // File path to be edited struct strll* recipients; // Pointer to first item in the linked list struct gpgme_key_t* keys; int log_level; // Runtime log level }; struct gpgedit_config* gpgedit_config_new(); void gpgedit_config_file_set(struct gpgedit_config*, char*); void gpgedit_config_recipients_set(struct gpgedit_config*, char**); void gpgedit_config_recipients_add(struct gpgedit_config*, char*); void gpgedit_config_release(struct gpgedit_config*); void gpgedit_config_recip_from_gpgme_recip(struct gpgedit_config* c, gpgme_recipient_t firstrecip);