Can you post the .h and .c files? There doesn't appear to be anything wrong with what you are doing, but it's hard to be sure, because we don't know the line numbers in the file, from the snippets you posted.
Can you post the .h and .c files? There doesn't appear to be anything wrong with what you are doing, but it's hard to be sure, because we don't know the line numbers in the file, from the snippets you posted.