Zen-C
Loading...
Searching...
No Matches
json_rpc.c File Reference
#include "json_rpc.h"
#include "cJSON.h"
#include "lsp_project.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for json_rpc.c:

Functions

void lsp_check_file (const char *uri, const char *src, int id)
 
void lsp_goto_definition (const char *uri, int line, int col, int id)
 
void lsp_hover (const char *uri, int line, int col, int id)
 
void lsp_completion (const char *uri, int line, int col, int id)
 
void lsp_document_symbol (const char *uri, int id)
 
void lsp_references (const char *uri, int line, int col, int id)
 
void lsp_signature_help (const char *uri, int line, int col, int id)
 
void lsp_rename (const char *uri, int line, int col, const char *new_name, int id)
 
void handle_request (const char *json_str)
 Handle a raw JSON-RPC request string.
 

Function Documentation

◆ handle_request()

void handle_request ( const char *  json_str)

Handle a raw JSON-RPC request string.

Parses the request, routes it to the appropriate handler (initialize, textDocument/didChange, etc.), and sends back the response to stdout.

Parameters
json_strNull-terminated JSON request string.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lsp_check_file()

void lsp_check_file ( const char *  uri,
const char *  src,
int  id 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lsp_completion()

void lsp_completion ( const char *  uri,
int  line,
int  col,
int  id 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lsp_document_symbol()

void lsp_document_symbol ( const char *  uri,
int  id 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lsp_goto_definition()

void lsp_goto_definition ( const char *  uri,
int  line,
int  col,
int  id 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lsp_hover()

void lsp_hover ( const char *  uri,
int  line,
int  col,
int  id 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lsp_references()

void lsp_references ( const char *  uri,
int  line,
int  col,
int  id 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lsp_rename()

void lsp_rename ( const char *  uri,
int  line,
int  col,
const char *  new_name,
int  id 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lsp_signature_help()

void lsp_signature_help ( const char *  uri,
int  line,
int  col,
int  id 
)
Here is the call graph for this function:
Here is the caller graph for this function: