Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1109381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:13:28+00:00 2026-05-17T02:13:28+00:00

I look through a C source (pjsip) and I find this sctucture. I don’t

  • 0

I look through a C source (pjsip) and I find this sctucture. I don’t know how to conceive.

static struct user_agent
{
    pjsip_module     mod;
    pj_pool_t       *pool;
    pjsip_endpoint  *endpt;
    pj_mutex_t      *mutex;
    pj_hash_table_t *dlg_table;
    pjsip_ua_init_param  param;
    struct dlg_set   free_dlgset_nodes;

} mod_ua = 
{
  {
    NULL, NULL,         /* prev, next.          */
    { "mod-ua", 6 },        /* Name.                */
    -1,             /* Id               */
    PJSIP_MOD_PRIORITY_UA_PROXY_LAYER,  /* Priority     */
    &mod_ua_load,       /* load()               */
    NULL,           /* start()              */
    NULL,           /* stop()               */
    &mod_ua_unload,     /* unload()             */
    &mod_ua_on_rx_request,  /* on_rx_request()          */
    &mod_ua_on_rx_response, /* on_rx_response()         */
    NULL,           /* on_tx_request.           */
    NULL,           /* on_tx_response()         */
    &mod_ua_on_tsx_state,   /* on_tsx_state()           */
  }
};
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T02:13:29+00:00Added an answer on May 17, 2026 at 2:13 am

    Not a particularly clear question but what I think you’re having a problem with is that the struct is being declared and used in the same statement. How about:

    struct user_agent {
        ....
    }
    
    static struct user_agent mod_ua = ....
    

    That any clearer?

    K

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I suppose I could look through the whole MVC3 source and try and find
I look up a lot through this problem while i saw many post abt
The mail go through fine but the links look like this: x-msg://63/'www.something.com/' $from_user =
When I look through the source code files I have downloaded from the PHP
Ok, this is a weird one. Consider the following: <audio id=background_audio autoplay=autoplay> <source src=static/audio/clip.ogg
I was just taking a look through the source for the examples on the
I was taking a look through some open-source C++ code and I noticed a
Before I asked this question I had a look through the search results for
I have looked through the source of Meteor and Handlebars.js, but couldn't find what
I had a look through the documentation on the Wiki, but it seems a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.