Container for Accounts, Notifications. More...
#include "config.h"#include <errno.h>#include <locale.h>#include <stddef.h>#include <stdio.h>#include <string.h>#include <sys/stat.h>#include "mutt/lib.h"#include "config/lib.h"#include "neomutt.h"#include "account.h"#include "mailbox.h"
Include dependency graph for neomutt.c:Go to the source code of this file.
Functions | |
| struct NeoMutt * | neomutt_new (struct ConfigSet *cs) |
| Create the main NeoMutt object. | |
| void | neomutt_free (struct NeoMutt **ptr) |
| Free a NeoMutt. | |
| bool | neomutt_account_add (struct NeoMutt *n, struct Account *a) |
| Add an Account to the global list. | |
| bool | neomutt_account_remove (struct NeoMutt *n, const struct Account *a) |
| Remove an Account from the global list. | |
| void | neomutt_mailboxlist_clear (struct MailboxList *ml) |
| Free a Mailbox List. | |
| size_t | neomutt_mailboxlist_get_all (struct MailboxList *head, struct NeoMutt *n, enum MailboxType type) |
| Get a List of all Mailboxes. | |
| FILE * | mutt_file_fopen_masked_full (const char *path, const char *mode, const char *file, int line, const char *func) |
| Wrapper around mutt_file_fopen_full() | |
Variables | |
| struct NeoMutt * | NeoMutt = NULL |
| Global NeoMutt object. | |
Container for Accounts, Notifications.
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 http://www.gnu.org/licenses/.
Definition in file neomutt.c.
Create the main NeoMutt object.
| cs | Config Set |
| ptr | New NeoMutt |
Definition at line 50 of file neomutt.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void neomutt_free | ( | struct NeoMutt ** | ptr | ) |
Free a NeoMutt.
| [out] | ptr | NeoMutt to free |
Definition at line 86 of file neomutt.c.
Here is the call graph for this function:
Here is the caller graph for this function:Add an Account to the global list.
| true | Account was added |
Definition at line 115 of file neomutt.c.
Here is the call graph for this function:
Here is the caller graph for this function:Remove an Account from the global list.
| true | Account was removed |
Definition at line 138 of file neomutt.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void neomutt_mailboxlist_clear | ( | struct MailboxList * | ml | ) |
| size_t neomutt_mailboxlist_get_all | ( | struct MailboxList * | head, |
| struct NeoMutt * | n, | ||
| enum MailboxType | type ) |
Get a List of all Mailboxes.
| head | List to store the Mailboxes |
| n | NeoMutt |
| type | Type of Account to match, see MailboxType |
| num | Number of Mailboxes in the List |
Definition at line 196 of file neomutt.c.
Here is the caller graph for this function:| FILE * mutt_file_fopen_masked_full | ( | const char * | path, |
| const char * | mode, | ||
| const char * | file, | ||
| int | line, | ||
| const char * | func ) |
Wrapper around mutt_file_fopen_full()
| path | Filename |
| mode | Mode e.g. "r" readonly; "w" read-write |
| file | Source file |
| line | Source line number |
| func | Source function |
| ptr | FILE handle |
| NULL | Error, see errno |
Apply the user's umask, then call mutt_file_fopen_full().
Definition at line 235 of file neomutt.c.
Here is the call graph for this function: