Data shared between Index, Pager and Sidebar. More...
#include <stdbool.h>
#include <stdio.h>
Go to the source code of this file.
Data Structures | |
struct | IndexSharedData |
Data shared between Index, Pager and Sidebar. More... | |
Functions | |
void | index_shared_data_free (struct MuttWindow *win, void **ptr) |
Free Shared Index Data - Implements MuttWindow::wdata_free() -. More... | |
struct IndexSharedData * | index_shared_data_new (void) |
Create new Index Data. More... | |
bool | index_shared_data_is_cur_email (const struct IndexSharedData *shared, const struct Email *e) |
Check whether an email is the currently selected Email. More... | |
void | index_shared_data_set_context (struct IndexSharedData *shared, struct MailboxView *mv) |
Set the MailboxView for the Index and friends. More... | |
void | index_shared_data_set_email (struct IndexSharedData *shared, struct Email *e) |
Set the current Email for the Index and friends. More... | |
Data shared between Index, Pager and Sidebar.
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 shared_data.h.
struct IndexSharedData * index_shared_data_new | ( | void | ) |
Create new Index Data.
ptr | New IndexSharedData |
Definition at line 300 of file shared_data.c.
bool index_shared_data_is_cur_email | ( | const struct IndexSharedData * | shared, |
const struct Email * | e | ||
) |
Check whether an email is the currently selected Email.
shared | Shared Index data |
e | Email to check |
true | e is current |
false | e is not current |
Definition at line 259 of file shared_data.c.
void index_shared_data_set_context | ( | struct IndexSharedData * | shared, |
struct MailboxView * | mv | ||
) |
Set the MailboxView for the Index and friends.
shared | Shared Index data |
mv | Mailbox View, may be NULL |
Definition at line 157 of file shared_data.c.
void index_shared_data_set_email | ( | struct IndexSharedData * | shared, |
struct Email * | e | ||
) |
Set the current Email for the Index and friends.
shared | Shared Index data |
e | Current Email, may be NULL |
Definition at line 230 of file shared_data.c.