libnx  v4.8.0
Data Structures | Enumerations | Functions
news.h File Reference

News service IPC wrapper. More...

#include "../kernel/event.h"
#include "../services/acc.h"
#include "../sf/service.h"
#include "../types.h"

Go to the source code of this file.

Data Structures

struct  NewsTopicName
 
struct  NewsNewlyArrivedEventHolder
 
struct  NewsDataService
 
struct  NewsDatabaseService
 
struct  NewsOverwriteEventHolder
 
struct  NewsRecordV1
 
struct  NewsRecord
 

Enumerations

enum  NewsServiceType {
  NewsServiceType_Administrator = 0 ,
  NewsServiceType_Configuration = 1 ,
  NewsServiceType_Manager = 2 ,
  NewsServiceType_Post = 3 ,
  NewsServiceType_Viewer = 4 ,
  NewsServiceType_Count
}
 

Functions

Result newsInitialize (NewsServiceType service_type)
 
void newsExit (void)
 
ServicenewsGetServiceSession (void)
 
Result newsCreateNewlyArrivedEventHolder (NewsNewlyArrivedEventHolder *out)
 
Result newsCreateNewsDataService (NewsDataService *out)
 
Result newsCreateNewsDatabaseService (NewsDatabaseService *out)
 
Result newsCreateOverwriteEventHolder (NewsOverwriteEventHolder *out)
 [2.0.0+]
 
Result newsPostLocalNews (const void *news, size_t size)
 
Result newsSetPassphrase (u64 program_id, const char *passphrase)
 
Result newsGetSubscriptionStatus (const char *filter, u32 *status)
 
Result newsGetTopicList (u32 channel, u32 *out_count, NewsTopicName *out, u32 max_count)
 [3.0.0+]
 
Result newsGetSavedataUsage (u64 *current, u64 *total)
 [6.0.0+]
 
Result newsIsSystemUpdateRequired (bool *out)
 
Result newsGetDatabaseVersion (u32 *version)
 [10.0.0+]
 
Result newsRequestImmediateReception (const char *filter)
 
Result newsSetSubscriptionStatus (const char *filter, u32 status)
 
Result newsClearStorage (void)
 
Result newsClearSubscriptionStatusAll (void)
 
Result newsGetNewsDatabaseDump (void *buffer, u64 size, u64 *out)
 
void newsNewlyArrivedEventHolderClose (NewsNewlyArrivedEventHolder *srv)
 
Result newsNewlyArrivedEventHolderGet (NewsNewlyArrivedEventHolder *srv, Event *out)
 
void newsDataClose (NewsDataService *srv)
 
Result newsDataOpen (NewsDataService *srv, const char *file_name)
 
Result newsDataOpenWithNewsRecordV1 (NewsDataService *srv, NewsRecordV1 *record)
 
Result newsDataRead (NewsDataService *srv, u64 *bytes_read, u64 offset, void *out, size_t out_size)
 
Result newsDataGetSize (NewsDataService *srv, u64 *size)
 
Result newsDataOpenWithNewsRecord (NewsDataService *srv, NewsRecord *record)
 [6.0.0+]
 
void newsDatabaseClose (NewsDatabaseService *srv)
 
Result newsDatabaseGetListV1 (NewsDatabaseService *srv, NewsRecordV1 *out, u32 max_count, const char *where, const char *order, u32 *count, u32 offset)
 
Result newsDatabaseCount (NewsDatabaseService *srv, const char *filter, u32 *count)
 
Result newsDatabaseGetList (NewsDatabaseService *srv, NewsRecord *out, u32 max_count, const char *where, const char *order, u32 *count, u32 offset)
 [6.0.0+]
 
void newsOverwriteEventHolderClose (NewsOverwriteEventHolder *srv)
 
Result newsOverwriteEventHolderGet (NewsOverwriteEventHolder *srv, Event *out)
 

Detailed Description

News service IPC wrapper.

Author
Behemoth

Enumeration Type Documentation

◆ NewsServiceType

Enumerator
NewsServiceType_Administrator 

Initializes news:a.

NewsServiceType_Configuration 

Initializes news:c.

NewsServiceType_Manager 

Initializes news:m.

NewsServiceType_Post 

Initializes news:p.

NewsServiceType_Viewer 

Initializes news:v.