2023-08-15 00:19:51 -07:00
<!-- HTML header for doxygen 1.8.10 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" >
< head >
< meta http-equiv = "Content-Type" content = "text/xhtml;charset=UTF-8" / >
< meta http-equiv = "X-UA-Compatible" content = "IE=9" / >
2023-10-14 12:24:01 -07:00
< meta name = "generator" content = "Doxygen 1.9.8" / >
2023-08-15 00:19:51 -07:00
< title > NATS C Client with JetStream and Streaming support: jsStreamStateSubjects Struct Reference< / title >
< link href = "tabs.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "jquery.js" > < / script >
< script type = "text/javascript" src = "dynsections.js" > < / script >
< link href = "navtree.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "resize.js" > < / script >
< script type = "text/javascript" src = "navtreedata.js" > < / script >
< script type = "text/javascript" src = "navtree.js" > < / script >
< link href = "search/search.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "search/searchdata.js" > < / script >
< script type = "text/javascript" src = "search/search.js" > < / script >
< link href = "customdoxygen.css" rel = "stylesheet" type = "text/css" / >
< / head >
< body >
< div id = "top" > <!-- do not remove this div, it is closed by doxygen! -->
< div id = "titlearea" >
< table cellspacing = "0" cellpadding = "0" >
< tbody >
< tr style = "height: 56px;" >
< td id = "projectalign" style = "padding-left: 0.5em;" >
< div id = "projectname" > NATS C Client with JetStream and Streaming support
2023-10-14 12:24:01 -07:00
  < span id = "projectnumber" > 3.7.0< / span >
2023-08-15 00:19:51 -07:00
< / div >
< div id = "projectbrief" > The nats.io C Client, Supported by Synadia Communications Inc.< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
2023-10-14 12:24:01 -07:00
<!-- Generated by Doxygen 1.9.8 -->
2023-08-15 00:19:51 -07:00
< script type = "text/javascript" >
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
< / script >
< script type = "text/javascript" src = "menudata.js" > < / script >
< script type = "text/javascript" src = "menu.js" > < / script >
< script type = "text/javascript" >
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
< / script >
< div id = "main-nav" > < / div >
< / div > <!-- top -->
< div id = "side-nav" class = "ui-resizable side-nav-resizable" >
< div id = "nav-tree" >
< div id = "nav-tree-contents" >
< div id = "nav-sync" class = "sync" > < / div >
< / div >
< / div >
< div id = "splitbar" style = "-moz-user-select:none;"
class="ui-resizable-handle">
< / div >
< / div >
< script type = "text/javascript" >
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
$(document).ready(function(){initNavTree('structjs_stream_state_subjects.html',''); initResizable(); });
/* @license-end */
< / script >
< div id = "doc-content" >
<!-- window showing the filter options -->
< div id = "MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
< / div >
<!-- iframe showing the search results (closed by default) -->
< div id = "MSearchResultsWindow" >
< div id = "MSearchResults" >
< div class = "SRPage" >
< div id = "SRIndex" >
< div id = "SRResults" > < / div >
< div class = "SRStatus" id = "Loading" > Loading...< / div >
< div class = "SRStatus" id = "Searching" > Searching...< / div >
< div class = "SRStatus" id = "NoMatches" > No Matches< / div >
< / div >
< / div >
< / div >
< / div >
< div class = "header" >
< div class = "summary" >
< a href = "#pub-attribs" > Public Attributes< / a > |
< a href = "structjs_stream_state_subjects-members.html" > List of all members< / a > < / div >
< div class = "headertitle" > < div class = "title" > jsStreamStateSubjects Struct Reference< div class = "ingroups" > < a class = "el" href = "group__types_group.html" > Types< / a > < / div > < / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
< p > < code > #include < < a class = "el" href = "nats_8h_source.html" > nats.h< / a > > < / code > < / p >
< table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a id = "pub-attribs" name = "pub-attribs" > < / a >
Public Attributes< / h2 > < / td > < / tr >
2023-10-14 12:24:01 -07:00
< tr class = "memitem:aef3d1e886b16961daa84c43650fa80c0" id = "r_aef3d1e886b16961daa84c43650fa80c0" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "structjs_stream_state_subject.html" > jsStreamStateSubject< / a > *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structjs_stream_state_subjects.html#aef3d1e886b16961daa84c43650fa80c0" > List< / a > < / td > < / tr >
2023-08-15 00:19:51 -07:00
< tr class = "separator:aef3d1e886b16961daa84c43650fa80c0" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2023-10-14 12:24:01 -07:00
< tr class = "memitem:ab88e2026f518b6cdffd3901b5e5cd374" id = "r_ab88e2026f518b6cdffd3901b5e5cd374" > < td class = "memItemLeft" align = "right" valign = "top" > int  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structjs_stream_state_subjects.html#ab88e2026f518b6cdffd3901b5e5cd374" > Count< / a > < / td > < / tr >
2023-08-15 00:19:51 -07:00
< tr class = "separator:ab88e2026f518b6cdffd3901b5e5cd374" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table >
< a name = "details" id = "details" > < / a > < h2 class = "groupheader" > Detailed Description< / h2 >
< div class = "textblock" > < p > List of subjects optionally returned in the stream information request.< / p >
< p > This structure indicates the number of elements in the list, that is, the list contains < code > Count< / code > < a class = "el" href = "structjs_stream_state_subject.html" > jsStreamStateSubject< / a > elements.< / p >
< p > To get this list in < a class = "el" href = "structjs_stream_state.html" > jsStreamState< / a > , you have to ask for it through < a class = "el" href = "structjs_options.html" > jsOptions< / a > .< / p >
< div class = "fragment" > < div class = "line" > jsStreamInfo *si = NULL;< / div >
< div class = "line" > jsOptions o;< / div >
< div class = "line" > < / div >
< div class = "line" > jsOptions_Init(& o);< / div >
< div class = "line" > o.Stream.Info.SubjectsFilter = " foo.> " ;< / div >
< div class = "line" > s = js_GetStreamInfo(& si, js, " MY_STREAM" , & o, & jerr);< / div >
< div class = "line" > < / div >
< div class = "line" > // handle errors and assume si-> State.Subjects is not NULL< / div >
< div class = "line" > < / div >
< div class = "line" > for (i=0; i< si-> State.Subjects-> Count; i++)< / div >
< div class = "line" > {< / div >
< div class = "line" > jsStreamStateSubject *subj = & (si-> State.Subjects-> List[i]);< / div >
< div class = "line" > printf(" Subject=%s Messages count=%d\n" , subj-> Subject, (int) subj-> Msgs);< / div >
< div class = "line" > }< / div >
< / div > <!-- fragment --> < dl class = "section see" > < dt > See also< / dt > < dd > < a class = "el" href = "structjs_stream_state_subject.html" > jsStreamStateSubject< / a > < / dd >
< dd >
< a class = "el" href = "group__js_assets_group.html#ga94cb23a35516b7779de28fcbb263180a" title = "Retreives information from a stream." > js_GetStreamInfo< / a > < / dd >
< dd >
jsOptions.Stream.Info.SubjectsFilter < / dd > < / dl >
< / div > < h2 class = "groupheader" > Member Data Documentation< / h2 >
< a id = "aef3d1e886b16961daa84c43650fa80c0" name = "aef3d1e886b16961daa84c43650fa80c0" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#aef3d1e886b16961daa84c43650fa80c0" > ◆   < / a > < / span > List< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > < a class = "el" href = "structjs_stream_state_subject.html" > jsStreamStateSubject< / a > * jsStreamStateSubjects::List< / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< / div >
< / div >
< a id = "ab88e2026f518b6cdffd3901b5e5cd374" name = "ab88e2026f518b6cdffd3901b5e5cd374" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ab88e2026f518b6cdffd3901b5e5cd374" > ◆   < / a > < / span > Count< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > int jsStreamStateSubjects::Count< / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< / div >
< / div >
< hr / > The documentation for this struct was generated from the following file:< ul >
< li > < a class = "el" href = "nats_8h_source.html" > nats.h< / a > < / li >
< / ul >
< / div > <!-- contents -->
< / div > <!-- doc - content -->
<!-- HTML footer for doxygen 1.8.10 -->
<!-- start footer part -->
< div id = "nav-path" class = "navpath" > <!-- id is needed for treeview function! -->
< ul >
< li class = "navelem" > < a class = "el" href = "structjs_stream_state_subjects.html" > jsStreamStateSubjects< / a > < / li >
< li class = "footer" > NATS.IO Supported By Synadia Communications Inc.
< a href = "http://www.nats.io" >
< / a > < / li >
< / ul >
< / div >
< / body >
< / html >