Skip to content

Commit

Permalink
search.c top window part updated
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetmertguduz committed Jun 6, 2024
1 parent 69b2255 commit 5029f0e
Show file tree
Hide file tree
Showing 28 changed files with 331 additions and 369 deletions.
2 changes: 1 addition & 1 deletion docs/html/d6/d24/create__controls__window_8c_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> wrefresh(window);</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span>}</div>
<div class="ttc" id="acreate__controls__window_8c_html_a0a856b187dbd59a65a8bc9ffe5a597b1"><div class="ttname"><a href="../../d6/d24/create__controls__window_8c.html#a0a856b187dbd59a65a8bc9ffe5a597b1">create_controls_window</a></div><div class="ttdeci">void create_controls_window(WINDOW *window, int *posts_panel_height, control *controls, int total_controls)</div><div class="ttdoc">Creates a new window to display the controls and adds it to the specified position.</div><div class="ttdef"><b>Definition:</b> <a href="../../d6/d24/create__controls__window_8c_source.html#l00018">create_controls_window.c:18</a></div></div>
<div class="ttc" id="asearch_8c_html_af0d0e693c574c3bfb0fcdcca37cbd745"><div class="ttname"><a href="../../dc/dec/search_8c.html#af0d0e693c574c3bfb0fcdcca37cbd745">controls</a></div><div class="ttdeci">control controls[]</div><div class="ttdef"><b>Definition:</b> <a href="../../dc/dec/search_8c_source.html#l00019">search.c:19</a></div></div>
<div class="ttc" id="asearch_8c_html_af0d0e693c574c3bfb0fcdcca37cbd745"><div class="ttname"><a href="../../dc/dec/search_8c.html#af0d0e693c574c3bfb0fcdcca37cbd745">controls</a></div><div class="ttdeci">control controls[]</div><div class="ttdef"><b>Definition:</b> <a href="../../dc/dec/search_8c_source.html#l00017">search.c:17</a></div></div>
<div class="ttc" id="aset__window__title_8c_html_a99e678a5bf2aa342184677f946dc1439"><div class="ttname"><a href="../../dc/d2b/set__window__title_8c.html#a99e678a5bf2aa342184677f946dc1439">set_window_title</a></div><div class="ttdeci">void set_window_title(WINDOW *window, const char *title)</div><div class="ttdoc">Writes a title to the top-left corner of the specified window.</div><div class="ttdef"><b>Definition:</b> <a href="../../dc/d2b/set__window__title_8c_source.html#l00016">set_window_title.c:16</a></div></div>
<div class="ttc" id="astructcontrol_html"><div class="ttname"><a href="../../dd/dee/structcontrol.html">control</a></div><div class="ttdoc">Stores the control name and key for displaying in the controls panel.</div><div class="ttdef"><b>Definition:</b> <a href="../../de/d29/yiffy__search_8h_source.html#l00022">yiffy_search.h:23</a></div></div>
<div class="ttc" id="ayiffy__search_8h_html"><div class="ttname"><a href="../../de/d29/yiffy__search_8h.html">yiffy_search.h</a></div><div class="ttdoc">This header file is used to handle the fetching and searching system.</div></div>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/dc/d3b/show__config_8c_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> </div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"><a class="line" href="../../dc/d3b/show__config_8c.html#a661bea6d0ad6d80a7c1f098e518cd7c2"> 67</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="../../dc/d3b/show__config_8c.html#a661bea6d0ad6d80a7c1f098e518cd7c2">write_credentials</a>()</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span>{</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> <span class="comment">/* Create the configuration file path. */</span></div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> <span class="comment">/* Create the credentials file path. */</span></div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> sprintf(file_path, <span class="stringliteral">&quot;%s/.yiffy/yiffy-credentials.txt&quot;</span>, home_directory);</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> </div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> FILE *credentials_file = fopen(file_path, <span class="stringliteral">&quot;r&quot;</span>);</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/dc/dc0/yiffy_8c_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@
<div class="ttc" id="afetch_8c_html_a41f382b6bd05c9776641fb4bc5024afa"><div class="ttname"><a href="../../d1/d14/fetch_8c.html#a41f382b6bd05c9776641fb4bc5024afa">fetch</a></div><div class="ttdeci">void fetch(char *tags, int page, char *command)</div><div class="ttdoc">Reads the configuration file, sets the options and sends a request to e621-e926. After taking the res...</div><div class="ttdef"><b>Definition:</b> <a href="../../d1/d14/fetch_8c_source.html#l00030">fetch.c:30</a></div></div>
<div class="ttc" id="ano__arg__value__msg_8c_html_a2104c256bb9f09a63fb38bc5ff530eca"><div class="ttname"><a href="../../d1/d70/no__arg__value__msg_8c.html#a2104c256bb9f09a63fb38bc5ff530eca">no_arg_value_msg</a></div><div class="ttdeci">void no_arg_value_msg(char *argument)</div><div class="ttdoc">Outputs the correct prompt format when there is no argument value.</div><div class="ttdef"><b>Definition:</b> <a href="../../d1/d70/no__arg__value__msg_8c_source.html#l00018">no_arg_value_msg.c:18</a></div></div>
<div class="ttc" id="aon__off__msg_8c_html_a60eb77988fcf4ce24e3108507945e543"><div class="ttname"><a href="../../d9/d8a/on__off__msg_8c.html#a60eb77988fcf4ce24e3108507945e543">on_off_msg</a></div><div class="ttdeci">void on_off_msg(char *argument)</div><div class="ttdoc">Outputs the correct argument value (on/off) for specified options.</div><div class="ttdef"><b>Definition:</b> <a href="../../d9/d8a/on__off__msg_8c_source.html#l00018">on_off_msg.c:18</a></div></div>
<div class="ttc" id="asearch_8c_html_ab899bd069f8d6db7339eba31c3ad7a02"><div class="ttname"><a href="../../dc/dec/search_8c.html#ab899bd069f8d6db7339eba31c3ad7a02">search</a></div><div class="ttdeci">void search(char *tags)</div><div class="ttdoc">Creates a ncurses-based user interface to show, download, search and travel the e621/e926 by using cu...</div><div class="ttdef"><b>Definition:</b> <a href="../../dc/dec/search_8c_source.html#l00044">search.c:44</a></div></div>
<div class="ttc" id="asearch_8c_html_ab899bd069f8d6db7339eba31c3ad7a02"><div class="ttname"><a href="../../dc/dec/search_8c.html#ab899bd069f8d6db7339eba31c3ad7a02">search</a></div><div class="ttdeci">void search(char *tags)</div><div class="ttdoc">Creates a ncurses-based user interface to show, download, search and travel the e621/e926 by using cu...</div><div class="ttdef"><b>Definition:</b> <a href="../../dc/dec/search_8c_source.html#l00039">search.c:39</a></div></div>
<div class="ttc" id="ashow__config_8c_html_aca4794b6b6172dc0b0e6d6fba2297c58"><div class="ttname"><a href="../../dc/d3b/show__config_8c.html#aca4794b6b6172dc0b0e6d6fba2297c58">show_config</a></div><div class="ttdeci">void show_config()</div><div class="ttdoc">Shows the yiffy configurations to user.</div><div class="ttdef"><b>Definition:</b> <a href="../../dc/d3b/show__config_8c_source.html#l00026">show_config.c:26</a></div></div>
<div class="ttc" id="ashow__github_8c_html_ae31a1275940d22cd5cb90427c1ac92c6"><div class="ttname"><a href="../../d4/d65/show__github_8c.html#ae31a1275940d22cd5cb90427c1ac92c6">show_github</a></div><div class="ttdeci">void show_github()</div><div class="ttdoc">Shows the project github URL, current issues to user.</div><div class="ttdef"><b>Definition:</b> <a href="../../d4/d65/show__github_8c_source.html#l00016">show_github.c:16</a></div></div>
<div class="ttc" id="ashow__help_8c_html_ac29c297ae32acdb2172e926d5f144681"><div class="ttname"><a href="../../de/d0c/show__help_8c.html#ac29c297ae32acdb2172e926d5f144681">show_help</a></div><div class="ttdeci">void show_help()</div><div class="ttdoc">Shows the general help menu to user.</div><div class="ttdef"><b>Definition:</b> <a href="../../de/d0c/show__help_8c_source.html#l00016">show_help.c:16</a></div></div>
Expand Down
54 changes: 6 additions & 48 deletions docs/html/dc/dec/search_8c.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,6 @@
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="define-members" name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a263efd24d550124313df51247f07457a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/dec/search_8c.html#a263efd24d550124313df51247f07457a">MAX_FILE_PATH</a>&#160;&#160;&#160;256</td></tr>
<tr class="memdesc:a263efd24d550124313df51247f07457a"><td class="mdescLeft">&#160;</td><td class="mdescRight">This macro is used to set the default size for getting the home directory file. <a href="../../dc/dec/search_8c.html#a263efd24d550124313df51247f07457a">More...</a><br /></td></tr>
<tr class="separator:a263efd24d550124313df51247f07457a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4d796b98c583d49e83adabd74a63bf6"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/dec/search_8c.html#ad4d796b98c583d49e83adabd74a63bf6">MAX_BUFFER_SIZE</a>&#160;&#160;&#160;512</td></tr>
<tr class="memdesc:ad4d796b98c583d49e83adabd74a63bf6"><td class="mdescLeft">&#160;</td><td class="mdescRight">This macro is used to set the default size for reading the config file. <a href="../../dc/dec/search_8c.html#ad4d796b98c583d49e83adabd74a63bf6">More...</a><br /></td></tr>
<tr class="separator:ad4d796b98c583d49e83adabd74a63bf6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff9b7f6d81297248bf0ad06d725c8cbb"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/dec/search_8c.html#aff9b7f6d81297248bf0ad06d725c8cbb">CONTENT_SIZE</a>&#160;&#160;&#160;524288</td></tr>
<tr class="memdesc:aff9b7f6d81297248bf0ad06d725c8cbb"><td class="mdescLeft">&#160;</td><td class="mdescRight">This macro is used to set the default size for reading the JSON file that comes as a response from the API. <a href="../../dc/dec/search_8c.html#aff9b7f6d81297248bf0ad06d725c8cbb">More...</a><br /></td></tr>
<tr class="separator:aff9b7f6d81297248bf0ad06d725c8cbb"><td class="memSeparator" colspan="2">&#160;</td></tr>
Expand Down Expand Up @@ -196,42 +190,6 @@ <h2 class="memtitle"><span class="permalink"><a href="#aff9b7f6d81297248bf0ad06d

<p>This macro is used to set the default size for reading the JSON file that comes as a response from the API. </p>

<p class="definition">Definition at line <a class="el" href="../../dc/dec/search_8c_source.html#l00017">17</a> of file <a class="el" href="../../dc/dec/search_8c_source.html">search.c</a>.</p>

</div>
</div>
<a id="ad4d796b98c583d49e83adabd74a63bf6" name="ad4d796b98c583d49e83adabd74a63bf6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad4d796b98c583d49e83adabd74a63bf6">&#9670;&nbsp;</a></span>MAX_BUFFER_SIZE</h2>

<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define MAX_BUFFER_SIZE&#160;&#160;&#160;512</td>
</tr>
</table>
</div><div class="memdoc">

<p>This macro is used to set the default size for reading the config file. </p>

<p class="definition">Definition at line <a class="el" href="../../dc/dec/search_8c_source.html#l00016">16</a> of file <a class="el" href="../../dc/dec/search_8c_source.html">search.c</a>.</p>

</div>
</div>
<a id="a263efd24d550124313df51247f07457a" name="a263efd24d550124313df51247f07457a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a263efd24d550124313df51247f07457a">&#9670;&nbsp;</a></span>MAX_FILE_PATH</h2>

<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define MAX_FILE_PATH&#160;&#160;&#160;256</td>
</tr>
</table>
</div><div class="memdoc">

<p>This macro is used to set the default size for getting the home directory file. </p>

<p class="definition">Definition at line <a class="el" href="../../dc/dec/search_8c_source.html#l00015">15</a> of file <a class="el" href="../../dc/dec/search_8c_source.html">search.c</a>.</p>

</div>
Expand Down Expand Up @@ -261,7 +219,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#ab899bd069f8d6db7339eba31
</dd>
</dl>

<p class="definition">Definition at line <a class="el" href="../../dc/dec/search_8c_source.html#l00044">44</a> of file <a class="el" href="../../dc/dec/search_8c_source.html">search.c</a>.</p>
<p class="definition">Definition at line <a class="el" href="../../dc/dec/search_8c_source.html#l00039">39</a> of file <a class="el" href="../../dc/dec/search_8c_source.html">search.c</a>.</p>

</div>
</div>
Expand All @@ -286,7 +244,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#af0d0e693c574c3bfb0fcdcca
<div class="line"> {<span class="stringliteral">&quot;QUIT&quot;</span>, <span class="charliteral">&#39;Q&#39;</span>}</div>
<div class="line">}</div>
</div><!-- fragment -->
<p class="definition">Definition at line <a class="el" href="../../dc/dec/search_8c_source.html#l00019">19</a> of file <a class="el" href="../../dc/dec/search_8c_source.html">search.c</a>.</p>
<p class="definition">Definition at line <a class="el" href="../../dc/dec/search_8c_source.html#l00017">17</a> of file <a class="el" href="../../dc/dec/search_8c_source.html">search.c</a>.</p>

</div>
</div>
Expand All @@ -302,7 +260,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#ac105778d4687c921d3749c0e
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../dc/dec/search_8c_source.html#l00031">31</a> of file <a class="el" href="../../dc/dec/search_8c_source.html">search.c</a>.</p>
<p class="definition">Definition at line <a class="el" href="../../dc/dec/search_8c_source.html#l00029">29</a> of file <a class="el" href="../../dc/dec/search_8c_source.html">search.c</a>.</p>

</div>
</div>
Expand All @@ -318,7 +276,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#a0ea8a08a91b67361f7ee2161
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../dc/dec/search_8c_source.html#l00030">30</a> of file <a class="el" href="../../dc/dec/search_8c_source.html">search.c</a>.</p>
<p class="definition">Definition at line <a class="el" href="../../dc/dec/search_8c_source.html#l00028">28</a> of file <a class="el" href="../../dc/dec/search_8c_source.html">search.c</a>.</p>

</div>
</div>
Expand All @@ -334,7 +292,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#a8e4fdaa342d2bb1acdd0ae66
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../dc/dec/search_8c_source.html#l00029">29</a> of file <a class="el" href="../../dc/dec/search_8c_source.html">search.c</a>.</p>
<p class="definition">Definition at line <a class="el" href="../../dc/dec/search_8c_source.html#l00027">27</a> of file <a class="el" href="../../dc/dec/search_8c_source.html">search.c</a>.</p>

</div>
</div>
Expand All @@ -350,7 +308,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#a8eb5644bdf68ad95ffafe475
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../dc/dec/search_8c_source.html#l00028">28</a> of file <a class="el" href="../../dc/dec/search_8c_source.html">search.c</a>.</p>
<p class="definition">Definition at line <a class="el" href="../../dc/dec/search_8c_source.html#l00026">26</a> of file <a class="el" href="../../dc/dec/search_8c_source.html">search.c</a>.</p>

</div>
</div>
Expand Down
2 changes: 0 additions & 2 deletions docs/html/dc/dec/search_8c.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
var search_8c =
[
[ "CONTENT_SIZE", "dc/dec/search_8c.html#aff9b7f6d81297248bf0ad06d725c8cbb", null ],
[ "MAX_BUFFER_SIZE", "dc/dec/search_8c.html#ad4d796b98c583d49e83adabd74a63bf6", null ],
[ "MAX_FILE_PATH", "dc/dec/search_8c.html#a263efd24d550124313df51247f07457a", null ],
[ "search", "dc/dec/search_8c.html#ab899bd069f8d6db7339eba31c3ad7a02", null ],
[ "controls", "dc/dec/search_8c.html#af0d0e693c574c3bfb0fcdcca37cbd745", null ],
[ "controls_window", "dc/dec/search_8c.html#ac105778d4687c921d3749c0e825d529d", null ],
Expand Down
Loading

0 comments on commit 5029f0e

Please sign in to comment.